/* ============================================================
   YES ACADEMY — LUXURY
   Luxury fashion-institute aesthetic: black, ivory, tortora.
   Gold is reserved strictly for small premium details (numerals,
   the wordmark accent, hover states) — never large text blocks.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root{
  --black:#0b0b0a;
  --near-black:#141412;
  --ivory:#f6f2ea;
  --ivory-soft:#efe8db;
  --tortora:#a8927a;
  --tortora-light:#c9bfae;
  --tortora-dark:#8a7660;
  /* same brown as --tortora-dark, deepened only so small uppercase
     labels meet WCAG 4.5:1 on ivory/ivory-soft backgrounds --
     --tortora-dark itself is untouched (still used on dark sections
     and for non-text accents) */
  --tortora-a11y:#6b5a45;
  --gold:#b9a06d;
  /* same gold hue, deepened only for gold TEXT sitting on light
     (ivory/ivory-soft) backgrounds so it meets WCAG contrast --
     --gold itself is untouched (borders, hover accents, gold-on-black) */
  --gold-a11y:#876432;
  --beige:#cdbfa5;
  --champagne:#ecdfc4;
  --champagne-soft:#f3ead6;
  --espresso:#2c2015;
  --espresso-soft:#4a3826;
  --line:rgba(11,11,10,0.12);
  --line-light:rgba(246,242,234,0.18);

  --font-display:'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:'Jost', 'Helvetica Neue', Arial, sans-serif;

  --container:1320px;
  --gutter:clamp(1.25rem, 4vw, 4rem);

  --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  background:var(--ivory);
  color:var(--black);
  font-family:var(--font-body);
  font-weight:300;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;}
ul{list-style:none;margin:0;padding:0;}
h1,h2,h3,h4{font-family:var(--font-display);font-weight:500;margin:0;letter-spacing:.01em;}
p{margin:0;}
button{font-family:inherit;cursor:pointer;}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 var(--gutter);
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:.75em;
  font-family:var(--font-body);
  font-size:.72rem;
  letter-spacing:.32em;
  text-transform:uppercase;
  color:var(--tortora-a11y);
}
.eyebrow::before{
  content:"";
  width:28px;height:1px;
  background:var(--tortora-dark);
}
.section-dark .eyebrow{color:var(--tortora-light);}
.section-dark .eyebrow::before{background:var(--tortora-light);}

/* ---------- Reveal on scroll ---------- */
.reveal{
  opacity:0;
  transform:translateY(28px);
  transition:opacity 1.1s var(--ease), transform 1.1s var(--ease);
}
.reveal.is-visible{opacity:1;transform:translateY(0);}
.reveal-delay-1.is-visible{transition-delay:.12s;}
.reveal-delay-2.is-visible{transition-delay:.24s;}
.reveal-delay-3.is-visible{transition-delay:.36s;}

/* ---------- Buttons ---------- */
.btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding:1.05rem 2.2rem;
  font-size:.74rem;
  letter-spacing:.22em;
  text-transform:uppercase;
  border:1px solid var(--black);
  background:transparent;
  color:var(--black);
  overflow:hidden;
  transition:color .5s var(--ease);
}
.btn::after{
  content:"";
  position:absolute;
  inset:0;
  background:var(--black);
  transform:translateX(-101%);
  transition:transform .5s var(--ease);
  z-index:-1;
}
.btn:hover{color:var(--ivory);}
.btn:hover::after{transform:translateX(0);}
.btn-primary{background:var(--black);color:var(--ivory);}
.btn-primary::after{background:var(--gold);}
.btn-primary:hover{color:var(--black);}
.btn-ghost{border-color:var(--line-light);color:var(--ivory);}
.btn-ghost::after{background:var(--ivory);}
.btn-ghost:hover{color:var(--black);}

/* ============================================================
   HEADER
   ============================================================ */
.site-header{
  position:fixed;
  top:0;left:0;right:0;
  z-index:100;
  padding:1.6rem 0;
  transition:background .5s var(--ease), padding .5s var(--ease), border-color .5s var(--ease);
  border-bottom:1px solid transparent;
}
.site-header.is-scrolled{
  background:rgba(246,242,234,0.94);
  backdrop-filter:blur(10px);
  padding:1rem 0;
  border-color:var(--line);
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand{
  display:flex;
  flex-direction:column;
  line-height:1;
  /* ivory by default: sits transparently over the dark hero photo until
     .is-scrolled switches it to dark (see .site-header.is-scrolled below) */
  color:var(--ivory);
  transition:color .5s var(--ease);
}
.site-header.is-scrolled .brand{color:var(--black);}
.brand .brand-main{
  font-family:var(--font-display);
  font-size:1.9rem;
  letter-spacing:.28em;
}
.brand .brand-sub{
  margin-top:.35rem;
  font-family:var(--font-body);
  font-size:.6rem;
  letter-spacing:.35em;
  text-transform:uppercase;
  color:var(--gold);
}
.brand-logo{height:52px;width:auto;display:block;}
@media (max-width:759px){ .brand-logo{height:40px;} }
.footer-brand-logo{height:64px;width:auto;margin-bottom:.9rem;}

.main-nav ul{display:flex;gap:2.4rem;}
.main-nav a{
  font-size:.76rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--ivory);
  position:relative;
  padding-bottom:.3rem;
  transition:color .5s var(--ease);
}
.site-header.is-scrolled .main-nav a{color:var(--black);}
.main-nav a::after{
  content:"";
  position:absolute;left:0;bottom:0;
  width:0;height:1px;
  background:currentColor;
  transition:width .4s var(--ease);
}
.main-nav a:hover::after{width:100%;}

.lang-switch{display:flex;align-items:center;gap:.5rem;font-size:.7rem;letter-spacing:.14em;color:var(--ivory);transition:color .5s var(--ease);}
.site-header.is-scrolled .lang-switch{color:var(--black);}
.lang-switch button{background:none;border:none;color:inherit;opacity:.45;padding:0;font-size:inherit;letter-spacing:inherit;transition:opacity .3s var(--ease);}
.lang-switch button.active{opacity:1;}
.lang-switch span{opacity:.4;}
.mobile-nav .lang-switch{color:var(--ivory);margin-top:2rem;font-size:.85rem;}

.header-actions{display:flex;align-items:center;gap:1.4rem;}
.header-actions .btn{padding:.85rem 1.7rem;}
.header-actions .btn-ghost{color:var(--ivory);border-color:rgba(246,242,234,.5);}
.site-header.is-scrolled .header-actions .btn-ghost{color:var(--black);border-color:var(--line);}
.site-header.is-scrolled .header-actions .btn-ghost::after{background:var(--black);}

.nav-toggle{
  display:none;
  width:30px;height:20px;
  position:relative;
  background:none;border:none;
  z-index:200;
}
.nav-toggle span{
  position:absolute;left:0;right:0;height:1px;
  background:var(--ivory);
  transition:transform .4s var(--ease), opacity .4s var(--ease), background .4s var(--ease);
}
.site-header.is-scrolled .nav-toggle span{background:var(--black);}
.nav-toggle span:nth-child(1){top:0;}
.nav-toggle span:nth-child(2){top:9px;}
.nav-toggle span:nth-child(3){top:18px;}
.nav-open .nav-toggle span{background:var(--ivory) !important;}
.nav-open .nav-toggle span:nth-child(1){transform:translateY(9px) rotate(45deg);}
.nav-open .nav-toggle span:nth-child(2){opacity:0;}
.nav-open .nav-toggle span:nth-child(3){transform:translateY(-9px) rotate(-45deg);}

