/*
 * Equilibrium — evoluzione 3D e motion design (stile).
 * Tutte le regole animate sono sotto html.eq-evo (assente con "riduci movimento").
 */

/* ------------------------------------------------------------------ Base */
@property --eq-fill { syntax: '<percentage>'; inherits: true; initial-value: 0%; }

html.lenis, html.lenis body { height: auto; }
html.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

#corsi, #attivita-ospitate, #recensioni, footer.footer-minimal { overflow-x: clip; }

/* ------------------------------------------------------------------ Hero */
#home.hero { position: relative; isolation: isolate; }
#home .hero-grid { position: relative; z-index: 1; }

/* badge in vetro, sospeso davanti alla foto */
html.eq-evo #home .hero-art .bubble {
  background: rgba(255, 255, 255, .74);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
  border-color: rgba(255, 255, 255, .8);
  box-shadow: 0 20px 50px rgba(112, 26, 73, .2), inset 0 1px 0 rgba(255, 255, 255, .9);
}
@media (hover: hover) and (pointer: fine) and (min-width: 601px) {
  html.eq-evo #home .hero-art .bubble {
    transform: perspective(700px) rotateX(calc(var(--eq-by, 0) * -9deg)) rotateY(calc(var(--eq-bx, 0) * 12deg)) translateZ(0);
  }
}

/* "equilibrio." oscilla sulla sua base, come sulla trave */
.hero h1 em.eq-balance { display: inline-block; transform-origin: 50% 88%; will-change: rotate; }

