/* Reset base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.15); /* sfondo trasparente */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center; /* centrato */
    padding: 0 20px;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); /* ombra nera sotto */

}

/* Posizionamento assoluto del menu a sinistra */
.menu-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.menu-icon .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
}

/* Menu nascosto di default */
.menu-links {
    display: none;
    position: fixed;
    top: 80px; /* subito sotto la navbar */
    left: 0;
    width: 33.33%; /* un terzo della larghezza */
    height: 755px; /* uguale all'altezza di una sezione */
    background-color: rgba(255, 255, 255, 0.95);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
}
@media (max-width: 1300px) {
    .menu-links {
        width: 50%;
    }
}
@media (max-width: 700px) {
    .menu-links {
        width: 100%;
    }
}


/* Bottone X per chiudere */
.close-btn {
    font-size: 2rem;
    font-weight: bold;
    align-self: flex-end;
    cursor: pointer;
    margin-bottom: 30px;
}

.menu-links a {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.2rem;
    color: #000;
    text-decoration: none;
    margin: 10px 0;
    margin-bottom: 15px;
}

.menu-links a:hover {
    text-decoration: underline;
}

.social-icons {
    display: flex;
    gap: 40px;
    margin-top: 20px;
}

.social-icons a {
    font-size: 1.8rem;
    color: #000;
    transition: color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    color: #4895ef;
}


/* Titolo "MATTEO BANG BANG" */
.title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.1;
    color: white;
    text-decoration: none;
}


.language-switch {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 10px;
}


.language-switch button {
  border-radius: 50%;     /* forma tonda */
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: transparent;
}

.language-switch button img {
  width: 18px;
  height: 18px;
  border-radius: 50%; /* bandiere rotonde */
  pointer-events: none; /* per evitare che img blocchi il click sul bottone */
}





/* Sezioni */
.section {
    width: 100%;
    height: 755px; /* ≈ 20 cm */
    padding-top: 100px; /* lascia spazio alla navbar */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: white;
}

.section-story {
  position: relative;
  width: 100%;
  height: 755px;
  overflow: hidden;
}

.section-story video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  /*clip-path: inset(0px 0px 100px 0px);*/ /* taglia 100px dal basso */
}


/* Responsive */
@media (max-width: 768px) {
    .title {
        font-size: 1rem;
    }
}


.section1 {
    background-image: url('immagini/Hero Image Website  (1).jpg');
    background-size: cover; /* Per coprire tutto il div */
    background-position: right;
}


.section2 {
    background-image: url('immagini/Hero Image Website 2.jpg');
    background-size: cover; /* Per coprire tutto il div */
    background-position: 80% center;
}


.section3 {
    background-image: url('immagini/Hero Image Website 3.jpg');
    background-size: cover; /* Per coprire tutto il div */
}


.section4 { background-color: #385e9d; }


.section5 { background-color: #4361ee; }


.section6 { background-color: #3a0ca3; }


.section2b {
    background-color: #385e9d;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.section2c {
    background-color: #385e9d;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    /*height: 500px;*/
}


.section3b {
    background-image: url('immagini/Hero Image Website 7.jpg');
    background-size: cover;
    background-position: center;
}



.section5b {
    background-image: url('immagini/Hero Image Website 4.jpg');
    background-size: cover;
    background-position: center;
}


.section7b {
    background-image: url('immagini/Hero Image Website 5.jpg');
    background-size: cover;
    background-position: center;
}


.section9b {
    background-image: url('immagini/Hero Image Website 6.jpg');
    background-size: cover;
    background-position: center;
}



.content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Allineamento alto per il contenuto */
    width: 80%; /* 80% della larghezza per il contenuto */
    height: 100%;
}

.text-left {
    max-width: 50%;
    margin-top: 50px;
}
/* Per schermi con larghezza inferiore a 1500px */
@media (max-width: 1500px) {
    .text-left {
        max-width: 75%;
    }
}
/* Per schermi con larghezza inferiore a 700px */
@media (max-width: 700px) {
    .text-left {
        max-width: 100%;
    }
}

h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Medium */
    font-size: 1.5rem;
    margin-bottom: 30px;
}

h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
}
/* Schermi medi: sotto i 1024px */
@media (max-width: 1024px) {
    h1 {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    h2 {
        font-size: 1.25rem;
    }
}
/* Schermi piccoli: sotto i 700px */
@media (max-width: 700px) {
    h1 {
        font-size: 1.75rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 1.1rem;
    }
}
/* Schermi molto piccoli: sotto i 480px */
@media (max-width: 480px) {
    h1 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 1rem;
    }
}