/* ============================================================
   HERO
   ============================================================ */
.hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:flex-end;
  color:var(--ivory);
  overflow:hidden;
}
.hero-media{position:absolute;inset:0;z-index:0;}
.hero-media img{
  width:100%;height:100%;object-fit:cover;
  transform:scale(1.12);
  animation:heroZoom 14s var(--ease) forwards;
}
@keyframes heroZoom{to{transform:scale(1);}}
.hero-media::after{
  content:"";
  position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(11,11,10,.35) 0%, rgba(11,11,10,.25) 45%, rgba(11,11,10,.82) 100%);
}
.hero-content{
  position:relative;z-index:1;
  width:100%;
  padding:0 var(--gutter) 6.5rem;
  max-width:var(--container);
  margin:0 auto;
}
.hero-brandline{
  font-family:var(--font-display);
  font-size:.95rem;
  letter-spacing:.14em;
  color:var(--gold);
  margin-bottom:.9rem;
  opacity:0;animation:fadeUp 1s var(--ease) .12s forwards;
}
.hero-brandline strong{font-weight:600;}
.hero-eyebrow{
  font-size:.72rem;letter-spacing:.35em;text-transform:uppercase;
  color:var(--tortora-light);
  opacity:0;animation:fadeUp 1s var(--ease) .3s forwards;
}
.hero-title{
  font-size:clamp(3rem, 8vw, 6.4rem);
  font-weight:400;
  line-height:.98;
  margin:1.2rem 0 1.8rem;
  overflow:hidden;
}
.hero-title span{
  display:block;
  opacity:0;
  transform:translateY(110%);
  animation:revealLine 1.1s var(--ease) forwards;
}
.hero-title span:nth-child(1){animation-delay:.5s;}
.hero-title span:nth-child(2){animation-delay:.68s;}
@keyframes revealLine{to{opacity:1;transform:translateY(0);}}
@keyframes fadeUp{from{opacity:0;transform:translateY(14px);}to{opacity:1;transform:translateY(0);}}

.hero-sub{
  max-width:32ch;
  font-family:var(--font-display);
  font-style:italic;
  font-size:1.35rem;
  color:var(--ivory-soft);
  margin-bottom:2.6rem;
  opacity:0;animation:fadeUp 1s var(--ease) .95s forwards;
}
.hero-ctas{display:flex;gap:1.1rem;flex-wrap:wrap;opacity:0;animation:fadeUp 1s var(--ease) 1.15s forwards;}
/* micro-row of the 5 areas right under the hero CTAs -- "cosa offriamo"
   legible in the first screen without any scroll (UX redesign brief) */
.hero-pillars{
  display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.8rem;
  opacity:0;animation:fadeUp 1s var(--ease) 1.3s forwards;
}
.hero-pillars span{
  font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;
  color:var(--tortora-light);
}
.hero-pillars span:not(:last-child)::after{content:"·";margin-left:1rem;color:rgba(246,242,234,.35);}
.hero-scroll{
  position:absolute;right:var(--gutter);bottom:2.4rem;z-index:1;
  display:flex;flex-direction:column;align-items:center;gap:.8rem;
  color:var(--ivory-soft);
  opacity:0;animation:fadeUp 1s var(--ease) 1.4s forwards;
}
.hero-scroll span{
  font-size:.65rem;letter-spacing:.3em;text-transform:uppercase;
  writing-mode:vertical-rl;
}
.hero-scroll .line{width:1px;height:60px;background:rgba(246,242,234,.4);position:relative;overflow:hidden;}
.hero-scroll .line::after{
  content:"";position:absolute;top:0;left:0;width:100%;height:30%;background:var(--gold);
  animation:scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine{0%{transform:translateY(-100%);}100%{transform:translateY(320%);}}

/* ============================================================
   ATELIER — editorial fashion 360° mannequin installation
   A tall driver (.outfit360) pins a 100vh, full-width stage via
   position:sticky while scroll progress 0..1 scrubs the videos'
   currentTime directly (see js/outfit360.js). One continuous 360° turn
   (outfit-01 the first 180°, outfit-02 the second) plus a brief
   empty-mannequin intro.

   2026-08-14 RESET: no background photo plate, no spotlight/glow, no
   flanking accent lines, no video color-grade -- the previous "make it
   look like one photograph" direction is gone. This is a plain warm
   luxury ground (ivory -> champagne) with the ORIGINAL video centered
   on it at object-fit:contain (native aspect ratio, zero crop) and
   strong editorial typography carrying the "atelier" feeling instead.
   ============================================================ */

.outfit360{
  position:relative;
  height:480vh;
  background:linear-gradient(175deg, var(--ivory) 0%, var(--champagne-soft) 48%, var(--champagne) 100%);
}

.outfit360-stage{
  position:sticky;
  top:0;
  height:100vh;
  width:100%;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  background:inherit;
}

/* editorial hero copy: content + screen position both change per stage
   (see js/outfit360.js applyCopy/updateCopy) -- three different campaign
   lines in three different places, not one static caption. */
.hero360-text{
  position:absolute;
  z-index:20;
  /* position-only: the per-stage transform (e.g. translateY(-50%) for
     pos-right) lives here. The reveal animation lives one level down,
     on .hero360-text-inner, so the two transforms never fight. */
}
/* giant faint numeral watermark behind the copy -- classic editorial
   fashion-plate device (a huge ghost numeral behind the headline). Pure
   typography, no image/photo layer; content comes from data-num, kept
   in sync with the stage's own copy by js/outfit360.js applyCopy(). */
.hero360-text::before{
  content:attr(data-num);
  position:absolute;
  z-index:-1;
  top:-.5em;
  left:-.04em;
  font-family:var(--font-display);
  font-size:clamp(7rem, 15vw, 15rem);
  font-weight:500;
  line-height:1;
  color:var(--espresso);
  opacity:.06;
  pointer-events:none;
  user-select:none;
}
.hero360-text.pos-right::before{ left:auto; right:-.04em; }
.hero360-text-inner{
  transition:opacity .55s var(--ease), transform .55s var(--ease);
}
/* micro scroll-drift lives on its OWN nested element, deliberately
   untransitioned (see js/outfit360.js render()) -- it must track the
   scroll 1:1 every rAF tick, while .hero360-text-inner's transform stays
   free to run its own .55s reveal transition on stage change. Sharing one
   `transform` between an instant per-frame driver and an eased one would
   make the CSS engine fight itself (every micro-update would restart/
   fight the .55s easing). A tiny cap (a few px) keeps it a "feel" more
   than a visible slide -- must never distract from the mannequin. */
.hero360-text-drift{ will-change:transform; }
.hero360-eyebrow{
  display:block;
  font-family:var(--font-body);
  font-size:.72rem;
  font-weight:500;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:.9rem;
  padding-bottom:.9rem;
  position:relative;
}
/* thin editorial rule under the micro-label -- a magazine-plate device,
   not a frame around the video (it never touches the installation). */
.hero360-eyebrow::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:34px;
  height:1px;
  background:var(--espresso-soft);
  opacity:.5;
}
.hero360-text.pos-right .hero360-eyebrow::after{ left:auto; right:0; }
.hero360-line{
  font-family:var(--font-display);
  font-size:clamp(2.2rem, 3.8vw, 4.1rem);
  font-weight:400;
  line-height:1.08;
  letter-spacing:-.005em;
  color:var(--espresso);
  max-width:17ch;
}