.eq-scroll-cue {
  position: absolute; left: 50%; bottom: 18px; z-index: 1;
  width: 1.5px; height: 46px; margin-left: -.75px; overflow: hidden;
  background: linear-gradient(#d6007f00, #d6007f40);
  pointer-events: none;
}
.eq-scroll-cue::after {
  content: ''; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: linear-gradient(#d6007f00, #d6007f);
  animation: eq-cue 2.2s cubic-bezier(.7, 0, .3, 1) infinite;
}
@keyframes eq-cue { to { top: 110%; } }
@media (max-width: 800px) { .eq-scroll-cue { display: none; } }

/* ------------------------------------------------------------------ Navigazione */
@media (min-width: 801px) {
  html.eq-evo .nav .links { position: relative; isolation: isolate; }
  .eq-nav-pill {
    position: absolute; left: 0; top: 50%; z-index: -1;
    height: 32px; margin-top: -16px; margin-left: -9px; padding: 0 9px; box-sizing: content-box;
    border-radius: 999px; background: #fde3ef; opacity: 0;
    transition: transform .55s cubic-bezier(.2, .8, .2, 1), width .55s cubic-bezier(.2, .8, .2, 1), opacity .3s;
    pointer-events: none;
  }
  .nav .links a.is-current { color: #b8006c; }
}
@media (max-width: 800px) { .eq-nav-pill { display: none; } }

/* ------------------------------------------------------------------ Card: inclinazione 3D + luce */
.eq-tilt {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  transition-property: box-shadow, border-color, background-color, background, color !important;
  transition-duration: .35s !important;
}
.eq-tilt::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(420px circle at var(--eq-mx, 50%) var(--eq-my, 50%), rgba(255, 255, 255, .5), rgba(255, 210, 230, .12) 40%, transparent 70%);
  opacity: 0; transition: opacity .4s;
  mix-blend-mode: soft-light;
}
.eq-tilt:hover::after { opacity: 1; }
#corsi .card.eq-tilt:hover, #attivita-ospitate .card.eq-tilt:hover { box-shadow: 0 30px 60px -18px rgba(122, 20, 76, .3); }
#attivita-ospitate .card.eq-tilt:hover { box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .55); }
#chi-siamo .feature.eq-tilt:hover { box-shadow: 0 22px 44px -22px rgba(122, 20, 76, .35); }

/* immagini delle card: zoom morbido */
html.eq-evo #corsi .card .visual, html.eq-evo #attivita-ospitate .card .visual { overflow: hidden; }
html.eq-evo #corsi .card .visual img, html.eq-evo #attivita-ospitate .card .visual img { transition: scale .9s cubic-bezier(.2, .7, .2, 1); }
html.eq-evo #corsi .card:hover .visual img, html.eq-evo #attivita-ospitate .card:hover .visual img { scale: 1.07; }

/* ------------------------------------------------------------------ Cursore contestuale */
[data-eq-cursor] { cursor: pointer; }
.eq-marquee[data-eq-cursor] { cursor: grab; }
.eq-cursor {
  position: fixed; left: 0; top: 0; z-index: 60;
  width: 84px; height: 84px; margin: -42px 0 0 -42px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(214, 0, 127, .92); color: #fff;
  font: 800 12px/1 'DM Sans', sans-serif; letter-spacing: .04em;
  box-shadow: 0 12px 30px rgba(214, 0, 127, .35);
  pointer-events: none; transform: scale(0); will-change: transform;
}
@media (hover: none), (pointer: coarse) { .eq-cursor { display: none; } }

/* ------------------------------------------------------------------ Chi siamo */
.about-shape:after { display: none !important; }
.eq-about-badge {
  position: absolute; top: -34px; right: -30px; z-index: 4;
  width: clamp(118px, 12vw, 150px); height: clamp(118px, 12vw, 150px);
  font-size: 0; line-height: 0;
  filter: drop-shadow(0 14px 28px rgba(122, 20, 76, .22));
  pointer-events: none;
}
.eq-about-badge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.eq-about-badge text { font: 800 15.4px 'Outfit', sans-serif; letter-spacing: .02em; fill: #32202d; }
.eq-about-badge .eq-badge-spin { transform-origin: 100px 100px; }
.eq-about-badge::before {
  content: ''; position: absolute; inset: 6%; border-radius: 50%;
  background: rgba(255, 250, 252, .9);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  z-index: -1;
}
.eq-about-badge .eq-badge-core circle { fill: #d6007f; }
.eq-about-badge .eq-badge-core image { filter: brightness(0) invert(1); }
@media (max-width: 800px) { .eq-about-badge { top: -22px; right: -8px; } }

/* icone delle caratteristiche */
.eq-feature-icon {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 14px; color: #c3006f;
}
.eq-feature-icon svg {
  width: 46px; height: 46px; padding: 10px; box-sizing: border-box;
  border-radius: 15px; background: #fff0f7; border: 1px solid #f7d2e4;
  transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s;
}
.eq-feature-icon::after {
  content: attr(data-num);
  font: 800 30px/1 'Outfit', sans-serif; letter-spacing: -.04em;
  color: #f6d3e4;
  transition: color .4s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.feature:hover .eq-feature-icon svg { transform: rotate(-8deg) scale(1.08); background: #d6007f; color: #fff; }
.feature:hover .eq-feature-icon::after { color: #d6007f; transform: translateY(-3px); }
@media (max-width: 600px) {
  .eq-feature-icon { justify-content: center; margin-bottom: 8px; }
  .eq-feature-icon svg { width: 38px; height: 38px; padding: 8px; border-radius: 12px; }
  .eq-feature-icon::after { display: none; }
}

/* ------------------------------------------------------------------ Corsi: percorso orizzontale */
.eq-card-num {
  position: absolute; left: 14px; top: 8px; z-index: 2;
  font: 800 44px/1 'Outfit', sans-serif; letter-spacing: -.04em;
  color: #fff;
  text-shadow: 0 2px 2px rgba(50, 16, 32, .18), 0 8px 30px rgba(50, 16, 32, .35);
  pointer-events: none;
}
@media (max-width: 760px) { .eq-card-num { font-size: 30px; left: 10px; top: 8px; } }

/* corsi fermi sulla pagina: la card sotto il mouse si allarga, le altre si stringono */
@media (min-width: 1081px) and (hover: hover) {
  html.eq-evo #corsi .cards {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    transition: grid-template-columns .75s cubic-bezier(.2, .7, .2, 1);
  }
  html.eq-evo #corsi .cards:has(> .card:nth-child(1):hover) { grid-template-columns: 1.45fr .85fr .85fr .85fr; }
  html.eq-evo #corsi .cards:has(> .card:nth-child(2):hover) { grid-template-columns: .85fr 1.45fr .85fr .85fr; }
  html.eq-evo #corsi .cards:has(> .card:nth-child(3):hover) { grid-template-columns: .85fr .85fr 1.45fr .85fr; }
  html.eq-evo #corsi .cards:has(> .card:nth-child(4):hover) { grid-template-columns: .85fr .85fr .85fr 1.45fr; }
  html.eq-evo #corsi .cards:has(> .card:hover) > .card:not(:hover) { opacity: .8; }
  html.eq-evo #corsi .cards > .card { transition-property: box-shadow, opacity !important; }
  html.eq-evo #corsi .card .visual { height: 190px; }
}

/* foto delle atlete: ventaglio più ampio e area cliccabile */
html.eq-evo #corsi .athletes-photo-stack img { transition: box-shadow .4s; }
html.eq-evo #corsi .athletes-invite:hover .athletes-photo-stack img { box-shadow: 0 14px 30px rgba(45, 25, 52, .25); }

/* ------------------------------------------------------------------ Oltre la ginnastica: un altro mondo */
html.eq-evo #attivita-ospitate.hosted-section {
  clip-path: inset(0 calc(var(--eq-open, 0) * 4.5vw) round calc(var(--eq-open, 0) * 64px));
}
.eq-orb {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(70px); opacity: .45; pointer-events: none;
  animation: eq-breathe 16s ease-in-out infinite alternate;
}
.eq-orb-a { width: 420px; height: 420px; left: -120px; top: 12%; background: #a17ab4; }
.eq-orb-b { width: 360px; height: 360px; left: 42%; top: 48%; background: #467e92; animation-duration: 19s; animation-delay: -6s; }
.eq-orb-c { width: 380px; height: 380px; right: -110px; top: 4%; background: #668e69; animation-duration: 22s; animation-delay: -11s; opacity: .35; }
@keyframes eq-breathe {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(40px, -30px, 0) scale(1.12); }
  100% { transform: translate3d(-30px, 26px, 0) scale(.94); }
}
@media (max-width: 760px) { .eq-orb { filter: blur(50px); opacity: .35; } .eq-orb-b { display: none; } }

@media (min-width: 1081px) and (hover: hover) {
  html.eq-evo #attivita-ospitate .hosted-cards {
    grid-template-columns: 1fr 1fr 1fr;
    transition: grid-template-columns .75s cubic-bezier(.2, .7, .2, 1);
  }
  html.eq-evo #attivita-ospitate .hosted-cards:has(> .card:nth-child(1):hover) { grid-template-columns: 1.32fr .84fr .84fr; }
  html.eq-evo #attivita-ospitate .hosted-cards:has(> .card:nth-child(2):hover) { grid-template-columns: .84fr 1.32fr .84fr; }
  html.eq-evo #attivita-ospitate .hosted-cards:has(> .card:nth-child(3):hover) { grid-template-columns: .84fr .84fr 1.32fr; }
  html.eq-evo #attivita-ospitate .hosted-cards:has(> .card:hover) > .card:not(:hover) { opacity: .78; }
  html.eq-evo #attivita-ospitate .hosted-card { transition-property: box-shadow, opacity !important; }
  html.eq-evo #attivita-ospitate .hosted-card .visual { height: 190px; }
}

/* ------------------------------------------------------------------ Recensioni: doppio nastro */
#recensioni .reviews-heading { position: relative; isolation: isolate; }
.eq-quote {
  position: absolute; left: 50%; top: -38px; z-index: -1;
  font: 900 230px/1 'Outfit', sans-serif; color: #ffd7e9;
  text-shadow: 1px 1px 0 #fbc5dd, 2px 2px 0 #f8b5d3, 3px 3px 0 #f5a6c9, 4px 4px 0 #f297bf, 14px 18px 30px rgba(214, 0, 127, .18);
  transform: translateX(-50%) rotate(-6deg);
  pointer-events: none; user-select: none;
}
html.eq-evo .eq-quote { animation: eq-float 7s ease-in-out infinite alternate; }
@keyframes eq-float { to { transform: translateX(-50%) translateY(-12px) rotate(3deg); } }
#recensioni .reviews-heading > div { position: relative; }
@media (max-width: 600px) { .eq-quote { font-size: 110px; top: -62px; opacity: .55; } }

.eq-marquee-on { padding-inline: 0 !important; }
.eq-marquee-on .reviews-grid[hidden] { display: none !important; }
.eq-marquee {
  display: grid; gap: 16px;
  margin-inline: calc(50% - 50vw);
  padding-block: 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.eq-marquee-row { overflow: hidden; touch-action: pan-y; user-select: none; -webkit-user-select: none; padding-block: 26px; margin-block: -18px; }
.eq-marquee-row.is-dragging { cursor: grabbing; }
.eq-marquee-lane { display: flex; gap: 16px; width: max-content; will-change: transform; }
.eq-marquee .review-card {
  flex: 0 0 clamp(250px, 25vw, 340px) !important;
  width: clamp(250px, 25vw, 340px);
  min-height: 0 !important;
}
.eq-marquee .review-stars {
  color: transparent !important;
  background: linear-gradient(90deg, #e9aa18 var(--eq-fill), #f0dbe5 var(--eq-fill));
  -webkit-background-clip: text; background-clip: text;
  display: inline-block;
  transition: --eq-fill 1.6s cubic-bezier(.2, .7, .2, 1) .2s;
}
.eq-marquee.is-in .review-stars { --eq-fill: 100%; }
.eq-marquee-controls { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 18px; }
#recensioni .eq-marquee-controls .reviews-arrow,
.eq-marquee-pause {
  position: static !important; transform: none !important;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid #f1c6dd; background: #fff; color: #b5006c;
  box-shadow: 0 4px 14px rgba(86, 32, 66, .08); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
#recensioni .eq-marquee-controls .reviews-arrow:hover, .eq-marquee-pause:hover { background: #d6007f; color: #fff; border-color: #d6007f; }
.eq-marquee-pause:focus-visible, #recensioni .eq-marquee-controls .reviews-arrow:focus-visible { outline: 3px solid #32202d; outline-offset: 3px; }
.eq-marquee-pause .i-play { display: none; }
.eq-marquee-pause[aria-pressed='true'] .i-play { display: block; }
.eq-marquee-pause[aria-pressed='true'] .i-pause { display: none; }
@media (max-width: 600px) {
  .eq-marquee .review-card { flex-basis: 78vw !important; width: 78vw; }
  .eq-marquee { gap: 8px; }
}

/* ------------------------------------------------------------------ FAQ */
#domande-frequenti .eq-faq-item { transition: border-color .35s, box-shadow .35s, background .35s; }
#domande-frequenti .eq-faq-item:hover { border-color: #efb3d0; }
#domande-frequenti .eq-faq-item[open]:not(.is-closing) { border-color: #e98bbb; box-shadow: 0 18px 40px -22px rgba(122, 20, 76, .35); }
#domande-frequenti .eq-faq-item summary { transition: color .3s, background .3s; }
#domande-frequenti .eq-faq-item summary:hover { background: #fff6fa; color: #b8006c; }
html.eq-evo #domande-frequenti .eq-faq-chevron { transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s; }
#domande-frequenti .eq-faq-item summary:hover .eq-faq-chevron,
#domande-frequenti .eq-faq-item[open]:not(.is-closing) .eq-faq-chevron { background: #d6007f; color: #fff; }
#domande-frequenti .eq-faq-item.is-closing .eq-faq-chevron { transform: rotate(0deg); }

/* ------------------------------------------------------------------ Contatti */
#contatti .contact-fact .fact-icon { transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s; }
#contatti .contact-fact:hover .fact-icon { transform: rotate(-12deg) scale(1.12); background: #d6007f; color: #fff; }
@keyframes eq-pop { from { opacity: 0; transform: translateY(6px) scale(.7); } }

.collab-form input, .collab-form textarea { transition: border-color .3s, box-shadow .3s, background .3s; }
.collab-form input:hover, .collab-form textarea:hover { border-color: #e5a9c6; }
.collab-form input:focus, .collab-form textarea:focus {
  outline: none; border-color: #d6007f; background: #fff;
  box-shadow: 0 0 0 4px rgba(214, 0, 127, .14);
}
.collab-form label { transition: color .3s; }
.collab-form label:focus-within { color: #b8006c; }
.collab-form.is-sending .eq-submit { pointer-events: none; }
.collab-form.is-sending .eq-submit::after {
  content: ''; width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff;
  animation: eq-spin .7s linear infinite;
}
@keyframes eq-spin { to { transform: rotate(360deg); } }
.collab-form.is-sent .eq-form-status {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 14px; background: #e9f7ee; color: #146c40; font-weight: 700;
  animation: eq-pop .6s cubic-bezier(.34, 1.56, .64, 1);
}
.collab-form.is-sent .eq-form-status::before {
  content: '✓'; display: grid; place-items: center; flex: none;
  width: 24px; height: 24px; border-radius: 50%; background: #1f9a5b; color: #fff; font-size: 13px;
}

/* ------------------------------------------------------------------ Footer: firma */
.eq-footer-mark {
  display: flex; justify-content: center; overflow: hidden;
  padding: clamp(36px, 6vw, 70px) 16px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0dbe7;
  pointer-events: none;
}
.eq-footer-mark img { width: min(1080px, 90vw); height: auto; display: block; will-change: transform; }
html:not(.eq-evo) .eq-footer-mark img { opacity: .9; }
@media (max-width: 600px) { .eq-footer-mark { padding-top: 26px; } }

/* ------------------------------------------------------------------ Finestre */
html.eq-evo dialog::backdrop { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ------------------------------------------------------------------ Prova gratuita (Golee) */
.eq-trial-btn[hidden] { display: none !important; }
#course-modal .eq-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
#course-modal .eq-modal-actions .btn { margin: 0; }
#course-modal #course-modal-contact.eq-btn-secondary,
#contatti .contact-whatsapp {
  background: transparent !important; color: #b5006c !important;
  border: 1.5px solid #d6007f !important; box-shadow: none !important;
}
#course-modal #course-modal-contact.eq-btn-secondary:hover,
#contatti .contact-whatsapp:hover { background: #fff0f7 !important; }
#contatti .contact-heading-action { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
#contatti .contact-heading-action .btn { justify-content: center; }
@media (max-width: 760px) { #contatti .contact-heading-action { align-items: flex-start; } }

/* badge della hero: collegamento alla prenotazione */
#home .hero-art a.bubble { text-decoration: none; cursor: pointer; transition: box-shadow .35s, border-color .35s; }
#home .hero-art a.bubble:hover { border-color: rgba(214, 0, 127, .35); box-shadow: 0 24px 54px rgba(112, 26, 73, .28); }
#home .hero-art a.bubble:focus-visible { outline: 3px solid #32202d; outline-offset: 3px; }
#home .hero-art .bubble .eq-trial-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px;
  padding: 6px 11px; border-radius: 999px; background: #d6007f; color: #fff;
  font-size: 12px; font-weight: 800;
}
#home .hero-art .bubble .eq-trial-cta .eq-unified-arrow { color: #fff; }

/* footer: partita IVA e crediti */
footer.footer-minimal .footer-vat { color: #806779; }
footer.footer-minimal .footer-designer a {
  color: #32202d; font-weight: 800; text-decoration: underline;
  text-decoration-color: #d6007f; text-underline-offset: 3px;
}
footer.footer-minimal .footer-designer a:hover { color: #b8006c; }

/* ------------------------------------------------------------------ Galleria fotografica: schermo intero */
html #feature-modal.feature-gallery-modal {
  width: 100vw !important; height: 100dvh !important; max-width: 100vw !important; max-height: 100dvh !important;
  margin: 0 !important; inset: 0; border-radius: 0 !important;
  background: #150a12 !important; color: #fff; box-shadow: none !important; overflow: hidden !important;
}
html #feature-modal.feature-gallery-modal::backdrop { background: #150a12 !important; }
/* con l'apertura a cerchio la finestra copre già tutto: lo sfondo resta trasparente per vedere la pagina sotto */
html.eq-on #feature-modal.feature-gallery-modal::backdrop { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; animation: none; }
html #feature-modal .feature-gallery-layout { grid-template-columns: minmax(0, 1fr) 360px !important; grid-template-rows: none !important; height: 100% !important; }
html #feature-modal .feature-gallery-stage { background: #150a12 !important; }
html #feature-modal .feature-gallery-stage::before { inset: -80px !important; filter: blur(60px) brightness(.42) saturate(1.3) !important; }
html #feature-modal #feature-main-image {
  position: absolute !important; left: 96px; top: 64px;
  width: calc(100% - 192px) !important; height: calc(100% - 150px) !important;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .55));
  touch-action: pan-y;
}
html #feature-modal .feature-gallery-empty { color: rgba(255, 255, 255, .7) !important; }
html #feature-modal .feature-gallery-controls {
  position: absolute !important; inset: 0; height: auto !important; z-index: 2 !important;
  display: flex !important; justify-content: space-between !important; align-items: center !important;
  padding: 0 24px; background: transparent !important; border: 0 !important; pointer-events: none;
}
html #feature-modal .feature-gallery-controls button {
  pointer-events: auto; width: 54px !important; height: 54px !important;
  background: rgba(255, 255, 255, .1) !important; border: 1px solid rgba(255, 255, 255, .24) !important; color: #fff !important;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: background .25s, border-color .25s, transform .4s cubic-bezier(.34, 1.56, .64, 1);
}
html #feature-modal .feature-gallery-controls button:hover:not(:disabled) { background: #d6007f !important; border-color: #d6007f !important; transform: scale(1.06); }
html #feature-modal .feature-gallery-controls button:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
html #feature-modal #feature-counter {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  padding: 7px 15px; border-radius: 999px; background: rgba(255, 255, 255, .12);
  color: #fff !important; font-size: 12px !important; letter-spacing: .08em;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html #feature-modal .feature-gallery-detail {
  padding: 74px 26px 22px !important; background: rgba(32, 15, 27, .82);
  border-left: 1px solid rgba(255, 255, 255, .08); color: #fff;
}
html #feature-modal .feature-gallery-detail .eyebrow,
html #feature-modal .feature-gallery-subtitle { color: #ff8cc6 !important; }
html #feature-modal .feature-gallery-detail h2 { color: #fff; font-size: clamp(26px, 2.4vw, 34px) !important; }
html #feature-modal .feature-gallery-detail p { color: rgba(255, 255, 255, .7) !important; font-size: 13.5px !important; }
html #feature-modal .feature-gallery-thumbs {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-auto-rows: 72px !important; gap: 8px !important;
  overflow-y: auto !important; flex: 1 1 auto; min-height: 0; padding: 2px 2px 10px !important;
  scrollbar-color: #6b3a58 transparent;
}
html #feature-modal .feature-gallery-thumbs > button {
  height: 72px !important; max-height: 72px !important; border: 2px solid transparent !important;
  background: #2a1724 !important; opacity: .5; transition: opacity .3s, border-color .3s;
}
html #feature-modal .feature-gallery-thumbs > button:hover { opacity: .9; }
html #feature-modal .feature-gallery-thumbs > button[aria-current='true'] { opacity: 1; border-color: #ff4fa8 !important; }
html #feature-modal .course-modal-close {
  position: absolute; top: 18px; right: 18px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255, 255, 255, .12) !important; color: #fff !important; border: 1px solid rgba(255, 255, 255, .24) !important;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
html #feature-modal .course-modal-close:hover { background: #d6007f !important; }
@media (max-width: 760px) {
  html #feature-modal .feature-gallery-layout { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: minmax(0, 1fr) auto !important; }
  html #feature-modal #feature-main-image { left: 12px; top: 64px; width: calc(100% - 24px) !important; height: calc(100% - 128px) !important; }
  html #feature-modal .feature-gallery-controls { padding: 0 10px; }
  html #feature-modal .feature-gallery-controls button { width: 42px !important; height: 42px !important; }
  html #feature-modal #feature-counter { bottom: 16px; }
  html #feature-modal .feature-gallery-detail { padding: 16px 16px 14px !important; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  html #feature-modal .feature-gallery-detail h2 { font-size: 22px !important; margin: 4px 0 6px !important; }
  html #feature-modal .feature-gallery-detail p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px !important; font-size: 12.5px !important; }
  html #feature-modal .feature-gallery-subtitle { display: none; }
  html #feature-modal .feature-gallery-thumbs {
    grid-auto-flow: column !important; grid-template-columns: none !important; grid-auto-columns: 62px !important;
    grid-auto-rows: 62px !important; overflow-x: auto !important; overflow-y: hidden !important; flex: none; padding-bottom: 4px !important;
  }
  html #feature-modal .feature-gallery-thumbs > button { height: 62px !important; max-height: 62px !important; }
}

/* ------------------------------------------------------------------ La nostra storia: pannello di lettura */
html #about-modal {
  width: min(1080px, 100vw) !important; height: 100dvh !important; max-width: 100vw !important; max-height: 100dvh !important;
  margin: 0 0 0 auto !important; border-radius: 30px 0 0 30px !important; overflow: hidden !important;
}
html #about-modal .about-modal-grid { grid-template-columns: 44% minmax(0, 1fr) !important; height: 100% !important; }
html #about-modal .about-modal-cover { height: 100% !important; }
html.eq-evo #about-modal[open] .about-modal-cover { animation: eq-kenburns 22s ease-in-out infinite alternate; }
@keyframes eq-kenburns { from { transform: scale(1.02); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
html #about-modal .about-modal-body { padding: clamp(46px, 8vh, 84px) clamp(28px, 4.5vw, 68px) 56px !important; }
html #about-modal .about-modal-body h2 { font-size: clamp(34px, 3.6vw, 52px) !important; line-height: 1.04; margin: 12px 0 26px; }
html #about-modal .about-modal-body p { font-size: 16px; line-height: 1.85; color: #5e4a57; }
html #about-modal .about-modal-body p strong { color: #32202d; }
html #about-modal .about-modal-body h2 + p::first-letter {
  float: left; margin: 7px 12px 0 0;
  font: 900 68px/.78 'Outfit', sans-serif; color: #d6007f;
}
html #about-modal .about-modal-body p:last-of-type {
  margin: 30px 0 28px; padding: 4px 0 4px 20px; border-left: 3px solid #d6007f;
  font: 600 19px/1.6 'Outfit', sans-serif; color: #32202d; letter-spacing: -.01em;
}
.eq-read-progress { position: absolute; top: 0; right: 0; width: 56%; height: 3px; z-index: 6; background: #f6dbe8; pointer-events: none; }
.eq-read-progress i { position: absolute; inset: 0; background: #d6007f; transform: scaleX(0); transform-origin: 0 50%; }
html #about-modal .course-modal-close { z-index: 7; }
@media (max-width: 650px) {
  html #about-modal { width: 100vw !important; height: 94dvh !important; margin: auto 0 0 0 !important; border-radius: 26px 26px 0 0 !important; }
  html #about-modal .about-modal-grid { grid-template-columns: 1fr !important; grid-template-rows: minmax(150px, 30%) minmax(0, 1fr) !important; }
  html #about-modal .about-modal-body { padding: 26px 22px 34px !important; }
  html #about-modal .about-modal-body h2 { font-size: 30px !important; margin-bottom: 18px; }
  html #about-modal .about-modal-body p { font-size: 15px; line-height: 1.75; }
  .eq-read-progress { width: 100%; top: auto; bottom: 0; }
}

/* ------------------------------------------------------------------ La nostra storia: titolo sulla foto e tappe */
html #about-modal.eq-story .about-modal-grid { position: relative; }
html #about-modal.eq-story .about-modal-cover { grid-column: 1; grid-row: 1; }
html #about-modal.eq-story .about-modal-body { grid-column: 2; grid-row: 1; }
html #about-modal.eq-story .about-modal-grid::after {
  content: ''; grid-column: 1; grid-row: 1; align-self: stretch; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(30, 10, 24, 0) 35%, rgba(30, 10, 24, .35) 60%, rgba(30, 10, 24, .88));
}
.eq-story-head {
  grid-column: 1; grid-row: 1; align-self: end; z-index: 2;
  padding: 0 clamp(28px, 3.6vw, 52px) clamp(34px, 6vh, 60px);
  color: #fff;
}
html #about-modal .eq-story-head .eyebrow { color: #ff9bd0; }
html #about-modal .eq-story-head h2 {
  margin: 12px 0 0; color: #fff;
  font-size: clamp(34px, 3.4vw, 50px) !important; line-height: 1.02;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .3);
}
html.eq-evo #about-modal[open] .eq-story-head > * { animation: eq-head-in .9s cubic-bezier(.2, .7, .2, 1) both; }
html.eq-evo #about-modal[open] .eq-story-head h2 { animation-delay: .12s; }
@keyframes eq-head-in { from { opacity: 0; transform: translateY(26px); } }

