
/* Importa i file comuni */
@import url('../main.css');

/* --- SEZIONE OBIETTIVI --- */
.sezione-obiettivo-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 96%;
  margin-left: auto;
  margin-right: auto;
  background-color: #F6F5F3;
  font-family: sans-serif;
}

.cover-about {
  width: calc(100% + 4.1667%);
  margin-left: -2.08335%;
  margin-right: -2.08335%;
  height: 750px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  --cover-offset: 65px;
  --cover-visible-height: 85%;
}

.cover-about img {
  width: 100%;
  object-fit: cover;
  display: block;
  margin-top: var(--cover-offset);
  height: var(--cover-visible-height);
}

.cover-about-overlay {
  position: absolute;
  top: var(--cover-offset);
  right: 0;
  width: 100%;
  height: var(--cover-visible-height);
  background: linear-gradient(to top, rgba(51, 51, 51, 0.8), rgba(51, 51, 51, 0));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding-left: 6%;
  box-sizing: border-box;
}

.cover-about-overlay h1 {
  font-family: 'LEMON MILK', sans-serif;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 10% 2% 0.5%;
  color: var(--color-text-whitelight);
}

.cover-about-overlay h2 {
  font-family: 'Lora', serif;
  font-size: 48px;
  line-height: 1.3;
  max-width: 850px;
  margin: 0;
  color: var(--color-text-whitelight);
}

.riquadro-testo-beige {
  width: 65%;
  height: 60%;
  background-color: #F6F5F3; /* Colore beige chiaro dall'immagine */
  padding: 40px 50px;
  margin-top: -10%; /* Margine negativo per salire sopra il verde */
  position: relative;
  z-index: 2; /* Deve stare SOPRA il verde e l'immagine sotto */
 /* box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Leggera ombra per staccarlo */
  text-align: left; /* Testo allineato a sinistra */
}

.riquadro-testo-beige h2 {
  font-family: 'Lora'; /* Font con grazie come nell'immagine */
  font-size: 40px;
  color: var(--color-text-greylight);
  margin-top: 9%;
  margin-left: 5%;
}

.riquadro-testo-beige p {
  font-family: 'DM Sans';
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.5;
  color: var(--color-accent);
  margin: 5%;
  font-weight: 500;
}

/* --- SEZIONE I NOSTRI VALORI --- */
.nostri-valori {
  width: 75%;
  max-width: 1150px;
  margin: 5% auto 3%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: center;
}

.nostri-valori-title {
  font-family: 'LEMON MILK', sans-serif;
  font-size: clamp(30px, 3.2vw, 34px);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: -30% -8% 14px;
}

.nostri-valori-subtitle {
  font-family: 'LEMON MILK', sans-serif;
  font-size: clamp(22px, 1.2vw, 28px);
  font-weight: 700;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-left: -8%;
}

.nostri-valori-right p {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(14px, 1.3vw, 18px);
  line-height: 1.7;
  color: var(--color-accent);
  margin: 0 -5% 1.4em;
  font-weight: 500;
}

.nostri-valori-right p:last-child {
  margin-bottom: 0;
}

.nostri-valori-right strong {
  font-weight: 800;
  color: var(--color-accent);
}

/* --- 3. Immagine Grande Centrale --- */
.contenitore-immagine-prodotti {
  width: 80%;
  margin-top: 8%; /* Sale leggermente sotto il riquadro di testo */
  position: relative;
  z-index: 0; /* Sta SOTTO il riquadro di testo */
}

.contenitore-immagine-prodotti img {
  width: 100%;
  height: auto;
  display: block;
}


/* --- histrory section  --- */
/* --- HISTORY SCROLL STORY (NEW) --- */
.history-section {
  width: 96%;
  margin-left: auto;
  margin-right: auto;
  background-color: #F6F5F3;
  padding: 4rem 0 6rem;
  min-height: auto;
}

.history-intro {
  max-width: 980px;
  margin: 0 auto clamp(1.8rem, 3vw, 2.8rem);
  padding: 0 1rem;
  text-align: center;
}

.history-main-title {
  margin-top: 7%;
  font-family: 'Lora', sans-serif;
  font-size: clamp(32px, 3.2vw, 40px);
  line-height: 1.08;
  color: var(--color-text-greylight);
}

.history-main-subtitle {
  margin: 1% 0 0;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.25;
  color: var(--color-accent);
}

.history-reveal-list {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: clamp(2.4rem, 4vw, 4.2rem);
  position: relative;
}

.history-reveal-list::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background-color: #111111;
  transform: translateX(-50%);
  opacity: 0.85;
  z-index: 0;
}