.hero360-text.pos-top-left{
  top:clamp(7.5rem, 15vh, 9.5rem);
  left:var(--gutter);
  text-align:left;
}
.hero360-text.pos-right{
  top:50%;
  right:var(--gutter);
  transform:translateY(-50%);
  text-align:right;
}
.hero360-text.pos-right .hero360-line{ margin-left:auto; max-width:15ch; }
.hero360-text.pos-bottom-left{
  bottom:15%;
  left:var(--gutter);
  text-align:left;
}

/* stage indicator: a small gallery/plate number ("01 / 03"), not a
   carousel dial -- reads like a museum wall label for the piece
   currently on view, not UI chrome. Pinned to a fixed top-right corner
   (not vertically centered) on purpose: the editorial text cycles
   top-left/right/bottom-left per stage, and "right + vertically
   centered" would collide with it whenever a stage's text sits on the
   right (pos-right). A fixed top corner never shares both axes with
   any of the three text positions. */
.outfit360-index{
  position:absolute;
  right:clamp(1.2rem,3vw,3rem);
  top:clamp(7.5rem, 15vh, 9.5rem);
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:.7rem;
  z-index:20;
}
.outfit360-index .index-row{
  display:flex;
  align-items:baseline;
  gap:.4rem;
  font-family:var(--font-body);
}
.outfit360-index .index-current{
  font-family:var(--font-display);
  font-size:1.15rem;
  color:var(--gold);
  transition:opacity .3s var(--ease);
}
.outfit360-index .index-sep{ font-size:.7rem; color:rgba(44,32,21,.4); }
.outfit360-index .index-total{ font-size:.7rem; letter-spacing:.1em; color:rgba(44,32,21,.55); }
.outfit360-index .index-line{ width:1px;height:30px;background:rgba(44,32,21,.25); }

/* the installation itself: just the ORIGINAL video, centered, on the
   plain warm ground above -- no background photo plate, no spotlight,
   no flanking lines, no frame/border around the box. object-fit:contain
   preserves the clip's native aspect ratio with zero crop (head/pedestal
   always fully in frame); the generous space left/right and above/below
   inside .outfit360-frame IS the "installation", not a decorative layer
   on top of the video. */
.outfit360-installation{
  position:relative;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.outfit360-frame{
  position:absolute;
  left:0;
  right:0;
  top:7%;
  bottom:7%;
  z-index:10;
  overflow:visible;
}
.outfit360-video{
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  /* contain, not cover: the client's original clips, unmodified -- this
     preserves their native aspect ratio with no crop at all (head/
     pedestal always fully in frame). No filter/color-grade -- the footage
     renders exactly as shot. box-shadow only (never touches the video's
     own pixels) lifts it off the ground like a piece on a plinth. */
  object-fit:contain;
  background:transparent;
  opacity:0;
  will-change:opacity;
  filter:drop-shadow(0 3vh 3vh rgba(44,32,21,.16));
}
.outfit360-video[data-stage="0"]{ opacity:1; }

/* atmosphere -- a whisper-quiet vignette toward the stage edges, pulling
   the eye back to the mannequin, plus a hair more presence on the
   finished outfit-02 look. Pure gradient, static shape, opacity-only
   transition between stages -- no glow/spotlight/color-cast. */
.outfit360-atmosphere{
  position:absolute;
  inset:0;
  z-index:12;
  pointer-events:none;
  background:radial-gradient(ellipse 82% 80% at 50% 48%,
    transparent 58%,
    rgba(44,32,21,.05) 84%,
    rgba(44,32,21,.10) 100%);
  opacity:.7;
  transition:opacity 1.1s var(--ease);
}
.outfit360-atmosphere[data-stage="2"]{ opacity:1; }

/* ------------------------------------------------------------
   decorative architectural frame -- a stable "exhibit vitrine"
   around the installation, added on top of the approved reset.
   Deliberately its OWN fixed box (clamp'd width/height, centered),
   independent of the video's own contain-fitted rectangle (which
   differs slightly per clip -- 704x1248 vs 832x1120, see
   js/outfit360.js) -- sized generously so it never clips either
   clip's rendered width, and never needs to resize/move itself.
   Struts + rules + corners are pure border/gradient constructions,
   no images; the whole layer is pointer-events:none/aria-hidden
   and NEVER receives a transform, so it can't be mistaken for
   following the mannequin's rotation -- only opacity/filter shift
   a touch on stage change (see [data-stage] below). ------------ */
.outfit360-frame-deco{
  position:absolute;
  z-index:16;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  /* width is deliberately keyed to viewport HEIGHT (vh), not vw -- the
     video itself is height-constrained (object-fit:contain inside a
     top:7%/bottom:7% box), so its rendered width scales with vh too.
     Sizing the frame the same way keeps a consistent margin around the
     mannequin at every viewport height instead of the gap stretching/
     shrinking independently. 78vh comfortably clears the widest clip's
     own rendered width (~64vh at this box height) with ~20% to spare;
     the narrower two clips (~49vh wide) get a generously wider gap --
     intentional, matches the "tanto spazio negativo" brief. */
  width:clamp(320px, 78vh, 760px);
  height:clamp(440px, 90vh, 880px);
  pointer-events:none;
  opacity:.88;
  transition:opacity 1s var(--ease), filter 1s var(--ease);
}
#outfit360Installation[data-stage="2"] .outfit360-frame-deco{
  opacity:1;
  filter:brightness(1.03);
}

.frame-strut{
  position:absolute;
  top:5%;
  bottom:5%;
  width:1px;
  background:linear-gradient(to bottom,
    transparent 0%,
    rgba(185,160,109,.55) 14%,
    rgba(185,160,109,.55) 86%,
    transparent 100%);
}
.frame-strut.left{ left:0; }
.frame-strut.right{ right:0; }

.frame-rule{
  position:absolute;
  left:16%;
  right:16%;
  height:1px;
  background:linear-gradient(to right,
    transparent, rgba(185,160,109,.65) 18%, rgba(185,160,109,.65) 82%, transparent);
}
.frame-rule.top{ top:0; }
/* base rule reads heavier/more "important" than the top one -- the plinth
   line the whole composition rests on, not a symmetrical picture frame */
.frame-rule.base{
  left:8%;
  right:8%;
  bottom:0;
  height:2px;
  background:linear-gradient(to right,
    transparent, var(--gold) 12%, var(--gold) 88%, transparent);
}
/* soft floor shadow beneath the base rule -- the museum-plinth cue, kept
   extremely quiet (blurred gradient only, never a hard shape) */
.frame-rule.base::after{
  content:"";
  position:absolute;
  left:20%;
  right:20%;
  top:100%;
  height:14px;
  background:radial-gradient(ellipse at center, rgba(44,32,21,.14), transparent 75%);
  filter:blur(2px);
}

/* micro metallic inserts -- tiny rivet-like accents at the struts'
   mid-height, the one literal "metal detail" the brief asks for */
