/*
Theme Name: LogosTeatro
Theme URI: https://logosteatro.it
Author: Daria Panettieri
Description: Tema WordPress per LogosTeatro - Teatro Sofisticato Antico
Version: 1.0
Text Domain: logosteatro
*/

/* ============================================
   LogosTeatro - Teatro Sofisticato Antico
   ============================================ */

:root {
  /* Rosso: resta solo dove resta la trama fotografica (hero, biografia, navbar) */
  --rosso-deep:    #2a0404;

  /* Blu: titoli, testi, bottoni, link */
  --blu-dark:      #16304f;
  --blu-brand:     #1f4a7a;
  --blu-light:     #4a6f96;
  --blu-pale:      #cbdaea;

  /* Superfici delle pagine chiare */
  --grigio-pagina: #e6eaee;
  --grigio-card:   #f2f5f8;

  --bianco:        #f5efe6;
  --bianco-puro:   #faf6ef;
  --crema:         #dde4ec;
  --crema-scuro:   #ccd5df;
  --papiro:        #ede4d0;
  --gold:          #b8942e;
  --gold-light:    #d4b44a;
  --gold-muted:    #a6873a;
  --ocra:          #c9a84c;
  --testo-scuro:   #14263d;
  --testo-medio:   #14263d;
  --nero-profondo: #14263d;
  --sfondo1-scuro: url('images/sfondo1-scuro.jpg');
}

body {
  background-color: var(--grigio-pagina);
  color: var(--testo-scuro);
  font-family: 'Montserrat', sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.sfondo-dark {
  color: #fff;
  --bs-emphasis-color-rgb: 26, 26, 26;
}
body.sfondo-dark .card,
body.sfondo-dark .card-teatro {
  color: var(--testo-scuro);
}
body.sfondo-dark .card .card-title,
body.sfondo-dark .card .card-text,
body.sfondo-dark .card .text-muted,
body.sfondo-dark .card .lead,
body.sfondo-dark .card a,
body.sfondo-dark .card-teatro .card-title,
body.sfondo-dark .card-teatro .card-text,
body.sfondo-dark .card-teatro .text-muted,
body.sfondo-dark .card-teatro .lead,
body.sfondo-dark .card-teatro a,
body.sfondo-dark .col-md-5 .text-muted,
body.sfondo-dark .col-md-5 a {
  color: var(--testo-scuro) !important;
}
body.sfondo-dark .card-teatro a {
  color: var(--blu-brand) !important;
}
/* I bottoni pieni restano leggibili: il rosso su rosso non si legge */
body.sfondo-dark .card-teatro a.btn-brand,
body.sfondo-dark .card-teatro a.btn-brand:hover,
body.sfondo-dark .card-teatro a.btn-brand-outline:hover {
  color: var(--bianco-puro) !important;
}
body.sfondo-dark .row.text-center h1,
body.sfondo-dark .row.text-center .lead,
body.sfondo-dark .row.text-center .text-muted {
  color: #fff !important;
}
body.sfondo-dark .section-title-dark {
  color: #fff !important;
}
body.sfondo-dark .row.mb-5 p,
body.sfondo-dark .row.text-center.mb-5 p {
  color: rgba(255,255,255,.8) !important;
}

.navbar-custom {
  background-image: var(--sfondo1-scuro);
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 16px rgba(42, 4, 4, .4);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  position: relative;
}
.navbar-custom::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .65);
  pointer-events: none;
}
.navbar-custom > * {
  position: relative;
  z-index: 1;
}

