/* ==========================================================
   I Parrucchieri Academy | Landing "Diventa parrucchiere"
   Mobile first. Nessun framework, nessuna dipendenza.
   ========================================================== */

:root {
  --bg: #050607;
  --red: #E30613;
  --red-dark: #A81715;
  --white: #FFFFFF;
  --white-70: rgba(255, 255, 255, 0.7);
  --line: rgba(255, 255, 255, 0.18);
  --surface: rgba(255, 255, 255, 0.04);
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sticky-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  /* spazio per il pulsante fisso: non copre i contatti */
  padding-bottom: calc(var(--sticky-h) + 24px + env(safe-area-inset-bottom));
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p, ul, dl, figure, address { margin: 0; }
ul { padding: 0; list-style: none; }
address { font-style: normal; }

a { color: var(--white); }

:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
/* testo stretto per leggibilità: stesso bordo sinistro del container, larghezza limitata */
.container.narrow > * { max-width: 760px; }

/* ---------- Titoli: maiuscolo solo per H1 e H2 ---------- */
h1, h2 {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(2rem, 7.5vw, 4.25rem); }
h2 { font-size: clamp(1.6rem, 6.4vw, 2.75rem); margin-bottom: 20px; }
h2::before {
  content: "";
  display: block;
  width: 56px;
  height: 6px;
  background: var(--red);
  margin-bottom: 16px;
}
h2.h2-plain { font-size: clamp(1.4rem, 5vw, 2rem); }
h3 { font-weight: 800; font-size: 1.25rem; line-height: 1.25; }

/* ---------- Pulsanti ---------- */
.btn, .sticky-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  padding: 16px 28px;
  border: 3px solid var(--red);
  border-radius: 0;
  transition: background-color 0.15s, border-color 0.15s;
}
.btn:hover, .sticky-cta:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-small { font-size: 0.9rem; padding: 10px 14px; }
.icon { width: 22px; height: 22px; flex: none; }

/* ---------- Barra avviso ---------- */
.notice {
  background: var(--red);
  color: var(--white);
  text-align: center;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.35;
  padding: 10px 20px;
}

/* ---------- Header ---------- */
.site-header { border-bottom: 4px solid var(--red); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logo img { height: 64px; width: auto; }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 0; }
.hero h1 { margin-bottom: 16px; }
.hero-text {
  font-size: 1.1rem;
  max-width: 34em;
  margin-bottom: 24px;
}
.hero .btn { width: 100%; }

/* Foto: mobile a tutta larghezza sotto la CTA, sfumata in basso verso lo sfondo.
   Mai più larga della sua dimensione reale (960 px). */
.hero-media { margin: 28px -20px 0; }
.hero-media img {
  width: 100%;
  max-width: 960px;
  height: auto;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

/* ---------- Sezioni ---------- */
.section { padding: 56px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.intro { font-size: 1.1rem; max-width: 40em; margin-bottom: 28px; }

/* Il corso in breve */
.facts { display: grid; gap: 12px; }
.facts > div {
  border-left: 6px solid var(--red);
  background: var(--surface);
  padding: 12px 16px;
}
.facts dt { font-size: 0.9rem; color: var(--white-70); }
.facts dd { margin: 0; font-weight: 800; font-size: 1.1rem; }
.facts .fact-highlight {
  grid-column: 1 / -1;
  background: var(--red);
  border-left-color: var(--white);
  padding: 20px 20px;
}
.facts .fact-highlight dt { color: var(--white); font-weight: 700; }
.facts .fact-highlight dd { font-size: 1.35rem; }

/* Per chi è */
.two-col { display: grid; gap: 16px; margin-bottom: 32px; }
.block { border: 3px solid var(--red-dark); padding: 24px 20px; }
.block p + p { margin-top: 10px; }
.block strong { font-size: 1.2rem; line-height: 1.3; }
.section > .container > .btn { width: 100%; }

/* Livelli */
.levels { display: grid; gap: 16px; counter-reset: level; margin-bottom: 28px; }
.level {
  counter-increment: level;
  position: relative;
  background: var(--surface);
  border-top: 6px solid var(--red);
  padding: 20px 20px 24px;
}
.level::before {
  content: counter(level);
  display: block;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;
  color: var(--red);
  margin-bottom: 8px;
}
.level h3 { margin-bottom: 10px; }

/* Programma espandibile e FAQ (details) */
details summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  padding-right: 40px;
  position: relative;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--red);
}
details[open] > summary::after { content: "\2212"; }

.program { border: 3px solid var(--red); }
.program summary { padding: 18px 56px 18px 20px; font-size: 1.05rem; }
.program summary::after { right: 18px; }
.program-body { padding: 4px 20px 24px; }
.program-level { margin-top: 20px; font-size: 1.15rem; }
.program-level strong { border-bottom: 4px solid var(--red); padding-bottom: 2px; }
.program-body ul { margin-top: 12px; }
.program-body li { padding: 8px 0 8px 18px; border-bottom: 1px solid var(--line); position: relative; }
.program-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 8px;
  height: 8px;
  background: var(--red);
}