.frame-rivet{
  position:absolute;
  top:50%;
  width:5px;
  height:5px;
  margin-top:-2.5px;
  border-radius:50%;
  background:radial-gradient(circle at 34% 30%, #fbf3e2, var(--gold) 55%, var(--espresso-soft) 100%);
  box-shadow:0 1px 3px rgba(44,32,21,.35);
}
.frame-rivet.left{ left:-2.5px; }
.frame-rivet.right{ right:-2.5px; }

/* exhibition-plaque corner marks -- an L-shaped tick at each corner,
   deliberately NOT a closed rectangle border (that would read as a
   card/video-player chrome) */
.frame-corner{
  position:absolute;
  width:13px;
  height:13px;
  opacity:.75;
}
.frame-corner.tl{ top:-1px; left:-1px; border-top:1px solid var(--gold); border-left:1px solid var(--gold); }
.frame-corner.tr{ top:-1px; right:-1px; border-top:1px solid var(--gold); border-right:1px solid var(--gold); }
.frame-corner.bl{ bottom:-1px; left:-1px; border-bottom:1px solid var(--gold); border-left:1px solid var(--gold); }
.frame-corner.br{ bottom:-1px; right:-1px; border-bottom:1px solid var(--gold); border-right:1px solid var(--gold); }

/* small vertical exhibition-placard label running up the right strut --
   the one "coordinate/micro-label" detail, kept whisper-quiet.
   writing-mode (not transform:rotate) on purpose: a rotated box keeps its
   PRE-rotation width/height for layout purposes, so `right:` anchors to
   where the unrotated (wide, one-line) box would sit -- on the widest
   clip that pivot landed the rotated text back over the video's own
   edge. vertical-rl gives the same sideways-label look with a box that's
   actually narrow (~1 line thick) and tall, so `right` anchors correctly
   just outside the frame every time. */
.frame-label{
  position:absolute;
  right:-1.6rem;
  top:50%;
  transform:translateY(-50%);
  writing-mode:vertical-rl;
  white-space:nowrap;
  font-family:var(--font-body);
  font-size:.58rem;
  font-weight:500;
  letter-spacing:.34em;
  text-transform:uppercase;
  color:var(--espresso-soft);
  opacity:.4;
}

.outfit360-cue{
  position:absolute;
  left:50%;bottom:6.5%;
  transform:translateX(-50%);
  display:flex;flex-direction:column;align-items:center;
  gap:.7rem;
  z-index:20;
  transition:opacity .25s var(--ease);
}
.outfit360-cue span{
  font-size:.65rem;
  letter-spacing:.3em;
  text-transform:uppercase;
  color:var(--espresso-soft);
}
.outfit360-cue i{
  display:block;
  width:1px;height:34px;
  background:rgba(44,32,21,.3);
  position:relative;
  overflow:hidden;
}
.outfit360-cue i::after{
  content:"";
  position:absolute;left:0;top:-100%;width:100%;height:100%;
  background:var(--gold);
  animation:cueDrop 1.8s var(--ease) infinite;
}
@keyframes cueDrop{
  0%{transform:translateY(-100%);}
  100%{transform:translateY(320%);}
}

@media (prefers-reduced-motion: reduce){
  .outfit360-cue i::after{ animation:none; }
  .hero360-text-inner{ transition-duration:.01s; }
  .outfit360-atmosphere{ transition-duration:.01s; }
  .outfit360-frame-deco{ transition-duration:.01s; }
}

@media (max-width:900px){
  .outfit360{ height:380vh; }
  /* on mobile the editorial text collapses to a full-width centered band
     (see .hero360-text overrides below), which would overlap the
     index plate's top-right corner position -- it's a nice-to-have,
     not worth the collision, so it steps aside on narrow viewports */
  .outfit360-index{ display:none; }

  /* top pushed well below the fixed centered text band (the text sits at
     top:max(6%,108px) and its two lines run to roughly y=205px -- see
     .hero360-text overrides below), plus a touch of horizontal inset
     (was edge-to-edge) so the decorative frame always has a sliver of
     real margin to sit in, never crossing over the video's own rendered
     pixels. */
  .outfit360-frame{ top:max(30%, 248px); bottom:11%; left:5%; right:5%; }

  .hero360-text::before{ display:none; }

  /* the desktop top-left/right/bottom-left choreography needs room
     beside the frame that a narrow viewport doesn't have -- every stage
     collapses to the same safe band (below the fixed header, above the
     mannequin's own headroom in-frame) instead of sitting over the body */
  .hero360-text,
  .hero360-text.pos-top-left,
  .hero360-text.pos-right,
  .hero360-text.pos-bottom-left{
    top:max(6%, 108px);
    left:var(--gutter);
    right:var(--gutter);
    bottom:auto;
    transform:none;
    text-align:center;
  }
  .hero360-eyebrow{ font-size:.66rem; margin-bottom:.4rem; padding-bottom:.4rem; }
  .hero360-eyebrow::after{ left:50%; transform:translateX(-50%); }
  .hero360-text.pos-right .hero360-eyebrow::after{ right:auto; }
  .hero360-line{
    max-width:none;
    margin-left:auto;
    margin-right:auto;
    font-size:clamp(1.4rem, 5.4vw, 1.9rem);
    line-height:1.15;
  }
  .hero360-text.pos-right .hero360-line{ margin-left:auto; max-width:none; }

  /* smaller, tighter vitrine on mobile; the rotated placard label is
     dropped -- "riduci gli elementi secondari" -- struts/rules/corners
     carry the "installation" feeling on their own at this size.

     Positioned with top/bottom (not the desktop top:50%+translate trick)
     so its height is simply "whatever's left" between the two anchors --
     that keeps it automatically a hair more generous than .outfit360-frame
     above (top:max(30%,248px) there vs max(26%,224px) here; bottom:11%
     there vs 8% here) without any manual centering math, and guarantees
     its top edge clears the fixed text band the same way. */
  .outfit360-frame-deco{
    top:max(26%, 224px);
    bottom:8%;
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:min(94vw, 360px);
    height:auto;
  }
  .frame-label{ display:none; }
}

/* ============================================================
   SECTION shared
   ============================================================ */
section{position:relative;}
.section{padding:clamp(5rem,10vw,9rem) 0;}
.section-tight{padding:clamp(3.5rem,7vw,6rem) 0;}
.section-head{
  display:flex;justify-content:space-between;align-items:flex-end;
  gap:2rem;margin-bottom:3.5rem;flex-wrap:wrap;
}
.section-title{font-size:clamp(2.1rem,4vw,3.4rem);font-weight:400;}
.section-note{max-width:34ch;font-size:.95rem;color:rgba(11,11,10,.6);font-weight:300;line-height:1.75;}

.section-dark{background:var(--black);color:var(--ivory);}
.section-dark .section-note{color:rgba(246,242,234,.62);}
.section-dark .eyebrow{color:var(--tortora-light);}

/* ============================================================
   INTRO ACADEMY
   ============================================================ */
.intro{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,6vw,6rem);align-items:center;}
.intro-media{position:relative;overflow:hidden;aspect-ratio:4/5;}
.intro-media img{width:100%;height:100%;object-fit:cover;transition:transform 1.4s var(--ease);}
.intro-media:hover img{transform:scale(1.06);}
.intro-media-frame{
  position:absolute;inset:18px;border:1px solid rgba(246,242,234,.55);
  pointer-events:none;
}
.intro-text p{font-size:1.08rem;color:rgba(11,11,10,.72);margin-top:1.6rem;line-height:1.85;}
.intro-text .section-title{margin-top:1rem;}
.intro-stats{display:flex;gap:clamp(1.6rem,4vw,3.4rem);margin-top:2.8rem;padding-top:2.2rem;border-top:1px solid var(--line);}
.intro-stats .stat-num{font-family:var(--font-display);font-size:2.2rem;color:var(--gold-a11y);}
.intro-stats .stat-label{font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(11,11,10,.55);margin-top:.4rem;}