.navbar-custom .nav-link {
  color: rgba(255, 255, 255, .78) !important;
  font-weight: 500;
  letter-spacing: .4px;
  transition: color .25s, border-color .25s;
  border-bottom: 2px solid transparent;
  padding-bottom: 4px;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link:focus {
  color: #fff !important;
  border-bottom-color: rgba(255,255,255,.35);
}

.navbar-custom .nav-link.active {
  color: #fff !important;
  font-weight: 700;
  border-bottom: 3px solid #fff;
}

.navbar-custom .navbar-brand {
  color: #fff !important;
  letter-spacing: 2px;
}

.navbar-logo {
  height: 45px;
  width: auto;
  filter: brightness(0) invert(1) drop-shadow(0 1px 4px rgba(0, 0, 0, .3));
}

@media (max-width: 768px) {
  .navbar-logo {
    height: 35px;
  }
}

.hero-header {
  /* spazio in fondo riservato al link 'torna indietro' */
  padding-bottom: 3.2rem;
  background-image: url('images/sfondo1-nuovo.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.hero-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(42, 4, 4, .60) 0%,
    rgba(42, 4, 4, .82) 100%
  );
  pointer-events: none;
}

.hero-header > * {
  position: relative;
  z-index: 1;
}

.section-title-dark {
  font-size: 1.75rem;
  color: var(--blu-dark);
  font-weight: 700;
  padding-bottom: 8px;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
}

.lead-custom {
  line-height: 1.85;
  font-size: 1.2rem;
  color: var(--nero-profondo);
}

.lead-custom p {
  line-height: 1.8;
  margin-bottom: 1rem;
}

.card-teatro {
  background: var(--grigio-card);
  border: 1px solid var(--crema-scuro);
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(20, 38, 61, .10);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card-teatro:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(20, 38, 61, .16);
}

.card-teatro .card-body {
  padding: 2rem;
}

.card-teatro .card-icon {
  font-size: 2.6rem;
  color: var(--blu-brand);
  margin-bottom: .75rem;
}

.card-teatro .card-title {
  color: var(--blu-dark);
  font-weight: 700;
  font-size: 1.4rem;
}

.card-teatro .card-text {
  color: var(--nero-profondo);
}

.btn-brand {
  background-color: var(--blu-dark);
  border-color: var(--blu-dark);
  color: var(--bianco-puro);
  border-radius: 50px;
  padding: .6rem 1.8rem;
  font-weight: 600;
  letter-spacing: .3px;
  transition: background-color .2s, transform .15s, box-shadow .2s;
}

.btn-brand:hover {
  background-color: var(--blu-brand);
  border-color: var(--blu-brand);
  color: var(--bianco-puro);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(22, 48, 79, .35);
}

/* Bottoni pieni appoggiati direttamente sulla trama rossa (biografia, contatti):
   il blu scuro sul bordeaux si impasta, quindi si invertono — fondo chiaro e
   testo blu, come le card degli attestati che sulla stessa trama funzionano. */
body.sfondo-immagine .btn-brand,
body.bg-bio .btn-brand {
  background-color: var(--grigio-card);
  border-color: var(--grigio-card);
  color: var(--blu-dark);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .35);
}

body.sfondo-immagine .btn-brand:hover,
body.bg-bio .btn-brand:hover {
  background-color: #fff;
  border-color: #fff;
  color: var(--blu-dark);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
}

/* Dentro una card il fondo è già chiaro, quindi lì il bottone resta blu pieno */
body.sfondo-dark .card-teatro a.btn-brand,
body.sfondo-dark .card-teatro a.btn-brand:hover {
  background-color: var(--blu-dark);
  border-color: var(--blu-dark);
}

.btn-brand-outline {
  background-color: transparent;
  border: 2px solid var(--blu-dark);
  color: var(--blu-dark);
  border-radius: 50px;
  padding: .6rem 1.8rem;
  font-weight: 600;
  transition: background-color .2s, color .2s, transform .15s;
}

.btn-brand-outline:hover {
  background-color: var(--blu-dark);
  color: var(--bianco-puro);
  transform: translateY(-1px);
}

/* Galleria a pellicola: una riga sola che scorre da sola verso sinistra.
   È fissata solo l'altezza, quindi le larghezze restano quelle vere e nessuna
   foto viene ritagliata. Il movimento lo dà js/galleria.js, che duplica le foto
   per far girare il nastro senza stacchi; senza JavaScript resta una striscia
   che si scorre a mano, quindi la pagina funziona comunque. */
