/* ==========================================================================
   PAGINA: CHI SIAMO
   Dipendenze: style.css (variabili, btn-primary, split-layout, recensioni, footer)
   Questo file aggiunge solo ciò che non è già in style.css
   ========================================================================== */

/* ==========================================================================
   UTILITÀ LOCALI
   ========================================================================== */

.terracotta-text {
  color: #c3622e;
}

.small-label {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 10px;
}

.titotlo2ChisaimoMargine {
  margin-top: 150px !important;
}

.flex-column {
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.chi-siamo-page {
  position: relative;
  background-color: #000;
}

.chi-siamo-page section:not(#vinny-section),
.overlay-section {
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   SEZIONE 1: HERO "DAL 2009"
   z-index: 1 — la base, scorre per prima
   ========================================================================== */

/* --- BACKGROUND VIDEO HERO (Effetto Box a Destra) --- */
#hero-chi-siamo {
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

#hero-chi-siamo .container {
  position: relative;
  z-index: 2; /* Mantiene testo e bottoni sopra al video */
  width: 100%;
}

.hero-bg-video {
  position: absolute;
  top: 60%;
  right: 10%;
  left: auto;
  width: 50%;
  height: auto;
  z-index: 1;
  transform: translateY(-50%);
  object-fit: cover;
  filter: opacity(0.5);
}

#hero-chi-siamo {
  background-color: #000;
  min-height: auto; /* Override del min-height globale su section */
}

#hero-chi-siamo .main-title {
  color: #ffffff;
  font-size: 75px;
  font-weight: 900;
  line-height: 0.9;
  margin-bottom: 30px;
  max-width: 560px;
}
#hero-chi-siamo .main-title span:first-child{
  margin-left: -50px;
}

#hero-chi-siamo .section-description {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.hero-tags {
  justify-content: space-between;
  margin-bottom: 70px;
  font-size: 15px;
  letter-spacing: 1.5px;
  color: white;
}

.hero-tags a{
  font-weight: 800;
      font-size: 13px;
}

.hero-tags a:hover {
  color: var(--orange);
}

.hero-actions {
  gap: 20px;
  margin-top: 40px;
}

/* Bottone outline bianco (su sfondi scuri) */
.btn-secondary {
  display: inline-block;
  background-color: transparent;
  color: #ffffff;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: bold;
  font-size: var(--small-fs);
  letter-spacing: 1px;
  border: 2px solid #ffffff;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--orange);
  color: #ffffff;
}

/* Variante scura del bottone outline (su sfondi chiari) */
.btn-secondary--dark {
  border-color: #1a1a1a;
  color: #1a1a1a;
}

.btn-secondary--dark:hover {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* ==========================================================================
   SEZIONE 2: VINNY MAIO — PARALLAX STICKY
   position: sticky; bottom: 0; z-index: 2
   Rimane ancorata in basso finché le sezioni overlay non la coprono
   ========================================================================== */

#vinny-section {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: #000;
  margin-top: -5%;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Griglia a tre colonne: testo | foto | testo */
.vinny-grid {
  display: grid;
  padding-top: 50px;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  line-height: 1.6;
}

#vinny-section .hero-title-italic {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 20px;
  display: block;
}

#vinny-section p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 16px;
}

.vinny-img-center img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==========================================================================
   SEZIONE 3 & 4: OVERLAY SECTIONS
   z-index: 3 — scorrono SOPRA la sezione Vinny
   Box-shadow superiore per enfatizzare la sovrapposizione
   ========================================================================== */

.overlay-section {
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.5);
}

/* Garantisce background solido su ogni tipo di overlay */
.white-bg.overlay-section {
  background-color: #ffffff !important;
}
.dark-section.overlay-section {
  background-color: #000000 !important;
}

/* ==========================================================================
   SEZIONE 3: STORIA OFFICINA
   ========================================================================== */

#storia-officina {
  background-color: #F5E4D5;
  padding: 120px 0;
}

/* Titolo "Officina delle Arti" */
#storia-officina .storia-title {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 20px;
}

/* Bottoni nella sezione storia */
#storia-officina .storia-actions {
  margin-top: 30px;
}

.storia-actions .btn-primary {
  padding: 10px 15px;
}

/* Grid immagini sovrapposte */
#storia-officina .double-img-grid {
  position: relative;
  height: 600px;
}

#storia-officina .img-high {
  width: 45%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}

#storia-officina .img-low {
  width: 52%;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 2;
}

#storia-officina .text-col {
  padding-left: 5%;
}

/* Paragrafi su sfondo chiaro */
#storia-officina p {
  color: #333333;
  margin-bottom: 14px;
  line-height: 1.7;
}

/* ==========================================================================
   SEZIONE 4: ISPIRAZIONE CTA
   ========================================================================== */

#ispirazione-cta {
  position: relative;
  z-index: 3;
  padding: 120px 0;
}
#ispirazione-cta .container{
  padding: 5%;
}

#ispirazione-cta .small-label {
  color: rgba(255, 255, 255, 0.6);
      text-transform: none;
    color: #fff;
    font-size: 16px;
    letter-spacing: 0;
}