/* ============================================================
   SCHOOLS
   ============================================================ */
.schools-list{display:flex;flex-direction:column;}
.school-row{
  display:grid;
  grid-template-columns:120px 1fr 1.1fr;
  gap:clamp(1.5rem,3vw,3rem);
  align-items:center;
  padding:2.6rem 0;
  border-top:1px solid var(--line-light);
  transition:padding .5s var(--ease);
}
.schools-list .school-row:last-child{border-bottom:1px solid var(--line-light);}
.school-num{font-family:var(--font-display);font-size:1.1rem;color:var(--gold);}
.school-main h3{font-size:clamp(1.6rem,2.6vw,2.3rem);}
.school-main .school-sub{margin-top:.6rem;font-size:.85rem;letter-spacing:.06em;color:rgba(246,242,234,.55);}
.school-media{
  position:relative;overflow:hidden;aspect-ratio:16/9;
}
.school-media img{width:100%;height:100%;object-fit:cover;transform:scale(1.01);transition:transform .9s var(--ease),filter .9s var(--ease);filter:grayscale(35%);}
.school-row:hover .school-media img{transform:scale(1.08);filter:grayscale(0%);}
.school-programs{
  display:flex;flex-wrap:wrap;gap:.5rem 1.2rem;margin-top:1.2rem;
}
.school-programs span{font-size:.75rem;color:rgba(246,242,234,.5);}
.school-programs span:not(:last-child)::after{content:"·";margin-left:1.2rem;color:rgba(246,242,234,.3);}
/* courses not yet confirmed/active (no dedicated page in data/courses.json)
   are visually muted so the list never implies availability it doesn't have */
.school-programs span.soon{color:rgba(246,242,234,.25);}
.schools-legend{
  margin-top:-1.8rem;margin-bottom:2.8rem;
  font-size:.74rem;letter-spacing:.04em;color:rgba(246,242,234,.62);
  display:flex;align-items:center;gap:.5rem;
}
.schools-legend::before{content:"";width:6px;height:6px;border-radius:50%;background:rgba(246,242,234,.25);flex:none;}
.school-link{
  display:inline-flex;align-items:center;gap:.6rem;margin-top:1.4rem;
  font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;color:var(--tortora-light);
}
.school-link .arrow{transition:transform .4s var(--ease);}
.school-row:hover .school-link .arrow{transform:translateX(6px);}

/* ============================================================
   FEATURED COURSES
   ============================================================ */
.courses-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.5rem,3vw,2.5rem);}
.course-card{position:relative;}
.course-media{position:relative;overflow:hidden;aspect-ratio:3/4;}
.course-media img{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease);}
.course-card:hover .course-media img{transform:scale(1.07);}
.course-media::after{content:"";position:absolute;inset:0;background:linear-gradient(0deg, rgba(11,11,10,.75) 0%, rgba(11,11,10,0) 45%);}
.course-tag{
  position:absolute;top:1.1rem;left:1.1rem;z-index:1;
  font-size:.62rem;letter-spacing:.18em;text-transform:uppercase;color:var(--black);
  background:var(--ivory);padding:.42rem .8rem;
}
.course-info{position:absolute;left:1.3rem;right:1.3rem;bottom:1.3rem;z-index:1;color:var(--ivory);}
.course-info h3{font-size:1.35rem;font-weight:500;}
.course-info .course-meta{margin-top:.5rem;font-size:.72rem;letter-spacing:.08em;color:var(--tortora-light);}

.courses-more{
  margin-top:3rem;
  padding-top:2rem;
  border-top:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  gap:.8rem 1.4rem;
}
.courses-more-label{
  font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;color:var(--tortora-dark);
}
.courses-more .school-programs span{color:rgba(11,11,10,.55);}
.courses-more .school-programs span:not(:last-child)::after{color:rgba(11,11,10,.3);}
.courses-more .school-programs span.soon{color:rgba(11,11,10,.22);}

/* ============================================================
   FORMATS
   ============================================================ */
.formats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line);}
.format-card{background:var(--ivory);padding:2.4rem 1.8rem;transition:background .5s var(--ease),color .5s var(--ease);}
.format-card:hover{background:var(--black);color:var(--ivory);}
.format-card:hover .format-time{color:var(--tortora-light);}
.format-index{font-family:var(--font-display);font-size:.85rem;color:var(--gold-a11y);}
.format-card h3{font-size:1.3rem;margin-top:1rem;}
.format-time{display:block;margin-top:.6rem;font-size:.78rem;color:rgba(11,11,10,.55);transition:color .5s var(--ease);}

/* ============================================================
   WHY MILAN
   ============================================================ */
.milan{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2rem,5vw,4rem);align-items:center;}
.milan-media{position:relative;}
.milan-media-main{overflow:hidden;aspect-ratio:5/6;}
.milan-media-main img{width:100%;height:100%;object-fit:cover;}
.milan-media-float{
  position:absolute;width:46%;aspect-ratio:4/3;
  bottom:-8%;left:-12%;
  overflow:hidden;border:6px solid var(--black);
  box-shadow:0 30px 60px rgba(0,0,0,.25);
}
.milan-media-float img{width:100%;height:100%;object-fit:cover;}
.milan-reasons{margin-top:2.2rem;}
.milan-reason{display:flex;gap:1.4rem;padding:1.4rem 0;border-top:1px solid var(--line);}
.milan-reason:last-child{border-bottom:1px solid var(--line);}
.milan-reason .num{font-family:var(--font-display);font-size:1.1rem;color:var(--gold);}
.milan-reason h3{font-size:1.15rem;font-weight:500;}
.milan-reason p{margin-top:.4rem;font-size:.92rem;color:rgba(11,11,10,.6);}

/* ============================================================
   EXPERIENCE GALLERY
   ============================================================ */
.experience-grid{
  display:grid;
  grid-template-columns:repeat(6,1fr);
  grid-auto-rows:120px;
  gap:.6rem;
}
.exp-item{position:relative;overflow:hidden;grid-column:span 2;grid-row:span 2;}
.exp-item.tall{grid-row:span 3;}
.exp-item.wide{grid-column:span 3;}
.exp-item img{width:100%;height:100%;object-fit:cover;transition:transform 1s var(--ease);}
.exp-item:hover img{transform:scale(1.08);}

/* ============================================================
   ABOUT
   ============================================================ */
