* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #8a8a8a;
}

h1 {
    font-family: 'Great Vibes', cursive;
    font-weight: 0.1cm;
    font-size: 1cm;
}

header {
    color: #fff;
    background-color: #000000;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.background-image {
    position: fixed;          /* <-- invece di absolute */
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;            /* sempre tutta la viewport */
    background-image: url('../Grafiche/BackGround_WebSite.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;              /* sta dietro a tutto */
    opacity: 0.83;
    pointer-events: none;     /* non blocca click/selezione */
}

/*.background-image {
    position: absolute;
    top: calc(20px + 1cm); 
    left: 0;
    width: 100vw;
    height: calc(100vh - (20px + 1cm)); 
    background-image: url('../Grafiche/BackGround_WebSite.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    opacity: 0.7;
}*/

/* Assicurati che header e prodotti stiano sopra */
header, .products {
    position: relative;
    z-index: 1;
}

.banner {
    width: 100%;
    height: 3cm;
    overflow: hidden;
    position: relative;
    background-image: url('../Grafiche/FearlessTwins_label_rect.png');
    background-size: auto 100%;
    background-repeat: repeat-x;
    animation: scrollBanner 15s linear infinite;
}

.banner img {
    display: none;
}

@keyframes scrollBanner {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 0;
    }
}

.logo-box {
    position: absolute;
    left: 1cm;
    top: 50%;
    transform: translateY(-50%);
    width: calc(50px + 1cm);
    height: calc(50px + 1cm);
    background-color: #fff;
    background-image: url('../Grafiche/Logo.jpeg');
    background-size: cover;
    background-position: center;
    border-radius: 4px;
}

.dropdown {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.dropdown-btn {
    background-color: transparent;
    color: #fff;
    padding: 10px 20px;
    border: none;
    outline: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 25px;
    transition: color 0.3s;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 45px;
    right: 0;
    font-size: 0.5cm;
    font-weight: 0.2cm;
    font-family: 'Great Vibes', cursive;
    background-color: #000000;
    color: #fff;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    z-index: 1000;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

.logo {
    width: 50px;
    height: 50px;
    background-color: #333;
    border-radius: 4px;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 90px);
    padding: 40px 20px;
}

.image-container {
    width: 100%;
    max-width: 600px;
    aspect-ratio: 16 / 9;
    background-color: #3498db;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 18px;
}

.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.cookie-banner[hidden],
.cookie-modal[hidden] { display: none; }
.auth-modal[hidden] {
  display: none /*!important*/;
}

.cookie-banner {
    position: fixed;
    inset: auto 0 0 0;
    padding: 16px;
    z-index: 9999;
}

.cookie-banner__box {
    max-width: 980px;
    margin: 0 auto;
    padding: 16px;
    border-radius: 12px;
    background: #111;
    color: #fff;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.cookie-banner__title { margin: 0 0 8px 0; font-size: 18px; }
.cookie-banner__text { margin: 0 0 12px 0; line-height: 1.4; }
.cookie-banner__text a { color: #fff; text-decoration: underline; }

.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cookie-btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 600;
}

.cookie-btn--primary { background: #fff; color: #111; }
.cookie-btn--secondary { background: #2b2b2b; color: #fff; }
.cookie-btn--ghost { background: transparent; color: #fff; border: 1px solid #444; }

.cookie-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    display: grid;
    place-items: center;
    z-index: 10000;
    padding: 16px;
}

.cookie-modal__box {
    width: min(520px, 100%);
    background: #fff;
    color: #111;
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
}

.cookie-modal__title { margin: 0 0 8px 0; }
.cookie-modal__text { margin: 0 0 12px 0; line-height: 1.4; }

.cookie-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
}

.cookie-modal__actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.cookie-modal__links { margin-top: 12px; font-size: 14px; }

.auth {
  position: absolute;
  top: 50%;
  right: 70px; /* subito a sinistra delle tre tacche */
  transform: translateY(-50%);
}

.auth-btn {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

.auth-btn:hover {
  background: #fff;
  color: #000;
}

.auth-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: grid;
  place-items: center;
  z-index: 30000;
}

.auth-box {
  background: #111;
  color: #fff;
  padding: 20px;
  border-radius: 16px;
  width: min(360px, 90%);
  display: grid;
  gap: 10px;
}

.auth-box input {
  padding: 10px;
  border-radius: 10px;
  border: none;
}

.auth-box button {
  padding: 10px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 700;
}

.auth-switch {
  background: transparent;
  color: #fff;
  text-decoration: underline;
}

.auth-error {
  color: #ffdddd;
  font-size: 14px;
}

.auth-consent {
  font-size: 14px;
}