.history-reveal-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.8rem, 3vw, 3.4rem);
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.72s ease, transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: relative;
  z-index: 1;
}

.history-reveal-item::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #111111;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.history-reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.history-reveal-text {
  max-width: 520px;
  justify-self: end;
  text-align: right;
}

.history-reveal-title {
  margin: 0;
  font-family: 'LEMON MILK', sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 1.6vw, 36px);
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--color-text-greylight);
}

.history-reveal-meta {
  margin: 1.15rem 0 1rem;
  font-family: 'Lora', serif;
  font-size: clamp(20px, 1.3vw, 24px);
  line-height: 1.1;
  color: #111111;
}

.history-reveal-label {
  font-weight: 700;
  text-transform: uppercase;
}

.history-reveal-year {
  font-weight: 400;
}

.history-reveal-description {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  font-size: clamp(17px, 1.3vw, 22px);
  line-height: 1.35;
  color: #1a1a1a;
}

.history-reveal-media {
  margin: 0;
  width: min(100%, 700px);
  justify-self: start;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #d2d2d2;
}

.history-reveal-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.9s ease;
}

.history-reveal-item.is-visible .history-reveal-image {
  transform: scale(1);
}

.history-reveal-item.is-right .history-reveal-text {
  order: 2;
  justify-self: start;
  text-align: left;
}

.history-reveal-item.is-right .history-reveal-media {
  order: 1;
  justify-self: end;
}

/* --- CONFIGURAZIONE SEZIONE TEAM --- */
.team-section {
  width: 96%;
  margin-left: auto;
  margin-right: auto;
  background-color: #F6F5F3;
  text-align: left;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 5%;
  display: flow-root;
}

/* Titolo della sezione */
.team-title {
  font-family: 'LEMON MILK', serif;
  font-size: 36px;
  color: var(--color-text-greylight);
  margin-top: 10%;
  margin-bottom: 0;
  margin-left: 15%;
}


.team-subtitle {
  font-family: 'Lora', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--color-text-greylight);
  margin-top: 0;
  margin-bottom: 7%;
  margin-left: 15%;
}

/* Contenitore per centrare la griglia */
.container {
  max-width: 1300px;
  margin: 0 auto;
}

/* --- GRIGLIA DEL TEAM --- */
.team-grid {
  display: grid;
  /* Crea 4 colonne di uguale larghezza */
  grid-template-columns: repeat(4, 1fr);
  /* Spaziatura orizzontale e verticale tra i membri */
  gap: 40px 30px;
  justify-items: center; /* Centra gli elementi nelle loro celle */
}

/* Scheda del singolo membro */
.team-member {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 220px; /* Larghezza massima per evitare che si allarghino troppo */
}

/* --- WRAPPER CIRCOLARE (FOTO + OVERLAY) --- */
.member-photo-wrapper {
  position: relative; /* Necessario per posizionare l'overlay */
  width: 180px;       /* Dimensione fissa del cerchio */
  height: 180px;      /* Altezza uguale alla larghezza */
  border-radius: 50%; /* Rende tutto circolare */
  overflow: hidden;   /* Nasconde tutto ci� che esce dal cerchio */
  margin-bottom: 20px;
  /* Ombra leggera opzionale per profondit� */
  box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
}

/* L'immagine stessa */
.member-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Assicura che la foto riempia il cerchio senza deformarsi */
  display: block;
  transition: transform 0.5s ease; /* Zoom lento al passaggio del mouse */
}

/* --- EFFETTO HOVER OVERLAY --- */
.member-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Sfondo grigio trasparente */
  background-color: rgba(50, 50, 50, 0.7); 
  
  /* Inizialmente invisibile */
  opacity: 0;
  
  /* Per centrare il testo all'interno */
  display: flex;
  justify-content: center;
  align-items: center;
  
  transition: all 0.3s ease-in-out; /* Animazione fluida */
}

/* Testo dentro l'overlay */
.overlay-text {
  color: #fff;
  text-align: center;
  padding: 10px;
}