.about{display:grid;grid-template-columns:.9fr 1.1fr;gap:clamp(2rem,5vw,5rem);align-items:center;}
.about-media{display:grid;grid-template-columns:1fr 1fr;gap:1rem;}
.about-media img{width:100%;height:100%;object-fit:cover;}
.about-media .img-a{aspect-ratio:3/4;margin-top:2.4rem;}
.about-media .img-b{aspect-ratio:3/4;}
.about-text p{font-size:1.08rem;color:rgba(11,11,10,.72);line-height:1.85;margin-top:1.4rem;}
.about-values{display:grid;grid-template-columns:1fr 1fr;gap:1.6rem;margin-top:2.4rem;}
.about-values h3{font-family:var(--font-body);font-weight:500;margin:0;font-size:.72rem;letter-spacing:.18em;text-transform:uppercase;color:var(--gold);}
.about-values p{font-size:.88rem;margin-top:.5rem;color:rgba(11,11,10,.6);}

/* ============================================================
   CTA FINALE
   ============================================================ */
.cta-final{position:relative;color:var(--ivory);text-align:center;overflow:hidden;}
.cta-final .hero-media{position:absolute;inset:0;}
.cta-final .hero-media img{width:100%;height:100%;object-fit:cover;}
.cta-final .hero-media::after{content:"";position:absolute;inset:0;background:rgba(11,11,10,.72);}
.cta-final-content{position:relative;z-index:1;padding-top:clamp(5rem,12vw,9rem);padding-bottom:clamp(5rem,12vw,9rem);}
.cta-final .eyebrow{justify-content:center;color:var(--tortora-light);}
.cta-final .eyebrow::before{display:none;}
.cta-final h2{font-size:clamp(2.4rem,6vw,4.6rem);margin-top:1.2rem;max-width:16ch;margin-inline:auto;}
.cta-final p{margin-top:1.4rem;color:rgba(246,242,234,.7);max-width:44ch;margin-inline:auto;}
.cta-final .hero-ctas{justify-content:center;margin-top:2.6rem;animation:none;opacity:1;}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer{background:var(--black);color:var(--ivory);padding:5rem 0 2rem;}
.footer-top{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr 1.1fr;gap:2.5rem;padding-bottom:3.5rem;border-bottom:1px solid var(--line-light);}
.footer-brand .brand-main{font-size:2.2rem;letter-spacing:.28em;color:var(--ivory);}
.footer-brand .brand-sub{margin-top:.5rem;font-size:.62rem;letter-spacing:.32em;text-transform:uppercase;color:var(--gold);}
.footer-brand p{margin-top:1.4rem;font-size:.85rem;color:rgba(246,242,234,.55);max-width:30ch;}
.footer-col h3{font-family:var(--font-body);font-weight:500;font-size:.68rem;letter-spacing:.18em;text-transform:uppercase;color:var(--tortora-light);margin-bottom:1.2rem;}
.footer-col ul li{margin-bottom:.7rem;}
.footer-col a{font-size:.86rem;color:rgba(246,242,234,.65);transition:color .3s var(--ease);}
.footer-col a:hover{color:var(--ivory);}
.footer-bottom{display:flex;justify-content:space-between;align-items:center;padding-top:2rem;flex-wrap:wrap;gap:1rem;}
.footer-bottom p{font-size:.75rem;color:rgba(246,242,234,.65);}
.footer-social{display:flex;gap:1.4rem;}
.footer-social a{font-size:.75rem;letter-spacing:.08em;color:rgba(246,242,234,.65);}
.footer-social a:hover{color:var(--gold);}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1080px){
  .courses-grid{grid-template-columns:repeat(2,1fr);}
  .formats-grid{grid-template-columns:repeat(2,1fr);}
  .experience-grid{grid-template-columns:repeat(4,1fr);}
  .footer-top{grid-template-columns:1fr 1fr 1fr;}
}

@media (max-width:900px){
  /* .header-actions (lang-switch + CTAs) is hidden as a whole, not just
     the ghost button: its lang-switch and primary CTA are already
     duplicated inside .mobile-nav for the hamburger overlay, so leaving
     any of it visible in the compact bar just overlaps the brand mark. */
  .main-nav,.header-actions{display:none;}
  .nav-toggle{display:block;}
  .intro,.milan,.about{grid-template-columns:1fr;}
  .milan-media{margin-bottom:3rem;}
  .milan-media-float{position:relative;bottom:auto;left:auto;width:70%;margin-top:1rem;}
  .about-media{order:-1;}
  .school-row{grid-template-columns:1fr;text-align:left;}
  .school-num{display:none;}
}

@media (max-width:720px){
  .courses-grid{grid-template-columns:1fr;}
  .formats-grid{grid-template-columns:1fr;}
  .experience-grid{grid-template-columns:repeat(2,1fr);grid-auto-rows:150px;}
  .exp-item.wide{grid-column:span 2;}
  .footer-top{grid-template-columns:1fr 1fr;gap:2rem;}
  .footer-brand{grid-column:1/-1;}
  .hero-scroll{display:none;}
  .about-values{grid-template-columns:1fr;}
}

@media (max-width:560px){
  .hero-content{padding-bottom:4rem;}
  .footer-top{grid-template-columns:1fr;}
  .footer-bottom{flex-direction:column;align-items:flex-start;}
  /* brandline wraps to 2 lines on narrow phones -- give it room to
     breathe from the eyebrow line right under it */
  .hero-brandline{margin-bottom:1.3rem;}
}

/* ---------- Mobile nav overlay ---------- */
.mobile-nav{
  position:fixed;inset:0;
  /* explicit height, not just inset:0 -- .site-header's backdrop-filter
     (added by .is-scrolled) makes it the containing block for this fixed
     element once the page is scrolled, shrinking inset:0's computed
     height to the header's own ~80px instead of the viewport. height:100vh
     is immune to that since vh is always relative to the viewport itself. */
  height:100vh;
  z-index:150;
  background:var(--black);
  color:var(--ivory);
  display:flex;flex-direction:column;justify-content:center;
  padding:0 var(--gutter);
  transform:translateY(-100%);
  transition:transform .6s var(--ease);
}
.nav-open .mobile-nav{transform:translateY(0);}
.mobile-nav ul{display:flex;flex-direction:column;gap:1.3rem;}
.mobile-nav a{font-family:var(--font-display);font-size:2.4rem;font-weight:400;}

/* ============================================================
   INNER PAGES — shared: a slim, editorial hero for every non-home
   page (chi-siamo, academy, contatti, corsi hub) plus the course
   detail template. Reuses .hero-media's own image-cover + gradient
   pattern (already defined above) at a shorter height so inner
   pages don't force a full 100vh scroll before any content shows.
   ============================================================ */
.page-hero{
  position:relative;
  min-height:56vh;
  display:flex;
  align-items:flex-end;
  color:var(--ivory);
  overflow:hidden;
}
.page-hero .hero-media{position:absolute;inset:0;z-index:0;}
.page-hero .hero-media img{width:100%;height:100%;object-fit:cover;}
.page-hero .hero-media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(11,11,10,.3) 0%, rgba(11,11,10,.2) 40%, rgba(11,11,10,.8) 100%);
}
.page-hero-content{position:relative;z-index:1;padding-top:clamp(3.5rem,8vw,6rem);padding-bottom:clamp(3rem,6vw,4.5rem);}
.page-hero-content .eyebrow{color:var(--tortora-light);}
.page-hero-content .eyebrow::before{background:var(--tortora-light);}
.page-hero h1{
  margin-top:1rem;
  font-size:clamp(2.6rem,6vw,4.8rem);
  font-weight:400;
  max-width:20ch;
}
.page-hero-lead{margin-top:1.2rem;max-width:56ch;font-size:1.05rem;color:rgba(246,242,234,.78);}
.no-hero-image .page-hero{background:var(--black);}