html #about-modal.eq-story .about-modal-body { padding-top: clamp(54px, 9vh, 92px) !important; }
html #about-modal.eq-story .about-modal-body p:first-of-type { font-size: 19px; line-height: 1.75; color: #3f2b38; }
html #about-modal.eq-story .about-modal-body p:first-of-type::first-letter {
  float: left; margin: 7px 12px 0 0;
  font: 900 72px/.78 'Outfit', sans-serif; color: #d6007f;
}
/* tappe del racconto: un punto per paragrafo e una linea che si colora leggendo */
html #about-modal.eq-story .about-modal-body p:not(:last-of-type) { position: relative; padding-left: 38px; margin: 0 0 26px; }
html #about-modal.eq-story .about-modal-body p:not(:last-of-type)::before {
  content: ''; position: absolute; left: 0; top: .55em; width: 13px; height: 13px; box-sizing: border-box;
  border-radius: 50%; border: 2px solid #efc2d8; background: #fff;
  transition: background .5s, border-color .5s, box-shadow .5s;
}
html #about-modal.eq-story .about-modal-body p:not(:last-of-type)::after {
  content: ''; position: absolute; left: 5.5px; top: calc(.55em + 17px); bottom: -24px; width: 2px; border-radius: 2px;
  background: linear-gradient(#d6007f, #d6007f) 0 0 / 100% 0 no-repeat, #f4d6e4;
  transition: background-size .9s cubic-bezier(.2, .7, .2, 1);
}
html #about-modal.eq-story .about-modal-body p.is-read::before { background: #d6007f; border-color: #d6007f; box-shadow: 0 0 0 6px rgba(214, 0, 127, .12); }
html #about-modal.eq-story .about-modal-body p.is-read::after { background-size: 100% 100%, auto; }
html #about-modal.eq-story .about-modal-body p:first-of-type::before { top: .62em; }
html #about-modal.eq-story .about-modal-body p:last-of-type { margin-top: 36px; }
/* entrata morbida dei paragrafi mentre si scorre */
html.eq-evo #about-modal.eq-story .about-modal-body > p,
html.eq-evo #about-modal.eq-story .about-modal-body > .btn { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
html.eq-evo #about-modal.eq-story .about-modal-body > .is-in { opacity: 1 !important; transform: none; }
html #about-modal.eq-story .eq-read-progress { width: 56%; }
html #about-modal .course-modal-close {
  background: rgba(255, 255, 255, .85) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(50, 16, 32, .14);
}
@media (max-width: 650px) {
  html #about-modal.eq-story .about-modal-grid { grid-template-rows: minmax(230px, 40%) minmax(0, 1fr) !important; }
  html #about-modal.eq-story .about-modal-body { grid-column: 1; grid-row: 2; padding-top: 28px !important; }
  html #about-modal.eq-story .about-modal-grid::after { grid-column: 1; }
  .eq-story-head { padding: 0 22px 22px; }
  html #about-modal .eq-story-head h2 { font-size: 30px !important; }
  html #about-modal.eq-story .about-modal-body p:first-of-type { font-size: 17px; }
  html #about-modal.eq-story .about-modal-body p:not(:last-of-type) { padding-left: 30px; }
  html #about-modal.eq-story .eq-read-progress { width: 100%; }
}
/* lo zoom lento della foto non deve affiorare sotto la colonna del testo */
html #about-modal.eq-story .about-modal-body { position: relative; z-index: 3; background: #fffafc; }
@media (max-width: 650px) {
  html #about-modal.eq-story .about-modal-grid::after { background: linear-gradient(180deg, rgba(30, 10, 24, 0) 10%, rgba(30, 10, 24, .5) 45%, rgba(30, 10, 24, .9)); }
}

/* email: apre il programma di posta */
#contatti a.eq-email-copy { text-decoration: none; }
#contatti a.eq-email-copy:hover { color: #ba2875; text-decoration: underline; text-underline-offset: 3px; }