.show-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: .6rem;
  width: calc(100vw - 3rem);
  max-width: 900px;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.show-gallery::-webkit-scrollbar {
  display: none;
}

.show-gallery img {
  height: 380px;
  width: auto;
  flex: 0 0 auto;
  display: block;
  border-radius: 8px;
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
  border: 1px solid var(--crema-scuro);
}

/* .large: foto più grandi (usata su spettacolo-home) */
.show-gallery.large img {
  height: 440px;
}

.show-gallery img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 20px rgba(20, 38, 61, .28);
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  .show-gallery {
    width: 100%;
    max-width: none;
    margin-left: 0;
    transform: none;
  }
  .show-gallery img { height: 260px; }
  .show-gallery.large img { height: 300px; }
}
@media (max-width: 480px) {
  .show-gallery img { height: 200px; }
  .show-gallery.large img { height: 230px; }
}

.carousel-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

@media (max-width: 768px) {
  .carousel-img {
    height: 220px;
  }
}

.highlight {
  color: var(--nero-profondo);
  font-weight: 700;
}

.map-wrapper {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(20, 38, 61, .14);
  border: 1px solid var(--crema-scuro);
}

/* Complianz avvolge l'iframe in un suo contenitore, che diventa il figlio del
   riquadro proporzionato: senza queste due regole la mappa resta alta 150px */
.map-wrapper .cmplz-placeholder-parent {
  width: 100%;
  height: 100%;
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--blu-dark);
  color: var(--bianco-puro);
  font-size: 1.4rem;
  text-decoration: none;
  transition: background-color .2s, transform .2s, box-shadow .2s;
  margin: 0 .5rem;
}

.social-icon:hover {
  background-color: var(--blu-brand);
  color: var(--ocra);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 48, 79, .3);
}

/* Anche le icone social stanno sulla trama rossa: stessa inversione dei bottoni */
body.sfondo-immagine .social-icon {
  background-color: var(--grigio-card);
  color: var(--blu-dark);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .35);
}

body.sfondo-immagine .social-icon:hover {
  background-color: #fff;
  color: var(--blu-brand);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}

.footer-custom {
  background: none;
  color: var(--testo-scuro);
  padding: 1.5rem 0 1rem;
  border: none;
  text-align: left;
  font-family: 'Montserrat', sans-serif;
}

.footer-custom .footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.footer-custom .footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 3rem;
}

.footer-custom .footer-col-brand {
  max-width: 360px;
}

.footer-custom .footer-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blu-dark);
  margin-bottom: .4rem;
}

.footer-custom .footer-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blu-dark);
  margin-bottom: .4rem;
}

.footer-custom .footer-line {
  font-size: .9rem;
  line-height: 1.7;
  color: rgba(20, 38, 61, .82);
  margin-bottom: .25rem;
}

.footer-custom .footer-email {
  color: var(--blu-brand);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 74, 122, .4);
  transition: color .2s, border-color .2s;
}

.footer-custom .footer-email:hover {
  color: var(--gold-muted);
  border-bottom-color: var(--gold-muted);
}

.footer-custom .footer-policy {
  margin-top: .35rem;
}

.footer-custom .footer-policy-link {
  font-size: .82rem;
  font-weight: 500;
  color: rgba(20, 38, 61, .68);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}

.footer-custom .footer-policy-link:hover {
  color: var(--gold-muted);
}

.footer-custom .footer-bottom {
  margin-top: 1.25rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(20, 38, 61, .18);
  text-align: center;
}

.footer-custom .footer-copy {
  font-size: .82rem;
  color: rgba(20, 38, 61, .6);
  letter-spacing: .3px;
}

/* Pagine con immagine di sfondo scura: footer in chiaro.
   La trama rossa è chiara e rumorosa, quindi sotto il footer va una velatura
   scura (come la navbar). La sfumatura iniziale evita lo stacco netto. */