b {
    font-weight: 700;
}

.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    background-color: orange;
    color: white;
    padding: 15px 30px;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.btn:hover #donateButton:hover {
    background-color: darkorange;
}

#donateButton {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    text-transform: uppercase;
    background-color: orange;
    color: white;
    padding: 15px 20px;
    text-decoration: none;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    border: none;
    gap: 8px; /* spazio tra testo e icona */
}

#donateButton .button-icon {
    display: none; /* di default l'icona è nascosta */
}

@media (max-width: 340px) {
    #donateButton {
        padding: 7px 20px 12px 20px;
    }
    #donateButton .button-text {
        display: none; /* nascondi il testo */
    }
    #donateButton .button-icon {
        display: inline; /* mostra solo l'icona */
        font-size: 1.4rem; /* ingrandisci l'icona */
    }
}

#amount {
  width: 100%;
  max-width: 120px;
  padding: 12px 16px;
  font-size: 1rem;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#amount:focus {
  border-color: #4A90E2; /* blu chiaro */
  box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.2);
}

#amount::placeholder {
  color: #999;
  font-style: italic;
}


.text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 24px;
    margin-left: 100px;
    margin-right: 100px;
    line-height: 1.6;
    color: #eeeae1;
}

.nb {
    font-weight: 500;
}

/* Sotto i 1500px: margini ridotti e font leggermente più piccolo */
@media (max-width: 1500px) {
  .text {
    font-size: 22px;
    margin-left: 50px;
    margin-right: 50px;
  }
}

/* Sotto i 900px: margini ancora più stretti */
@media (max-width: 900px) {
  .text {
    font-size: 20px;
    margin-left: 30px;
    margin-right: 30px;
  }
}

/* Sotto i 600px: margini minimi e font adattato per mobile */
@media (max-width: 600px) {
  .text {
    font-size: 18px;
    margin-left: 15px;
    margin-right: 15px;
  }
}



.image-right {
    max-width: 40%; /* L'immagine occupa al massimo il 40% della larghezza */
    margin-top: 5px; /* Per centrare verticalmente l'immagine */
}

.image-right img {
    width: 100%;
    height: auto;
    object-fit: cover; /* Adatta l'immagine verticalmente senza deformarla */
    max-height: 85%;
}



.text-right {
    max-width: 40%; /* L'area del testo a destra non deve occupare troppo spazio */
    margin-top: 20px; /* Per centrare verticalmente il testo */
}

.small-text {
    font-family: 'Open Sans', sans-serif;
    font-weight: 500;
    font-size: 1.2rem;
    color: #333;
    text-align: center;
    line-height: 1.5;
    padding: 0 20px;
}



.side-content {
    max-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}


.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 180px);
  gap: 10px;
  justify-content: center;
  max-width: 100%;
  overflow-x: auto; /* facoltativo, se vuoi scorrimento */
}

.box {
  width: 100%;
  padding-top: 50px;
}
@media (max-width: 1280px) {
  .box {
    max-width: 545px;
    }
}
@media (max-width: 480px) {
  .box {
        /*max-width: 250px;*/
    }
}

/* Tablet: 2 immagini per riga */
@media (max-width: 1250px) {
  .grid-container {
    grid-template-columns: repeat(2, 180px);
  }
}

