/* =========================================================
   I BARDI GIOVANI — Stylesheet
   Tema D1 · Teatrale · blu notte + turchese + serif italica
   ========================================================= */

/* Import font distintivi — Cormorant Garamond (display serif elegante,
   richiama i manoscritti elisabettiani) + Inter Tight (body pulito) */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&family=Inter+Tight:wght@300;400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Palette derivata dal logo */
  --bg:            #0a1628;   /* blu notte profondo */
  --bg-deep:       #05101f;   /* blu ancora più scuro per sezioni */
  --bg-elev:       #132238;   /* sfumatura cards */
  --line:          #1a2a44;   /* linee sottili */
  --line-strong:   #2a3f5f;
  --text:          #eef4fb;   /* testo principale */
  --text-muted:    #9bb3cf;   /* testo secondario */
  --text-dim:      #6b8caf;   /* testo terziario / caption */
  --accent:        #4fd1c5;   /* turchese del logo */
  --accent-soft:   #7de4da;
  --accent-deep:   #2aa89d;

  /* Tipografia */
  --f-display: 'Cormorant Garamond', 'Iowan Old Style', 'Georgia', serif;
  --f-body:    'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Spaziature */
  --pad-page: clamp(1.25rem, 4vw, 2.5rem);
  --max-w:    72rem;

  /* Transizioni */
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* Focus ring accessibile */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 7vw, 4.5rem); font-style: italic; }
h2 { font-size: clamp(1.75rem, 4.5vw, 2.75rem); font-style: italic; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
p  { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--f-body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.lead {
  font-family: var(--f-display);
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Ornamento decorativo shakespeariano */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 1.25rem 0;
  color: var(--accent);
}
.ornament::before,
.ornament::after {
  content: "";
  width: clamp(32px, 10vw, 80px);
  height: 1px;
  background: currentColor;
  opacity: .5;
}
.ornament-mark { font-size: .7rem; letter-spacing: .1em; }

/* ---------- Layout wrappers ---------- */
.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: var(--pad-page);
}
.section {
  padding-block: clamp(3rem, 8vw, 6rem);
}
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 22, 40, 0.78);
  border-bottom: 0.5px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--pad-page);
  max-width: var(--max-w);
  margin: 0 auto;
}
.nav__brand {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}
.nav__links {
  display: none;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  font-size: .9rem;
  color: var(--text-muted);
  transition: color .25s var(--ease);
  position: relative;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--accent);
}
.nav__links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 1px;
  background: var(--accent);
}
.nav__toggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  margin: -8px;
}
.nav__toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--accent);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.nav__mobile {
  display: none;
  padding: 1rem var(--pad-page) 2rem;
  border-top: 0.5px solid var(--line);
  background: var(--bg-deep);
}
.nav__mobile.is-open { display: block; }
.nav__mobile ul { list-style: none; margin: 0; padding: 0; }
.nav__mobile li { border-bottom: 0.5px solid var(--line); }
.nav__mobile a {
  display: block;
  padding: 1rem 0;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--text);
  transition: color .25s var(--ease);
}
.nav__mobile a:hover, .nav__mobile a[aria-current="page"] { color: var(--accent); }

@media (min-width: 820px) {
  .nav__links { display: flex; }
  .nav__toggle { display: none; }
  .nav__mobile { display: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .95rem 1.75rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: transform .2s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.btn--ghost {
  border: 1px solid var(--accent);
  color: var(--accent);
}
.btn--ghost:hover {
  background: var(--accent);
  color: var(--bg);
}
.btn__arrow { transition: transform .25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- HERO (home) ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 6rem var(--pad-page) 4rem;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(79, 209, 197, 0.08), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(79, 209, 197, 0.05), transparent 60%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.hero__logo {
  width: clamp(140px, 22vw, 200px);
  height: auto;
  margin: 0 auto 2rem;
  border-radius: 50%;
  filter: drop-shadow(0 0 40px rgba(79, 209, 197, 0.18));
  animation: logoFloat 6s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero h1 {
  margin: 0.5rem 0;
}
.hero__ampersand {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  color: var(--accent);
  margin: .15em 0;
  font-weight: 400;
}
.hero__author {
  font-family: var(--f-body);
  font-size: .75rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1rem;
}
.hero__dates {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  color: var(--text-muted);
  line-height: 1.5;
  margin: 2rem 0;
}
.hero__dates strong {
  color: var(--text);
  font-weight: 500;
}
.hero__venue {
  display: block;
  font-family: var(--f-body);
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: .5rem;
}
.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  font-size: .7rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  animation: fadeInUp 2s var(--ease) .8s both;
}
.hero__scroll::after {
  content: "";
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--text-dim), transparent);
}

/* ---------- Page header (altre pagine) ---------- */
.pagehead {
  position: relative;
  padding: 7rem var(--pad-page) 4rem;
  text-align: center;
  border-bottom: 0.5px solid var(--line);
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(79, 209, 197, 0.06), transparent 70%),
    var(--bg);
}
.pagehead h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}
.pagehead .lead {
  max-width: 44rem;
  margin: 1rem auto 0;
}