body.sfondo-immagine .footer-custom {
  color: var(--bianco-puro);
  background-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0,
    rgba(0, 0, 0, .34) 3rem,
    rgba(0, 0, 0, .42) 100%
  );
  padding-top: 3.5rem;
}

body.sfondo-immagine .footer-custom .footer-name,
body.sfondo-immagine .footer-custom .footer-label,
body.sfondo-immagine .footer-custom .footer-line,
body.sfondo-immagine .footer-custom .footer-copy {
  text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 10px rgba(0,0,0,.75);
}

body.sfondo-immagine .footer-custom .footer-name,
body.sfondo-immagine .footer-custom .footer-label {
  color: #fff;
}

body.sfondo-immagine .footer-custom .footer-line {
  color: rgba(255,255,255,.95);
}

body.sfondo-immagine .footer-custom .footer-email {
  color: var(--blu-pale);
  border-bottom-color: rgba(203, 218, 234, .4);
}

body.sfondo-immagine .footer-custom .footer-email:hover {
  color: var(--gold-light);
  border-bottom-color: var(--gold-light);
}

body.sfondo-immagine .footer-custom .footer-policy-link {
  color: rgba(255,255,255,.88);
}

body.sfondo-immagine .footer-custom .footer-policy-link:hover {
  color: var(--gold-light);
}

body.sfondo-immagine .footer-custom .footer-bottom {
  border-top-color: rgba(255,255,255,.28);
}

body.sfondo-immagine .footer-custom .footer-copy {
  color: rgba(255,255,255,.8);
}

@media (max-width: 575px) {
  .footer-custom {
    text-align: center;
  }
  .footer-custom .footer-col {
    max-width: none;
    width: 100%;
  }
  .footer-custom .footer-bottom {
    justify-content: center;
    text-align: center;
  }
}

/* Il pannello sta sulla trama rossa come le card degli attestati, quindi segue
   la stessa regola: fondo chiaro e testo blu. Su un testo legale lungo aiuta
   anche la lettura, molto più di un fondo scuro con testo bianco. */
.legal-content {
  background: var(--grigio-card);
  border: 1px solid var(--crema-scuro);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  color: var(--testo-scuro);
  line-height: 1.8;
  font-size: .98rem;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .38);
}

.legal-content p {
  margin-bottom: 1.1rem;
}

.legal-content strong {
  color: var(--blu-dark);
}

.legal-content a {
  color: var(--blu-brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* I titoli portano anche .section-title-dark, che sulle pagine scure viene
   forzata in bianco con !important: dentro il pannello chiaro va scavalcata,
   altrimenti restano bianco su chiaro e spariscono. */
.legal-content .legal-h2,
body.sfondo-dark .legal-content .legal-h2 {
  font-size: 1.15rem;
  margin: 1.6rem 0 .7rem;
  color: var(--blu-dark) !important;
  text-align: left;
}

.legal-content .legal-update {
  margin-top: 2rem;
  color: rgba(20, 38, 61, .6);
  font-size: .9rem;
}

.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .7s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.text-brand {
  color: var(--blu-dark) !important;
}

.bg-brand {
  background-color: var(--blu-brand) !important;
}

.border-brand {
  border-color: var(--blu-dark) !important;
}

.bg-crema {
  background-color: var(--crema) !important;
}

.bg-bio {
  position: relative;
  background-size: auto;
  background-repeat: repeat;
  background-position: top left;
  background-color: var(--rosso-deep) !important;
  color: var(--bianco-puro);
}
.bg-bio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 4, 4, .55);
  pointer-events: none;
  z-index: 0;
}
.bg-bio > * {
  position: relative;
  z-index: 1;
}

.bg-bio .lead-custom {
  color: var(--bianco-puro);
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .5);
}

.bg-bio .section-title,
.bg-bio .section-title-dark {
  color: var(--bianco-puro);
}