/* Grid 3 colonne: testo sx | immagine centrale | testo dx */
.ispirazione-grid {
  display: flex;
  gap: 40px;
  align-items: center;
  margin-top: 50px;
  justify-content: space-between;
}

/* Titoli grandi nelle colonne laterali */
.isp-title {
  font-size: 70px;
  font-weight: 900;
  line-height: 1;
  margin: 0;
  color: #ffffff;
}
.isp-left{
  width: 53%;
}
.isp-right{
  width: 28%;
}
.isp-center {
  position: absolute;
    width: 38%;
    aspect-ratio: 1;
    margin-left: 0;
    z-index: -1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.isp-center img {
  width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
}

/* ==========================================================================
   RESPONSIVE — TABLET (max-width: 768px)
   ========================================================================== */


@media (max-width: 992px){
  .ispirazione-grid{
    flex-direction: column;
    align-items: start;
    gap: 80px;
  }
  .titotlo2ChisaimoMargine{
    margin-top: 80px !important;
    text-align: end;
  }
  .isp-left {
    width: 100%;
  }
  .isp-right {
    width: 100%;
  }
  .isp-right .move-left {
    position: relative;
      left: 0px;
}
.isp-center {
    position: absolute;
    width: 68%;
    aspect-ratio: 1;
    margin-left: 0;
    z-index: -1;
    top: inherit;
    left: inherit;
    transform: translate(0%, 0%);
    bottom: 0;
    right: 0;
}
.ispirazione-grid .move-right {
    position: relative;
    left: 0px;
}
}


@media (max-width: 768px) {
  /* Hero */
  .hero-tags {
            display: flex !important;
        flex-wrap: wrap;
        gap: 20px;
  }

  .hero-bg-video {
    width: 100%; /* Su mobile torna a tutto schermo per non impaginare male */
    height: 100%;
    right: 0;
    top: 50%;
  }

  #hero-chi-siamo {
    padding: 80px 0 60px;
  }

  #hero-chi-siamo .main-title {
    font-size: 60px;
  }

  /* Vinny: disattiviamo sticky per evitare glitch su tablet */
  #vinny-section {
    position: relative;
    bottom: auto;
    min-height: auto;
    z-index: 1;
    padding: 80px 0;
  }

  .vinny-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .vinny-img-center {
    order: -1;
    margin-bottom: 30px;
  }

  #vinny-section .hero-title-italic {
    font-size: 40px;
  }

  /* Storia Officina */
  #storia-officina {
    padding: 80px 0;
  }

  #storia-officina .split-layout {
    flex-direction: column-reverse;
  }

  #storia-officina .double-img-grid {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  #storia-officina .img-high,
  #storia-officina .img-low {
    position: relative;
    width: 100%;
    border: none;
  }

  #storia-officina .text-col {
    padding-left: 0;
  }

  #storia-officina .storia-title {
    font-size: 44px;
  }

  /* Ispirazione */
  #ispirazione-cta {
    padding: 80px 0;
  }

  .ispirazione-grid {
    display: flex;
    flex-direction: column;
    text-align: center;
  }
  .isp-left {
    width: 100%;
    text-align: start;
  }
  .isp-right {
      width: 100%;
      text-align: start;
  }

  .isp-center {
    width: auto;
    margin-left: 0;
    order: 0;
    margin-bottom: 30px;
  }

  .isp-title {
    font-size: 44px;
  }

  .titotlo2ChisaimoMargine {
    margin-top: 30px;
  }
  .flex-column {
    align-items: center;
  }

  /* Bottoni hero: piena larghezza in colonna */
  .hero-actions {
    flex-wrap: wrap;
  }
  .isp-center{
    position: static;
    margin-top: 80px;
    margin-bottom: -50px;
  }
}

/* ==========================================================================
   RESPONSIVE — SMARTPHONE (max-width: 575px)
   ========================================================================== */

@media (max-width: 575px) {
  #hero-chi-siamo,
  #storia-officina,
  #ispirazione-cta {
    padding: 60px 0;
  }

  #vinny-section {
    padding: 60px 0;
  }

  #hero-chi-siamo .main-title {
    font-size: 42px;
    padding: 0 50px;
  }

  #vinny-section .hero-title-italic {
    font-size: 34px;
  }

  #storia-officina .storia-title {
    font-size: 36px;
  }

  .isp-title {
    font-size: 36px;
  }

  /* Bottoni a piena larghezza su smartphone */
  .hero-actions {
    flex-direction: column;
        width: 80%;
        margin: 40px auto;
  }

  .hero-actions a {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .flex-column.hero-actions a {
    align-self: stretch;
  }
  #hero-chi-siamo .main-title{
    text-align: center;
    padding: 0;
    line-height: 1;
  }
  #hero-chi-siamo .main-title span:first-child {
    margin-left: 0px;
  }
  #hero-chi-siamo .section-description{
    text-align: center;
  }
}


@media (max-width: 405px) {
  .hero-tags{
    display: none !important;
  }
}