/* La qualifica */
.narrow h3 { margin: 32px 0 10px; padding-left: 14px; border-left: 6px solid var(--red); }
.narrow p + p { margin-top: 14px; }
/* link di testo: area cliccabile di almeno 44 px */
.text-link, .site-footer address a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.text-link { font-weight: 800; text-underline-offset: 4px; text-decoration-thickness: 3px; text-decoration-color: var(--red); }
.text-link:hover { text-decoration-color: var(--white); }

/* Cosa è incluso */
.checklist { display: grid; gap: 12px; }
.checklist li {
  position: relative;
  padding: 16px 16px 16px 52px;
  background: var(--surface);
  border-left: 6px solid var(--red);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 1.35em;
  width: 16px;
  height: 8px;
  border-left: 4px solid var(--red);
  border-bottom: 4px solid var(--red);
  transform: rotate(-45deg);
}

/* Final work */
.highlight {
  font-size: clamp(1.4rem, 5.6vw, 2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  padding: 4px 0 4px 18px;
  border-left: 8px solid var(--red);
}

/* Video a facciata, 16:9. A tutta larghezza su mobile (esce dal padding del container) */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  margin: 0 -20px;
  background: #000;
  border-top: 6px solid var(--red);
}
.video-figure { margin-top: 32px; }
.video-caption { margin-top: 10px; font-size: 0.9rem; line-height: 1.4; color: var(--white-70); }
.video-play {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84px;
  height: 84px;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  border-radius: 50%;
  transition: background-color 0.15s, transform 0.15s;
}
.video-icon svg { width: 44px; height: 44px; margin-left: 4px; }
.video-play:hover .video-icon { background: var(--red-dark); transform: translate(-50%, -50%) scale(1.08); }
.video noscript a { position: absolute; left: 16px; bottom: 16px; }

/* Dove puoi lavorare */
.jobs { display: flex; flex-wrap: wrap; gap: 10px; }
.jobs li {
  padding: 12px 16px;
  font-weight: 800;
  border: 3px solid var(--red-dark);
}

/* Team */
.team { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
.team figure { border-top: 6px solid var(--red); background: var(--bg); }
.team img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.team figcaption { padding-top: 10px; display: flex; flex-direction: column; gap: 2px; }
.team-name { font-weight: 800; color: var(--white); line-height: 1.25; }
.team-role { color: var(--white-70); font-size: 0.95rem; line-height: 1.3; }

/* FAQ */
.faq details { border-bottom: 2px solid var(--line); }
.faq details:first-child { border-top: 2px solid var(--line); }
.faq summary { padding: 18px 40px 18px 0; font-size: 1.05rem; }
.faq details p { padding: 0 0 20px; color: var(--white-70); }

/* CTA finale */
.cta-final { border-top: 8px solid var(--red); text-align: left; }
.cta-final p { font-size: 1.15rem; margin-bottom: 24px; }
.cta-final .btn { width: 100%; }

/* Social */
.social { padding-bottom: 24px; }
.social h2::before { margin-bottom: 12px; }
.social-list { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.social-list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 3px solid var(--red);
  color: var(--white);
  transition: background-color 0.15s;
}
.social-list a:hover { background: var(--red-dark); border-color: var(--red-dark); }
.social-list svg { width: 28px; height: 28px; }

/* Contatti */
.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); }
.site-footer h2::before { margin-bottom: 12px; }
.site-footer address p { margin-top: 4px; }
.site-footer address p:has(a) { margin-top: 0; }
.site-footer a { text-underline-offset: 3px; }

/* ---------- Pulsante WhatsApp fisso (mobile) ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  min-height: var(--sticky-h);
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom));
  border-width: 0;
  border-top: 4px solid var(--white);
  font-size: 1.05rem;
}

/* ---------- Telefoni piccoli: primo schermo compatto ---------- */
@media (max-width: 400px) {
  .notice { font-size: 0.85rem; padding: 8px 16px; }
  .header-inner { padding-top: 6px; padding-bottom: 6px; }
  .hero { padding: 20px 0 0; }
  .hero h1 { margin-bottom: 12px; }
  .hero-text { font-size: 1rem; line-height: 1.5; margin-bottom: 18px; }
  .hero-media { margin-top: 20px; }
  .hero .btn { padding: 14px 16px; }
}

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: repeat(2, 1fr); }
  .hero .btn, .section > .container > .btn, .cta-final .btn { width: auto; }
}

/* ---------- Desktop: niente pulsante fisso ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky-cta { display: none; }
  .container { padding: 0 32px; }
  .video { margin-left: 0; margin-right: 0; }
  .section { padding: 80px 0; }
  .hero { padding: 48px 0 56px; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
  .hero h1 { font-size: clamp(2rem, 3.8vw, 3.5rem); }
  .hero-media { margin: 0; }
  /* formato 4:3 (taglio dei lati) per dare altezza alla foto, bordo sinistro sfumato verso il nero */
  .hero-media img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: 75% center;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 45%);
    mask-image: linear-gradient(to right, transparent 0, #000 45%);
  }
  .logo img { height: 96px; }
  .btn-small { font-size: 1rem; padding: 12px 20px; }
  .levels { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .team { grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
  .site-footer { padding-bottom: 64px; }
}

@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