.bg-bio .highlight {
  font-weight: 800;
  color: inherit;
}

.show-genre {
  display: inline-block;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--bianco-puro);
  margin-bottom: .4rem;
}

.text-gold {
  color: var(--bianco-puro) !important;
}

.text-gold-base {
  color: var(--bianco-puro) !important;
}

.text-subtle {
  opacity: .88;
}

.img-cover {
  object-fit: cover;
}

.italic-gold {
  color: var(--nero-profondo);
  line-height: 1.8;
  font-size: 1.1rem;
}

.italic-gold-dark {
  color: var(--nero-profondo) !important;
}

.img-cover-card {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: top;
}

.img-cover-hero {
  max-height: 400px;
  object-fit: cover;
}

.contact-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  overflow: hidden;
}

.contact-photo-item {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.contact-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7) saturate(0.8);
  transition: transform .6s ease, filter .6s ease;
}

.contact-photo-item:hover img {
  transform: scale(1.08);
  filter: brightness(0.85) saturate(1);
}

@media (max-width: 768px) {
  .contact-photo-strip {
    grid-template-columns: 1fr;
  }
  .contact-photo-item {
    height: 160px;
  }
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--testo-scuro);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .3px;
  padding: .5rem 0;
  transition: color .2s;
}

.back-btn:hover {
  color: var(--blu-brand);
}

.back-btn i {
  font-size: 1.1rem;
}

/* Torna indietro: dentro l'intestazione scura, sopra il titolo */
.hero-header .back-btn-riga {
  position: absolute;
  left: 0;
  right: 0;
  bottom: .9rem;
  z-index: 1;
}

.back-btn-hero {
  color: rgba(255, 255, 255, .8);
  font-family: 'Jost', sans-serif;
  font-size: .85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  padding: .35rem 0;
}

.back-btn-hero:hover {
  color: var(--bianco-puro);
}

.back-btn-hero i {
  font-size: 1rem;
}

/* Attestati: linea del tempo verticale */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .8), rgba(255, 255, 255, .25));
}

.timeline-year {
  position: relative;
  padding-left: 3.2rem;
  margin: 2.2rem 0 1.1rem;
}

.timeline-year:first-child {
  margin-top: 0;
}

.timeline-year span {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--blu-dark);
  background: var(--bianco-puro);
  border: 1px solid var(--crema-scuro);
  border-radius: 30px;
  padding: .25rem 1.5rem;
  box-shadow: 0 3px 14px rgba(0, 0, 0, .35);
}

.timeline-item {
  position: relative;
  padding-left: 3.2rem;
  padding-bottom: 1.6rem;
}

.timeline-dot {
  position: absolute;
  left: 4px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--blu-dark);
  border: 3px solid var(--bianco-puro);
  box-shadow: 0 0 0 4px rgba(42, 4, 4, .6);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  background: var(--bianco-puro);
  border: 1px solid var(--crema-scuro);
  border-radius: 10px;
  padding: 1.1rem 1.4rem;
  box-shadow: 0 4px 18px rgba(42, 4, 4, .22);
  transition: border-color .25s ease, box-shadow .25s ease;
}

.timeline-item:hover .timeline-content {
  border-color: var(--gold-muted);
  box-shadow: 0 8px 26px rgba(42, 4, 4, .3);
}

/* Il certificato sta sopra il testo, a tutta card. E' limitata l'altezza e non
   la larghezza: cosi le foto restano tutte alte uguale e ognuna tiene le sue
   proporzioni e il suo verso, senza ritagli. Un verticale a piena larghezza
   sarebbe alto oltre mille pixel. */
.timeline-thumb {
  display: block;
  align-self: flex-start;
  width: auto;
  border: 1px solid var(--crema-scuro);
  border-radius: 8px;
  overflow: hidden;
  background: var(--crema);
  padding: .5rem;
  /* Riserva lo spazio prima che la foto arrivi, altrimenti la pagina sobbalza
     mentre si scorre e le immagini in lazy loading entrano una alla volta. */
  min-height: 196px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .25s ease;
}

