/* Import del font Lobster da Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Lobster&display=swap');

html {
  padding: 0;
  margin: 0;
  font-family: 'Lobster', cursive;
  background-color: #fff;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

body {
  margin: 0;
  font-family: 'Lobster', cursive;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* occupa sempre almeno l’altezza dello schermo */
  background-color: #e41c23;
  background-image: 
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 2px, transparent 3px),
    radial-gradient(circle at 80% 40%, rgba(255,255,255,0.1) 1.5px, transparent 3px),
    radial-gradient(circle at 40% 80%, rgba(255,255,255,0.12) 2px, transparent 3px);
  background-size: 200px 200px, 150px 150px, 120px 120px;
  background-attachment: fixed;
  color: white;
  flex: 1;
  padding-bottom: 40px; /* spazio per non coprire il contenuto */
}

main {
  flex: 1; /* spinge il footer in basso quando il contenuto è poco */
  padding: 20px;
  width: 100%;
  box-sizing: border-box;
  background-repeat: no-repeat;
  background-position: bottom right;
  background-size: contain;
}

/* Posizionamento del nav subito sotto l'header */
#nav-header {
  background-color:  transparent ;  /* Rosso Coca-Cola */
  background-image: url('../../images/flash-giallo2.png') ;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center ;
  padding: 20px 0;
  margin-top: -10px; /* Sovrappone leggermente all'header */
  /* Effetto fusione con header */
  box-shadow: 0 -8px 15px rgba(0,0,0,0.2) inset;
  border-top: 3px solid rgba(255,255,255,0.4); /* sottile linea chiara */
}

/* Lista orizzontale */
#nav-header ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;               /* orizzontale */
  justify-content: center;     /* centrata */
  gap: 20px;                    /* spazio tra voci */
}

#nav-header li {
  display: flex;
  align-items: center; /* allinea verticalmente testo e logo */
}

/* Link del menu */
#nav-header a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  transition: color 0.3s;
  display: flex;
  align-items: center;
  gap: 8px; /* spazio tra “Home” e logo */ 
}

#nav-header a:hover {
  color: #ffd700; /* giallo dorato al passaggio */
}


/* Footer flessibile */

footer {
  background: linear-gradient(90deg, #222, #444); /* sfumatura scura moderna */
  color: white;
  text-align: center;
  padding: 5px 10px;       /* altezza ridotta */
  font-size: 0.8rem;       /* testo più piccolo */
  line-height: 1.2;        /* stringe le righe */
  letter-spacing: 0.5px;   /* tocco più elegante */
}

footer p {
  margin: 3px 0;           /* riduce spazi interni */
}

footer a {
  color: #ffd700;
  text-decoration: none;
  margin: 0 5px;
  font-weight: 500;
}

footer a:hover {
  color: #fff;
}


.footer-social {
  display: flex;
  justify-content: center;
  gap: 18px;
  background-image: url('../../images/banda-coca-cola-3x.jpg')   ;
  background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center ;
  height: 100px;
  width: 100%;
}

.footer-social a {
  color: white;
  font-size: 1.4rem;
  transition: transform 0.3s, color 0.3s;
  margin-top: 50px;
}

.footer-social a:hover {
  color: #ffd700;
  transform: scale(1.2);
}



/* Footer content */
#footer-content {  
  margin: 0 auto;
}

/* Header */
#header {
  background-image: url('../../images/header-2.PNG');
  background-size: cover;
  background-position: center;
  height: 250px;
  min-height: 150px;
  color: white;
  padding: 40px;
  text-align: center;
  border-top: 0;
  position: relative;
  font-family: 'Lobster', cursive;
}

#header h1 {
  margin: 0;
  font-size: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

a:hover {
  color: #ffd700;
}

#header-img {
  position: relative;
  top: 10px;
  left: 10px;
  width: 80px;
  height: 80px;
}

/* Stile per l'elemento wave */
.wave {
  background: url('../../images/fondo-sole-bottiglia-u58357-fr.png') no-repeat center bottom;
  background-size: cover;
  height: 100%;
  margin-top: -20px; /* Sovrappone leggermente alla sezione sottostante */
  text-align: center;
}

/* Stile Coca-Cola */
.coca-style {
  background-color: #e41c23;
  color: #fff;
  text-align: center;
  border-radius: 10px;
  width: 100%;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
}

.coca-style h2 {
  font-size: 2rem;
}

.coca-style p {
  font-size: 1.2rem;
  line-height: 1.6;
}

/* Immagini fluide */
img, .img-link {
  max-width: 100%;
  height: auto;
}

/* Responsive per smartphone */
@media (max-width: 600px) {
  #header {
    padding: 10px;
    min-height: 80px;
  }
  
  #header h1 {
    font-size: 1.2rem;
    margin-top: 10px;
  }

  
  .coca-style h2 {
    font-size: 1.6rem;
  }

  .coca-style p {
    font-size: 1rem;
  }
}

#overlay {      
  padding: 10px 10px 10px 10px;  
  margin: 10px 10px 10px 10px;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#overlay img {
  max-width: 90%;
  max-height: 90%;
  margin: 10px;
  border: 5px solid white;
  border-radius: 10px;
}

#overlay-close {
  margin: 10px 10px 10px 10px;
  background: #fff;
  border: 2px solid #333;
  border-radius: 50% 20% / 10% 40%;
  padding: 10px;
  font-size: 20px;
  color: #333;
  transition: all 0.5s ease-in-out;
  cursor: pointer;
  display: flex;
  justify-content: center; /* centra orizzontalmente */
  align-items: center;     /* centra verticalmente */
  flex-direction: column;  /* mantiene i <p> sopra e l'immagine sotto */
  text-align: center;      /* centra anche il testo */
}

#overlay-close-img {
  width: 180px;
  height: 180px;
display: block;
margin: 0 auto;
}

#iscriviti {
  text-align: center;
  margin: 20px 0;
  border-radius: 50% 20% / 10% 40%;  
}