/* current-page nav indicator (used across all inner pages) */
.main-nav a.is-active,
.mobile-nav a.is-active{color:var(--gold);}
.main-nav a.is-active::after{width:100%;}

/* ============================================================
   CORSI HUB — area anchor sections + filterable grid
   ============================================================ */
.corsi-area{scroll-margin-top:110px;}
.corsi-area + .corsi-area{margin-top:clamp(4rem,8vw,7rem);padding-top:clamp(4rem,8vw,7rem);border-top:1px solid var(--line);}
.corsi-area-head{display:grid;grid-template-columns:1fr 1.4fr;gap:clamp(2rem,5vw,4rem);align-items:end;margin-bottom:2.6rem;}
.corsi-area-head .school-media{aspect-ratio:16/9;overflow:hidden;}
.corsi-area-head .school-media img{width:100%;height:100%;object-fit:cover;}
.corsi-area-tagline{margin-top:.6rem;color:rgba(11,11,10,.6);max-width:48ch;}

/* small label above a filter/chip group ("Che cosa vuoi imparare?",
   "Filtra per School", ...) -- shared by the homepage "Trova il
   percorso" teaser and the real corsi.html filter bar. */
.finder-question{
  font-size:.78rem;letter-spacing:.06em;color:rgba(11,11,10,.68);
  margin-bottom:.9rem;
}
.finder-question:not(:first-child){margin-top:2rem;}
.finder .formats-grid{margin-top:0;}
.finder-cta{margin-top:2.5rem;}

.corsi-filterbar{
  display:flex;flex-wrap:wrap;gap:.6rem;
  margin-bottom:1.2rem;
}
.corsi-filterbar + .corsi-filterbar{
  margin-bottom:clamp(2.5rem,5vw,4rem);
  padding-top:1.2rem;
  border-top:1px solid var(--line);
}
.corsi-area[hidden]{display:none;}
.corsi-filter{
  font-family:var(--font-body);font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;
  padding:.6rem 1.1rem;border:1px solid var(--line);background:transparent;color:var(--black);
  cursor:pointer;transition:background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.corsi-filter:hover{border-color:var(--tortora-dark);}
.corsi-filter.active{background:var(--black);color:var(--ivory);border-color:var(--black);}

.course-card-link{display:block;color:inherit;}
.course-card[hidden]{display:none;}
.course-card .course-info h3{transition:color .3s var(--ease);}
.course-card-link:hover .course-info h3{color:var(--gold);}
.course-format{
  display:block;margin-top:.2rem;font-size:.68rem;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(246,242,234,.65);
}

/* ============================================================
   COURSE DETAIL PAGE
   ============================================================ */
.course-hero{position:relative;min-height:64vh;display:flex;align-items:flex-end;color:var(--ivory);overflow:hidden;}
.course-hero-media{position:absolute;inset:0;z-index:0;}
.course-hero-media img{width:100%;height:100%;object-fit:cover;}
.course-hero-media::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg, rgba(11,11,10,.35) 0%, rgba(11,11,10,.15) 40%, rgba(11,11,10,.85) 100%);
}
.course-hero-content{position:relative;z-index:1;padding-top:clamp(4rem,9vw,6.5rem);padding-bottom:clamp(3rem,6vw,4.5rem);}
.course-hero-content .eyebrow{color:var(--tortora-light);}
.course-hero-content .eyebrow::before{background:var(--tortora-light);}
.course-hero-content h1{margin-top:1rem;font-size:clamp(2.6rem,6vw,4.6rem);font-weight:400;max-width:22ch;}
.course-hero-excerpt{margin-top:1.2rem;max-width:56ch;font-size:1.05rem;color:rgba(246,242,234,.78);}
.course-hero-ctas{display:flex;gap:1rem;margin-top:2rem;flex-wrap:wrap;}

.course-infosheet{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:1.5rem 2rem;
  padding:1.8rem clamp(1.2rem,3vw,2.4rem);
  background:var(--ivory-soft);border:1px solid var(--line);
}
.course-infosheet .label{display:block;font-size:.65rem;letter-spacing:.16em;text-transform:uppercase;color:var(--tortora-a11y);margin-bottom:.4rem;}
.course-infosheet strong{font-family:var(--font-display);font-size:1.1rem;font-weight:500;}
/* fields not yet confirmed by the client read as an editorial note
   (italic, muted, smaller) instead of a broken/empty database field */
.course-infosheet strong.pending{
  font-family:var(--font-body);font-style:italic;font-weight:400;
  font-size:.92rem;color:var(--tortora-a11y);
}
.course-infosheet-note{
  grid-column:1/-1;margin-top:.6rem;padding-top:1.2rem;
  border-top:1px solid var(--line);
  font-size:.7rem;letter-spacing:.02em;color:rgba(11,11,10,.62);
}
.pending-text{font-style:italic;color:rgba(11,11,10,.62);}

.course-split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2.5rem,6vw,5rem);}
.course-list{margin-top:1.5rem;display:flex;flex-direction:column;gap:.9rem;}
.course-list li{
  position:relative;padding-left:1.6rem;line-height:1.6;color:rgba(11,11,10,.78);
}
.course-list li::before{
  content:"";position:absolute;left:0;top:.55em;width:8px;height:1px;background:var(--gold);
}

.course-program{margin-top:2.2rem;display:flex;flex-direction:column;}
.course-program-item{
  display:flex;align-items:baseline;gap:1.6rem;
  padding:1.3rem 0;border-bottom:1px solid var(--line-light);
  color:rgba(246,242,234,.85);
}
.course-program-num{font-family:var(--font-display);font-size:1.2rem;color:var(--gold);flex-shrink:0;}
/* single "program still being published" line -- no numeral, no
   list-item border, so it reads as one editorial note rather than
   a curriculum list that only ever grew one item long */
.course-program-pending{
  border-bottom:none;padding:1.6rem 0 2.2rem;
  font-family:var(--font-display);font-style:italic;font-size:1.15rem;
  color:rgba(246,242,234,.65);
}

.course-meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2.4rem;}
.course-meta-grid h3{font-family:var(--font-body);font-weight:500;font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--tortora-a11y);margin-bottom:.7rem;}
.course-meta-grid p{color:rgba(11,11,10,.72);line-height:1.65;}

.course-faq{display:flex;flex-direction:column;gap:.9rem;margin-top:1.5rem;max-width:70ch;}
.course-faq-item{border:1px solid var(--line);padding:1.1rem 1.4rem;}
.course-faq-item summary{
  cursor:pointer;font-family:var(--font-display);font-size:1.1rem;font-weight:500;
  list-style:none;display:flex;justify-content:space-between;align-items:center;gap:1rem;
}
.course-faq-item summary::-webkit-details-marker{display:none;}
.course-faq-item summary::after{content:"+";font-size:1.3rem;color:var(--gold);transition:transform .3s var(--ease);}
.course-faq-item[open] summary::after{transform:rotate(45deg);}
.course-faq-item p{margin-top:.9rem;color:rgba(11,11,10,.7);line-height:1.65;}

/* ============================================================
   SIMPLE CONTENT PAGES — chi-siamo / academy shared prose blocks
   ============================================================ */