.timeline-thumb img {
  max-height: 180px;
  max-width: 100%;
  width: auto;
  height: auto;
  display: inline-block;
  vertical-align: middle;
}

/* Ferme al passaggio del mouse: cambia solo il bordo, niente movimento */
.timeline-thumb:hover {
  border-color: var(--gold-muted);
}

.timeline-body {
  flex: 1 1 auto;
  min-width: 0;
}

.timeline-title {
  color: var(--blu-dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: .3px;
  margin-bottom: .35rem;
}

.timeline-detail {
  color: rgba(26, 26, 26, .85);
  font-size: .95rem;
  margin-bottom: .2rem;
}

.timeline-detail strong {
  color: var(--blu-brand);
  font-weight: 700;
}

.timeline-meta {
  color: rgba(26, 26, 26, .6);
  font-size: .9rem;
  font-style: italic;
}

@media (max-width: 575px) {
  .timeline-year,
  .timeline-item {
    padding-left: 2.6rem;
  }
  .timeline-thumb {
    min-height: 166px;
  }
  .timeline-thumb img {
    max-height: 150px;
  }
}

/* ===== HOME PAGE ===== */
.home-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(42, 4, 4, .35);
  pointer-events: none;
}
.home-hero > * { position: relative; z-index: 1; }

.home-nav {
  position: absolute;
  top: 2.5rem;
  left: 0;
  right: 0;
  padding: 0 1.25rem;
  z-index: 3;
}

.home-nav-links {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

/* Su schermi larghi le voci restano sempre in vista: scavalca il display:none
   che Bootstrap mette su .collapse quando il pannello e' chiuso. */
@media (min-width: 769px) {
  .home-nav-links { display: flex !important; }
}

.home-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 11px 10px;
  margin-left: auto;
  background: rgba(0, 0, 0, .3);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.home-nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .8);
}

/* Il browser disegna un anello blu di sistema dopo il tocco: qui stona, e va
   sostituito e non tolto, altrimenti chi naviga da tastiera perde il segno. */
.home-nav-toggle:focus { outline: none; }
.home-nav-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 3px;
}
.home-nav a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,.9), 0 4px 40px rgba(0,0,0,.8);
  transition: opacity .3s;
}
.home-nav a:hover { opacity: .7; }

.home-logo {
  max-width: 480px;
  width: 90%;
  filter: brightness(0) invert(1) drop-shadow(0 2px 12px rgba(0,0,0,.7));
  margin-bottom: 2rem;
}

.home-name {
  color: #fff;
  font-family: 'Jost', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 16px;
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(0,0,0,1), 0 0 30px rgba(0,0,0,.9), 0 4px 40px rgba(0,0,0,.8);
}

.home-contact {
  width: 100%;
  text-align: center;
  padding: 3rem 0;
  background: transparent;
}
.home-contact a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 1rem 2.5rem;
  border: 2px solid rgba(255,255,255,.6);
  border-radius: 50px;
  text-shadow: 0 2px 6px rgba(0,0,0,.4);
  box-shadow: 0 4px 20px rgba(0,0,0,.4);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.home-contact a:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  box-shadow: 0 6px 28px rgba(0,0,0,.5);
}

.frase-section {
  width: 100%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem 5rem;
}
.frase-inner {
  max-width: 720px;
  text-align: center;
}
.frase-title {
  font-family: 'Jost', sans-serif;
  color: #fff;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2.5rem;
  text-shadow: 0 0 20px rgba(0,0,0,.9), 0 4px 40px rgba(0,0,0,.8);
}
.frase-text {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  line-height: 2;
  font-style: italic;
  font-weight: 800;
  margin-bottom: 1.2rem;
  text-shadow: 0 0 20px rgba(0,0,0,.9), 0 4px 40px rgba(0,0,0,.8);
}
.frase-text:last-of-type { margin-bottom: 0; }