/* ---------- Cards / tickets ---------- */
.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 2rem; } }

.ticket {
  background: var(--bg-elev);
  border: 0.5px solid var(--line);
  border-radius: 3px;
  padding: 2.25rem 1.75rem;
  position: relative;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.ticket:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.ticket__badge {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.ticket h3 {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}
.ticket__prices {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ticket__prices li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1rem;
  border-bottom: 0.5px dashed var(--line);
}
.ticket__prices li:last-child { border-bottom: none; padding-bottom: 0; }
.ticket__prices .label {
  font-family: var(--f-body);
  font-size: .95rem;
  color: var(--text-muted);
}
.ticket__prices .label small {
  display: block;
  font-size: .72rem;
  color: var(--text-dim);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.ticket__prices .price {
  font-family: var(--f-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--text);
}
.ticket__prices .price sup {
  font-size: .5em;
  color: var(--text-dim);
  margin-right: 2px;
}

/* ---------- Step list (Come prenotare) ---------- */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 3rem auto 0;
  max-width: 44rem;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 4.5rem;
  min-height: 3.5rem;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -.2em;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 2.75rem;
  color: var(--accent);
  line-height: 1;
}
.steps h3 {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.5rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.steps p {
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Compagnia (capolettera) ---------- */
.cast {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem 2.5rem;
  margin-top: 3rem;
}
.cast__member {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 0;
  border-bottom: 0.5px solid var(--line);
}
.cast__initial {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 500;
  font-size: 3.5rem;
  line-height: 1;
  color: var(--accent);
  flex-shrink: 0;
  min-width: 2.5rem;
  text-align: center;
}
.cast__name {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.15;
}
.cast__role {
  display: block;
  font-family: var(--f-body);
  font-style: normal;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: .35rem;
}

/* ---------- Teatro ---------- */
.venue {
  display: grid;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2rem;
}
@media (min-width: 760px) {
  .venue { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
.venue__info dt {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: .4rem;
}
.venue__info dd {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: var(--text);
}
.venue__info dd a { color: var(--accent); border-bottom: 0.5px solid var(--accent); }
.venue__map {
  aspect-ratio: 4/3;
  border: 0.5px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-elev);
}
.venue__map iframe {
  width: 100%; height: 100%;
  border: 0;
  filter: invert(.92) hue-rotate(180deg) saturate(.4) brightness(.9);
}

/* ---------- Shows ---------- */
.shows {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
@media (min-width: 720px) { .shows { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .shows { grid-template-columns: repeat(3, 1fr); } }

.show {
  background: var(--bg-elev);
  border: 0.5px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
  display: block;
  color: inherit;
}
.show:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}
.show__thumb {
  aspect-ratio: 16/9;
  background: var(--bg-deep);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.show__thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.show:hover .show__thumb img { transform: scale(1.04); }
.show__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 22, 40, 0.25);
  transition: background .3s var(--ease);
}
.show:hover .show__play { background: rgba(10, 22, 40, 0.55); }
.show__play svg { width: 52px; height: 52px; }
.show__body { padding: 1.5rem 1.5rem 1.75rem; }
.show__year {
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .5rem;
}
.show__title {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 .5rem;
  line-height: 1.15;
}
.show__meta {
  font-size: .85rem;
  color: var(--text-muted);
  margin: 0;
}

/* ---------- Partner ---------- */
.partners {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  margin-top: 3rem;
}
@media (min-width: 600px) { .partners { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .partners { grid-template-columns: repeat(3, 1fr); } }

.partner {
  background: var(--bg-elev);
  border: 0.5px solid var(--line);
  border-radius: 3px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .3s var(--ease);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
}
.partner:hover { border-color: var(--accent); }
.partner__kind {
  font-size: .7rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.partner__name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--text);
}
.partner__name a { color: var(--accent); }

/* ---------- Footer ---------- */
.foot {
  border-top: 0.5px solid var(--line);
  padding: 3rem var(--pad-page) 2rem;
  margin-top: 4rem;
  background: var(--bg-deep);
}
.foot__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .foot__inner { grid-template-columns: 1.2fr 1fr 1fr; gap: 3rem; }
}
.foot__brand {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: .5rem;
}
.foot__tagline {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: 30ch;
}
.foot__title {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1rem;
}
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .6rem; }
.foot a {
  color: var(--text-muted);
  transition: color .25s var(--ease);
  font-size: .95rem;
}
.foot a:hover { color: var(--accent); }
.foot__bottom {
  max-width: var(--max-w);
  margin: 3rem auto 0;
  padding-top: 2rem;
  border-top: 0.5px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-dim);
}

/* ---------- Animazioni entry ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero__logo { animation: none; }
}

/* Utility */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.center { text-align: center; }
.muted { color: var(--text-muted); }