.prose{max-width:70ch;}
.prose p + p{margin-top:1.1rem;}
.method-steps{display:grid;grid-template-columns:repeat(5,1fr);gap:1.5rem;margin-top:2.5rem;}
.method-step{padding-top:1.4rem;border-top:1px solid var(--line-light);}
.method-step .num{font-family:var(--font-display);font-size:1.6rem;color:var(--gold-a11y);}
.method-step h3{margin-top:.6rem;}
.method-step p{margin-top:.5rem;font-size:.9rem;color:rgba(246,242,234,.65);line-height:1.6;}
.method-step-arrow{display:none;}

/* ============================================================
   CONTATTI — form
   ============================================================ */
.contact-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(2.5rem,6vw,5rem);}
.contact-form{display:flex;flex-direction:column;gap:1.3rem;}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:1.3rem;}
.form-field{display:flex;flex-direction:column;gap:.5rem;}
.form-field label{font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--tortora-a11y);}
.form-field input,
.form-field select,
.form-field textarea{
  font-family:var(--font-body);font-size:.95rem;color:var(--black);
  border:none;border-bottom:1px solid var(--line);background:transparent;
  padding:.7rem 0;transition:border-color .3s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus{outline:none;border-color:var(--gold);}
.form-consent{display:flex;align-items:flex-start;gap:.7rem;font-size:.82rem;color:rgba(11,11,10,.65);}
.form-consent input{margin-top:.3rem;}
.form-note{font-size:.8rem;color:rgba(11,11,10,.62);}
.contact-info{display:flex;flex-direction:column;gap:2.2rem;}
.contact-info-block h3{font-family:var(--font-body);font-weight:500;font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--tortora-a11y);margin-bottom:.6rem;}
.contact-info-block p, .contact-info-block a{font-family:var(--font-display);font-size:1.25rem;font-weight:400;display:block;color:var(--black);}
.form-success{
  display:none;padding:1.4rem;background:var(--ivory-soft);border:1px solid var(--line);
  font-size:.92rem;color:var(--black);
}
.form-success.is-visible{display:block;}
.form-error{
  display:none;padding:1.4rem;background:var(--ivory-soft);border:1px solid var(--tortora-dark);
  font-size:.92rem;color:var(--espresso);
}
.form-error.is-visible{display:block;}
.btn[disabled]{opacity:.55;cursor:not-allowed;}
.btn[disabled]:hover{color:var(--ivory);}
.btn[disabled]:hover::after{transform:translateX(-101%);}

@media (max-width:900px){
  .page-hero{min-height:44vh;}
  .course-hero{min-height:54vh;}
  .course-infosheet{grid-template-columns:repeat(2,1fr);}
  .course-split{grid-template-columns:1fr;gap:3rem;}
  .course-meta-grid{grid-template-columns:1fr 1fr;gap:2rem;}
  .corsi-area-head{grid-template-columns:1fr;}
  .method-steps{grid-template-columns:1fr 1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .form-row{grid-template-columns:1fr;}
}
@media (max-width:560px){
  .course-infosheet{grid-template-columns:1fr 1fr;}
  .course-meta-grid{grid-template-columns:1fr;}
  .method-steps{grid-template-columns:1fr;}
}

/* ============================================================
   ACCESSIBILITY — skip link, focus-visible, global reduced motion
   ============================================================ */
.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;
}

.skip-link{
  position:absolute;
  left:1rem;top:-3rem;
  z-index:1000;
  background:var(--black);
  color:var(--ivory);
  padding:.9rem 1.4rem;
  font-size:.75rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  transition:top .3s var(--ease);
}
.skip-link:focus{top:1rem;}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible{
  outline:2px solid var(--gold);
  outline-offset:3px;
}
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible{
  outline:none;border-color:var(--gold);
}

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

/* ============================================================
   MANIFESTO — value proposition block (homepage, after atelier)
   Reuses the .method-steps visual language (numbered column,
   border-top rule, h4+p) at 4 columns instead of 5, so it reads
   as the same design system, not a new one.
   ============================================================ */
.manifesto-lead{max-width:52ch;}
.manifesto-lead .section-title{margin-top:1rem;}
.manifesto-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1.5rem;margin-top:3rem;}
.manifesto-grid .method-step{padding-top:1.4rem;border-top:1px solid var(--line);}
.manifesto-grid .method-step p{color:rgba(11,11,10,.68);}
@media (max-width:900px){ .manifesto-grid{grid-template-columns:1fr 1fr;} }
@media (max-width:560px){ .manifesto-grid{grid-template-columns:1fr;} }

/* small real-data badge on each school row (course count pulled
   from data/courses.json — never a placeholder/fabricated number) */
.school-count{
  display:inline-block;margin-top:.9rem;
  font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;
  color:var(--gold);
}

/* ============================================================
   TRUST — docenti / numeri / riconoscimenti
   Elegant "coming soon" placeholder cards: never fake data, the
   component itself is what's shippable today.
   ============================================================ */
.trust-numbers{
  display:flex;gap:clamp(1.6rem,4vw,3.4rem);flex-wrap:wrap;
  margin-bottom:3.5rem;padding-bottom:2.2rem;border-bottom:1px solid var(--line-light);
}
.trust-numbers .stat-num{font-family:var(--font-display);font-size:2.2rem;color:var(--gold);}
.trust-numbers .stat-label{font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:rgba(246,242,234,.55);margin-top:.4rem;}

.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem;}
.trust-card{
  padding:2.4rem 1.8rem;
  border:1px solid var(--line-light);
  text-align:center;
  transition:border-color .4s var(--ease);
}
.trust-card:hover{border-color:var(--gold);}
.trust-card-mark{
  width:52px;height:52px;margin:0 auto 1.4rem;
  border:1px solid var(--gold);
  border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--font-display);font-size:1.3rem;color:var(--gold);
}
.trust-card h3{font-size:1.15rem;color:var(--ivory);}
.trust-card p{margin-top:.7rem;font-size:.88rem;line-height:1.65;color:rgba(246,242,234,.6);}
@media (max-width:900px){ .trust-grid{grid-template-columns:1fr;} }

/* ============================================================
   TESTIMONIANZE — placeholder editoriale, nessuna recensione finta
   ============================================================ */
.testimonial-placeholder{
  max-width:64ch;margin:0 auto;text-align:center;
  padding:clamp(3rem,7vw,5rem) clamp(1.5rem,4vw,3rem);
  border:1px solid var(--line);
}
.testimonial-placeholder .quote-mark{
  font-family:var(--font-display);font-size:3.5rem;line-height:1;color:var(--gold-a11y);
  display:block;margin-bottom:1rem;
}
.testimonial-placeholder p{font-family:var(--font-display);font-size:1.3rem;font-style:italic;color:rgba(11,11,10,.75);line-height:1.5;}
.testimonial-placeholder .note{
  margin-top:1.4rem;font-family:var(--font-body);font-style:normal;
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--tortora-a11y);
}

/* ============================================================
   FOOTER ISTITUZIONALE — dati societari reali (YES GROUP S.r.l.),
   confermati dal cliente 2026-09-02
   ============================================================ */
.footer-legal-note{
  margin-top:1.2rem;font-size:.72rem;line-height:1.6;color:rgba(246,242,234,.5);
  max-width:60ch;
}
.mobile-nav .btn{margin-top:2.5rem;align-self:flex-start;}