.overlay-text .role {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.overlay-text .info {
  display: block;
  font-size: 14px;
  font-style: italic;
}

/* --- ATTIVAZIONE HOVER --- */
/* Quando passi il mouse sul wrapper... */
.member-photo-wrapper:hover .member-overlay {
  opacity: 1; /* ...mostra l'overlay */
}

/* (Opzionale) Leggero zoom della foto sotto l'overlay */
.member-photo-wrapper:hover .member-img {
  transform: scale(1.1);
}

/* Nome sotto il cerchio */
.member-name {
  font-family: 'Roboto';
  font-size: 20px;
  font-weight: 900;
  color: #1A1A1A;
  margin: 0;
  margin-bottom: 20%;
}



/* =================================================================
   RESPONSIVE - MEDIA QUERIES COMPLETE
   Breakpoints: 1200px, 992px, 768px, 480px
   Mantiene il layout desktop invariato per schermi = 1200px
================================================================== */

/* Laptop piccoli (max-width: 1200px) */
@media (max-width: 1200px) {
    .cover-about-overlay {
        width: 100%;
    }

    .cover-about-overlay h2 {
        font-size: clamp(38px, 4.2vw, 44px);
    }

    .riquadro-testo-beige {
        width: 80%;
        max-width: 850px;
        padding: 35px 45px;
        margin-top: -110px;
    }

    .riquadro-testo-beige h2 {
        font-size: clamp(30px, 3.5vw, 36px);
    }

    .riquadro-testo-beige p {
        font-size: clamp(14px, 1.6vw, 16px);
    }

    .section-title {
        font-size: clamp(38px, 4.5vw, 48px);
        margin-left: 35%;
        margin-top: -10%;
    }

    .team-title {
      margin-top: 15%;
      margin-left: 6%;
    }

    .team-subtitle {
      margin-left: 6%;
    }

    .nostri-valori {
      width: 85%;
      gap: clamp(2rem, 5vw, 5rem);
    }
}
/* Tablet grandi (max-width: 992px) */
@media (max-width: 992px) {
    .cover-about {
      width: calc(100% + 4.1667%);
      margin-left: -2.08335%;
      margin-right: -2.08335%;
      height: 750px;
      position: relative;
      z-index: 1;
      overflow: hidden;
      --cover-offset: 65px;
      --cover-visible-height: 85%;
    }

    .cover-about-overlay {
        width: 100%;
    }

    .cover-about-overlay h1 {
        font-size: 21px;
    }

    .cover-about-overlay h2 {
        font-size: clamp(32px, 4.6vw, 40px);
    }

    .riquadro-testo-beige {
        width: 85%;
        padding: 30px 40px;
        margin-top: -90px;
    }

    .riquadro-testo-beige h2 {
        font-size: clamp(26px, 3.5vw, 30px);
    }

    .riquadro-testo-beige p {
      font-size: clamp(14px, 3.5vw, 16px);
    }

    .contenitore-immagine-prodotti {
      width: 90%;
    }

    .section-title {
        font-size: clamp(32px, 4.5vw, 38px);
        margin-left: 0%;
    }

    .team-grid {
      grid-template-columns: repeat(3, 1fr);
    }

    .history-intro {
      max-width: 880px;
      padding: 0 1rem;
      text-align: left;
    }

    .history-main-title,
    .history-main-subtitle {
      text-align: left;
    }

    .history-main-title {
      font-size: clamp(42px, 3.6vw, 46px);
    }

    .history-main-subtitle {
      font-size: clamp(18px, 1.35vw, 22px);
      margin-bottom: 5%;
    }

    .history-reveal-list {
      gap: clamp(4rem, 8vw, 6rem);
    }

    .history-reveal-list::before {
      left: calc(1rem + 1.4rem);
      transform: none;
    }

    .history-reveal-item {
      padding-left: 2.4rem;
    }

    .history-reveal-item::before {
      left: 1.4rem;
      transform: translate(-50%, -50%);
    }

    .history-reveal-item,
    .history-reveal-item.is-right {
      grid-template-columns: 1fr;
      gap: 1.3rem;
    }

    .history-reveal-text,
    .history-reveal-item.is-right .history-reveal-text {
      max-width: 100%;
      justify-self: start;
      text-align: left;
    }

    .history-reveal-media,
    .history-reveal-item.is-right .history-reveal-media {
      width: min(100%, 760px);
      aspect-ratio: 16 / 8.5;
      justify-self: start;
      order: 2;
    }

    .history-reveal-description {
      max-width: 800px;
      font-size: clamp(14px, 2.5vw, 18px);
    }

    .nostri-valori {
      width: 90%;
      gap: clamp(1.8rem, 4vw, 3.5rem);
    }

    .team-title {
  margin-left: 6%;
}

}

@media (prefers-reduced-motion: reduce) {
  .history-reveal-item {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .history-reveal-image {
    transform: none;
    transition: none;
  }
}

/* Tablet piccoli e smartphone grandi (max-width: 768px) */
@media (max-width: 768px) {
    .cover-about img {
        object-position: 65%;
    }

    .cover-about {
      width: calc(100% + 4.1667%);
      margin-left: -2.08335%;
      margin-right: -2.08335%;
      margin-top: -3%;
      height: 750px;
      position: relative;
      z-index: 1;
      overflow: hidden;
      --cover-offset: 65px;
      --cover-visible-height: 85%;
    }

    .cover-about-overlay {
        left: 0;
        right: auto;
        width: 100%;
        padding: 0 3% 12%;
        justify-content: flex-end;
        align-items: flex-start;
        text-align: left;
        background: linear-gradient(to top, rgba(51, 51, 51, 0.8), rgba(51, 51, 51, 0));
    }

    .cover-about-overlay h1 {
        font-size: 18px;
        margin-bottom: 10px;
    }

    .cover-about-overlay h2 {
        font-size: clamp(26px, 6vw, 34px);
        max-width: 100%;
    }

    .riquadro-testo-beige {
        width: 92%;
        padding: 25px 30px;
        margin-top: -70px;
    }

    .riquadro-testo-beige h2 {
        font-size: clamp(24px, 4vw, 28px);
        margin-bottom: 15px;
    }

    .riquadro-testo-beige p {
        font-size: clamp(13px, 2vw, 14px);
    }

    .contenitore-immagine-prodotti {
        margin-top: -30px;
    }

    .section-title {
        font-size: clamp(28px, 4vw, 32px);
        margin-left: 0;
        text-align: center;
        margin-top: 8%;
    }

    .history-section {
      padding-top: 3rem;
    }

    .history-main-subtitle {
      font-size: clamp(15px, 3.5vw, 18px);
    }

    .nostri-valori {
      width: 92%;
      grid-template-columns: 1fr;
      gap: 1.6rem;
      margin: 8% auto 10%;
    }

    .nostri-valori-title {
      margin: 0 0 12px;
    }

    .nostri-valori-subtitle {
      margin-left: 0;
    }

    .nostri-valori-right p {
      margin: 0 0 1.4em;
    }

    .team-title {
      margin-left: 6%;
      text-align: left;
    }

    .team-grid {
        gap: 35px 25px;
        grid-template-columns: repeat(2, 1fr);
    }

    .member-photo-wrapper {
      width: 150px;
      height: 150px;
    }
}
/* Smartphone (max-width: 480px) */
@media (max-width: 480px) {
  .cover-about img {
        object-position: 70%;
    }
    .cover-about {
  width: calc(100% + 4.1667%);
  margin-left: -2.08335%;
  margin-right: -2.08335%;
  margin-top: -4%;
  height: 750px;
  position: relative;
  z-index: 1;
  overflow: hidden;
  --cover-offset: 65px;
  --cover-visible-height: 85%;
}

    .cover-about-overlay {
        padding: 0 4% 11%;
    }

    .cover-about-overlay h1 {
        font-size: 16px;
    }

    .cover-about-overlay h2 {
        font-size: clamp(22px, 7vw, 28px);
    }

  
    .riquadro-testo-beige {
        width: 95%;
        padding: 20px 25px;
         margin-top: -18%;
    }

    .riquadro-testo-beige h2 {
        font-size: clamp(20px, 5vw, 24px);
        margin-bottom: 12px;
    }

    .riquadro-testo-beige p {
        font-size: 13.5px;
    }

    .contenitore-immagine-prodotti {
        margin-top: 10px;
        width: 90%;
    }

    .history-main-title {
  font-size: clamp(28px, 5vw, 32px);
}

  .history-reveal-title {
      font-size: clamp(22px, 2.2vw, 28px);
  }
  .history-reveal-meta {
  font-size: clamp(16px, 1.55vw, 22px);
}
    .team-title {
      margin-top: 15%;
      margin-left: 6%;
      text-align: left;
    }

    .team-grid {
        gap: 10px;
        grid-template-columns: 2fr;
    }

    .member-photo-wrapper {
        width: 130px;
        height: 130px;
    }

    .member-name {
        font-size: clamp(16px, 3.5vw, 18px);
    }

    .nostri-valori {
      width: 95%;
      gap: 1.2rem;
      margin: 6% auto 4%;
    }

    .nostri-valori-title {
      font-size: clamp(22px, 6vw, 28px);
      margin: 0 0 10px;
    }

    .nostri-valori-subtitle {
      font-size: clamp(12px, 3.2vw, 15px);
      margin-left: 0;
    }

    .nostri-valori-right p {
      font-size: clamp(13px, 3.5vw, 15px);
      margin: 0 0 1.2em;
    }
}