/* Mobile: 1 immagine per riga */
@media (max-width: 480px) {
  .grid-container {
    grid-template-columns: 180px;
  }
}


.gallery-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.gallery-item a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
    transition: transform 0.3s ease;
}

.gallery-item a:hover {
    transform: scale(1.08); /* Zoom più visibile al passaggio del mouse */
}

.gallery-item img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 15px;
    display: block;
    transition: transform 0.3s ease;
}

/* Testo sotto immagine */
.caption {
    margin-top: 10px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 500; /* Medium */
    font-size: 1.1rem;
}


.link-highlight {
    font-weight: 900;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    text-decoration: underline;
    color: #1d3557;
    transition: color 0.3s ease;
}

.link-highlight:hover {
    color: #4895ef;
}



#progress-container {
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
}

progress {
    width: 100%;
    height: 30px;
    border-radius: 15px;
    overflow: hidden;
    margin: 10px 0px 3px 0px;
}

#donation-detail {
    display: flex;
    justify-content: space-between;
}

progress::-webkit-progress-value {
  background-color: orange; /* ✅ Colore barra piena */
}

/* Firefox */
progress::-moz-progress-bar {
  background-color: orange; /* ✅ Colore barra piena */
}

/* 🔥 Responsive: sotto i 255px gli span vanno uno sotto l'altro */
@media (max-width: 355px) {
    #donation-detail {
        flex-direction: column;
        gap: 6px; /* aumenta lo spazio verticale */
    }
}


.tracker-image {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
}

.tracker-image img {
    width: 100%; /* aumenta o diminuisci a piacere */
    max-width: 900px;
    height: auto;
    border-radius: 10px;
}


.video-container {
    width: 90%;            /* larghezza fluida */
    max-width: 800px;      /* larghezza massima */
    margin: 0 auto;  
    aspect-ratio: 16 / 9; /* mantiene proporzioni */
    overflow: hidden;
    border-radius: 12px; /* angoli arrotondati opzionali */
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

#other-videos {
    max-width: 300px;
}

/* Schermi medi: sotto i 1200px */
@media (max-width: 1200px) {
    .video-container {
        max-width: 600px;
    }
    #other-videos {
        max-width: 300px;
    }
}

/* Schermi piccoli: sotto gli 800px */
@media (max-width: 800px) {
    .video-container {
        max-width: 400px;
    }
    #other-videos {
        max-width: 200px;
    }
}

/* Schermi molto piccoli: sotto i 500px */
@media (max-width: 500px) {
    .video-container {
        max-width: 100%; /* occupa tutta la larghezza */
    }
    #other-videos {
        max-width: 100px;
    }
}


#footer {
    height: 50px;
    text-align: center;
    color: #385e9d;
    background-color: white;
    font-size: 11px;
    line-height: 50px;
}


/* Contact Section */
#contact-section {
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.contact-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-align: center;
    margin-bottom: 2rem;
}

/* Contact Form */
.contact-form {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000;
    text-align: left;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-submit {
    display: inline-block;
    width: 100%;
    padding: 0.85rem;
    background: orange;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-submit:hover {
    background: rgb(204, 133, 0);
    transform: translateY(-2px);
}

.contact-submit:active {
    transform: translateY(0);
}

/* Hidden spam field */
.hidden-field {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    #contact-section {
        padding: 1rem;
    }

    .contact-title {
        font-size: 1.5rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .contact-submit {
        font-size: 1rem;
    }
}







.product-container {
  display: flex;
  flex-direction: column; /* default: stack vertically */
  gap: 20px; /* spacing between boxes */
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  background-color: #385e9d;
}

.product {
  color: white;
  font-size: 1.5rem;
  text-align: center;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: #1e4d85;
  margin: 0 auto;
}


@media (min-width: 750px) {
  .product-container {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .product {
    flex: 1 1 calc(33.333% - 20px);
    margin: 0;
  }
}