@media (max-width: 768px) {
  /* Su telefono cinque voci lunghe andavano a capo tre volte e i bersagli
     erano piccoli: diventano un menu a comparsa con voci da toccare. */
  /* Menu compatto nell'angolo invece di un pannello a tutta pagina, che
     copriva il logo e pesava troppo. */
  .home-nav { top: 1rem; }
  .home-nav-toggle { display: flex; }
  .home-nav-links {
    flex-direction: column;
    gap: 0;
    width: max-content;
    min-width: 200px;
    margin: .6rem 0 0 auto;
    background: rgba(18, 6, 6, .88);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: .35rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  }
  .home-nav a {
    display: block;
    padding: .85rem 1.3rem;
    text-align: right;
    font-size: .82rem;
    letter-spacing: 1.5px;
    text-shadow: none;
  }
  .home-nav a + a { border-top: 1px solid rgba(255, 255, 255, .09); }
  .home-logo { max-width: 340px; }
  .home-name { font-size: 1.3rem; letter-spacing: 12px; }
  .frase-title { font-size: 2rem; }
  .frase-text { font-size: .95rem; }
}
@media (max-width: 480px) {
  .home-nav a { font-size: .8rem; }
  .home-logo { max-width: 260px; }
  .home-name { font-size: 1rem; letter-spacing: 8px; }
  .frase-title { font-size: 1.6rem; }
}

/* Poiret: titoli di pagina, sezioni, card, biografia artistica, sottotitoli hero */
h1.display-5,
h1.display-4,
.section-title,
.bg-bio h2,
.hero-header .lead,
.hero-header .fs-4 {
  font-family: 'Poiret One', sans-serif;
  font-weight: 400;
}

/* Jost: titoli delle schede (spettacoli e corsi) */
.card-title,
.card-teatro .card-title {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
}

/* I titoli grandi delle schede vanno in maiuscolo come quelli dell'hero */
h2.card-title {
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* Poiret: la riga che sta sotto al titolo della scheda */
.card-teatro h2.card-title + .text-muted {
  font-family: 'Poiret One', sans-serif;
  font-weight: 400;
  font-size: 1.3rem;
}

/* Biografia: senza un limite le righe arrivavano a 130 caratteri.
   Con le foto affiancate la colonna può respirare un po' di più. */
body.bg-bio main > .container {
  max-width: 1060px;
}

/* Le due foto grandi stanno dentro il testo, che ci gira attorno */
.bio-foto {
  max-width: 44%;
  height: auto;
  margin-bottom: 1.4rem;
}

.bio-foto.destra {
  float: right;
  margin-left: 2.2rem;
}

.bio-foto.sinistra {
  float: left;
  margin-right: 2.2rem;
}

@media (max-width: 767px) {
  .bio-foto,
  .bio-foto.destra,
  .bio-foto.sinistra {
    float: none;
    max-width: 100%;
    margin: 0 0 1.6rem;
  }
}

/* Jost: titoli hero + nomi */
.hero-header h1,
.bg-bio h1 {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
}

.hero-header h1 {
  text-shadow: 0 2px 10px rgba(0, 0, 0, .5);
}

/* Offerta formativa: titolo in Jost, sottotitolo in Poiret */
h1.titolo-jost {
  font-family: 'Jost', sans-serif;
  font-weight: 600;
}

.sottotitolo-poiret {
  font-family: 'Poiret One', sans-serif;
  font-weight: 400;
}

/* Teatrografia: testi card spettacoli più grandi */
.teatrografia-cards .card-teatro .card-title {
  font-size: 1.7rem;
}

.teatrografia-cards .card-teatro .text-muted {
  font-size: 1.3rem;
}
.teatrografia-cards .card-teatro .card-text {
  font-size: 1.1rem;
}

/* Sottotitoli hero spettacoli: bianco, grassetto, più grandi */
.hero-header .lead {
  color: var(--bianco-puro);
  font-weight: 700;
  font-size: 1.5rem;
}