/* PALESTRA FORMA
   Un solo foglio di stile. Le media query in fondo adattano il layout.
   Nessun font o servizio esterno: il sito funziona anche aprendo index.html. */
@font-face {
  font-family: "Forma Display";
  src: url("fonts/BarlowCondensed-ExtraBold.ttf") format("truetype");
  font-display: swap;
}
:root {
  --paper: #f6f4eb;
  --white: #fffcf5;
  --ink: #253d32;
  --muted: #656b61;
  --orange: #f36b3d;
  --line: #d4d8cb;
  --header: 86px;
  --space: clamp(56px, 6vw, 96px);
  --display: "Forma Display", Impact, "Arial Narrow", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header) + 20px); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
figure, h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ba3e19; outline-offset: 5px; }
section, article, section > div { min-width: 0; }
.wrap { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.section { padding-block: var(--space); }
.eyebrow { font-size: .68rem; font-weight: 700; letter-spacing: .14em; line-height: 1.5; margin-bottom: 20px; }
h2 { font: clamp(2.8rem, 4.6vw, 4.5rem)/1.04 var(--display); font-weight: 400; letter-spacing: -.025em; }
h2 em { font-style: normal; color: #b44223; }
.arrow { display: inline-block; position: relative; width: 19px; height: 12px; flex-shrink: 0; }
.arrow::before { content: ""; position: absolute; height: 1.5px; width: 18px; top: 5px; left: 0; background: currentColor; }
.arrow::after { content: ""; position: absolute; width: 8px; height: 8px; border-top: 1.5px solid; border-right: 1.5px solid; transform: rotate(45deg); right: 1px; top: 2px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 24px; min-height: 52px; padding: 14px 23px; background: var(--orange); color: var(--ink); border: 1px solid transparent; font-size: .8rem; font-weight: 700; line-height: 1.4; transition: background .2s, transform .2s; }
.button:hover { background: #ff8455; transform: translateY(-2px); }
.button-small { min-height: 44px; padding: 12px 20px; font-size: .76rem; }
.button-outline { border-color: var(--ink); background: transparent; }
.button-outline:hover { background: var(--ink); color: var(--paper); }
.button-cream { background: var(--paper); }
.button-cream:hover { background: white; }
.text-link { display: inline-flex; align-items: center; gap: 14px; min-height: 44px; padding-block: 6px; font-size: .8rem; font-weight: 700; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.text-link:hover { color: #a9391a; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 300; padding: 10px 20px; background: white; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); }

/* Testata: griglia esplicita per evitare che i comandi saltino di riga. */
.demo-banner { padding: 7px 16px; background: var(--ink); color: #e6ebdb; text-align: center; font-size: .56rem; font-weight: 700; letter-spacing: .12em; }
.site-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 26px; height: var(--header); padding-inline: max(48px, calc((100% - 1280px) / 2)); background: var(--paper); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; justify-self: start; gap: 8px; font-size: 2.2rem; font-weight: 800; line-height: .85; letter-spacing: -.09em; }
.brand-mark { width: 34px; height: 36px; color: var(--orange); }
.brand-subtitle { display: block; font-size: .48rem; line-height: 1; margin-top: 10px; letter-spacing: .12em; }
nav { display: flex; gap: 25px; align-items: center; }
nav a { font-size: .76rem; font-weight: 600; padding-block: 14px; position: relative; }
nav a::after { content: ""; position: absolute; bottom: 7px; left: 0; right: 0; height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
nav a:hover::after, nav a[aria-current]::after { transform: scaleX(1); }
.header-action { justify-self: end; white-space: nowrap; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; padding: 10px; }
.menu-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 6px auto; transition: transform .2s; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Hero diviso: la foto ha il suo spazio e il testo non le si sovrappone. */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 72px); padding-block: 38px 44px; align-items: stretch; }
.hero-copy { padding-block: clamp(16px, 3vw, 44px) 16px; display: flex; flex-direction: column; align-items: flex-start; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; font-size: .62rem; margin-bottom: 24px; }
.little-square { display: inline-block; width: 7px; height: 7px; background: #b44223; flex-shrink: 0; }
.hero h1 { font: clamp(4rem, 7.35vw, 7rem)/.98 var(--display); letter-spacing: -.025em; font-weight: 400; }
.hero h1 span { color: #b44223; }
.hero-description { margin-top: 26px; color: var(--muted); font-size: .98rem; line-height: 1.7; }
.hero-actions { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; margin-top: 26px; }
.hero-footnote { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 30px; font-size: .69rem; line-height: 1.65; }
.hero-footnote strong { font-weight: 400; color: var(--muted); }
.outline-circle { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #adb7a5; border-radius: 50%; font-size: 1.3rem; flex-shrink: 0; }
.hero-photo { position: relative; min-height: 530px; overflow: hidden; background: #d3d3c6; }
.hero-photo picture, .hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo img { object-fit: cover; object-position: center top; }
.hero-photo figcaption { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 32px 22px 20px; background: linear-gradient(transparent, #14271dba); color: white; font-size: .6rem; letter-spacing: .14em; font-weight: 700; }
.service-strip { display: flex; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 65px); flex-wrap: wrap; padding: 23px 24px; background: var(--ink); color: var(--paper); font: 1.1rem var(--display); letter-spacing: .05em; }
.service-strip i { width: 6px; height: 6px; background: var(--orange); transform: rotate(45deg); }

/* Il locale */ 
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 100px); align-items: center; }
.about-photo img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.about-photo figcaption { font-size: .67rem; margin-top: 12px; color: var(--muted); }
.about-copy > p:not(.eyebrow) { margin-top: 20px; color: var(--muted); max-width: 490px; font-size: .93rem; }
.about-points { list-style: none; padding: 0; margin: 24px 0 14px; font-size: .85rem; }
.about-points li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.about-points li::before { content: "+"; color: #b44223; padding-right: 12px; font-weight: 700; }

/* Attività: tre schede tipografiche, senza fotografie ripetute. */
.activities { background: #e9ece1; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 36px; }
.section-heading > p { font-size: .9rem; color: var(--muted); max-width: 380px; }
.activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.activity-card { display: flex; flex-direction: column; background: var(--paper); border: 1px solid #d2d7c9; padding: clamp(24px, 2.5vw, 36px); }
.activity-orange { background: var(--orange); border-color: var(--orange); }
.activity-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 32px; }
.activity-top > span { font-size: .61rem; font-weight: 700; letter-spacing: .06em; max-width: 130px; }
.activity-top svg { width: 48px; height: 48px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.activity-card h3 { font: clamp(2.1rem, 3vw, 3rem)/1.04 var(--display); font-weight: 400; letter-spacing: -.02em; }
.activity-card > p { margin: 20px 0 28px; font-size: .86rem; line-height: 1.65; color: #515c50; }
.activity-orange > p { color: var(--ink); }
.activity-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid #253d3233; padding-top: 16px; margin-top: auto; }
.activity-bottom > span { font-size: .66rem; }
.activity-bottom a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #253d324d; border-radius: 50%; }
.activity-bottom a:hover { background: var(--ink); color: var(--paper); }
.personal-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; border-top: 1px solid #cbd1c2; margin-top: 28px; padding-top: 18px; }
.personal-note .eyebrow { margin: 0; font-size: .58rem; }
.personal-note > p { font-size: .83rem; }

/* Orari: pulsanti nativi, stato selezionato e pannelli reali nell'HTML. */
.day-picker { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); margin-bottom: 20px; }
.day-picker button { border: 0; border-right: 1px solid var(--line); min-height: 52px; background: transparent; color: var(--ink); font-size: .85rem; }
.day-picker button:last-child { border-right: 0; }
.day-picker button[aria-pressed="true"] { background: var(--ink); color: white; }
.day-picker button:hover:not([aria-pressed="true"]) { background: #e6eadc; }
.day-panel > h3 { font-size: 1.1rem; margin-block: 22px 12px; }
.schedule-enhanced .day-panel > h3 { display: none; }
.class-row { display: grid; grid-template-columns: 120px 1fr 170px 70px; align-items: center; gap: 24px; padding: 20px 6px; border-bottom: 1px solid var(--line); }
.class-row time { font: 2rem var(--display); font-weight: 400; }
.class-row h4 { font-size: 1rem; line-height: 1.3; margin-bottom: 5px; }
.class-row div > span { color: var(--muted); font-size: .76rem; }
.class-level { font-size: .7rem; border: 1px solid #cbd2c3; border-radius: 20px; justify-self: start; padding: 4px 13px; }
.class-duration { color: var(--muted); font-size: .8rem; text-align: right; }
.schedule-note { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 22px; font-size: .76rem; color: var(--muted); }
.schedule-note a { color: var(--ink); }

/* Abbonamenti */ 
.membership { background: var(--ink); color: var(--paper); }
.membership .eyebrow { color: #f2a27c; }
.membership h2 em { color: #f2a27c; }
.membership .section-heading > p { color: #bdc7b8; }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding-top: 16px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 30px; border: 1px solid #788776; }
.plan-featured { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.plan-label { position: absolute; top: -14px; left: 28px; padding: 5px 12px; background: var(--orange); color: var(--ink); font-size: .58rem; letter-spacing: .1em; font-weight: 700; }
.plan-name { font: 2.2rem var(--display); font-weight: 400; }
.plan-description { margin-top: 8px; font-size: .8rem; color: #c8d1c1; }
.plan-featured .plan-description { color: var(--muted); }
.price { font: 4.8rem/1 var(--display); margin-top: 28px; font-weight: 400; }
.price > span { font: .8rem Arial, sans-serif; margin-left: 10px; white-space: nowrap; }
.plan ul { margin: 26px 0; padding: 22px 0 0; list-style: none; border-top: 1px solid #94a18b66; font-size: .8rem; }
.plan li { padding-block: 6px; }
.plan li::before { content: "+"; margin-right: 10px; }
.plan .button { margin-top: auto; width: 100%; gap: 10px; }
.plan:not(.plan-featured) .button { border-color: #899681; color: var(--paper); }
.plan:not(.plan-featured) .button:hover { background: var(--paper); color: var(--ink); }
.pricing-note { margin-top: 24px; font-size: .68rem; color: #c3ccbc; }

/* Domande frequenti e contatti */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: 60px; }
.faq > div > p:last-child { margin-top: 22px; color: var(--muted); font-size: .9rem; }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 23px 28px 23px 0; position: relative; list-style: none; font-weight: 600; font-size: .87rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 2px; top: 16px; font-size: 1.4rem; font-weight: 400; }
details[open] summary::after { content: "−"; }
details > p { margin: 0 25px 22px 0; font-size: .84rem; color: var(--muted); }
.trial { background: var(--orange); padding: clamp(32px, 5vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.trial h2 { font-size: clamp(3rem, 5vw, 5rem); }
.trial h2 span { color: var(--ink); }
.trial p:last-child { margin-top: 20px; font-size: .92rem; }
.trial .button { flex-shrink: 0; }
.footer { padding-bottom: 25px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.1fr 1fr 1.2fr; gap: 30px; }
.footer-grid h3 { font-size: .62rem; letter-spacing: .1em; margin-bottom: 20px; }
.footer-grid p { margin-top: 20px; color: var(--muted); font-size: .8rem; }
.footer-grid h3 + p { margin-top: 0; }
.footer-grid p > span { padding-left: 10px; }
.footer-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .74rem; margin-top: 10px; text-decoration: underline; text-underline-offset: 4px; }
.footer-grid .contact-demo { margin-top: 8px; font-size: .65rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-top: 24px; margin-top: 42px; border-top: 1px solid var(--line); font-size: .62rem; color: var(--muted); }
.footer-bottom p { max-width: 650px; }
.footer-bottom a { white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }

/* Finestra nativa: il browser gestisce il focus e il tasto Escape. */
dialog { width: min(500px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto; border: 0; padding: 40px; background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #11251cc9; backdrop-filter: blur(3px); }
dialog h2 { font-size: 3rem; }
dialog > p:not(.eyebrow) { margin-top: 20px; font-size: .86rem; }
.dialog-close { position: absolute; right: 10px; top: 10px; width: 44px; height: 44px; background: transparent; border: 0; font-size: 1.6rem; color: var(--ink); }
dialog form { display: grid; gap: 10px; margin-top: 25px; }
dialog label { font-size: .76rem; font-weight: 700; margin-top: 5px; }
dialog select { width: 100%; min-height: 48px; border: 1px solid #aab3a2; border-radius: 0; background: var(--white); padding: 10px; color: var(--ink); font-size: 1rem; }
dialog form .button { margin-top: 12px; }
.trial-result { padding: 16px; background: #e3e9d9; border-left: 3px solid var(--ink); }

/* Tablet: testata compatta e menu a tendina. */
@media (max-width: 1100px) {
  :root { --header: 76px; }
  .wrap { width: calc(100% - 64px); }
  .site-header { grid-template-columns: minmax(0, 1fr) auto auto; padding-inline: 32px; gap: 18px; }
  .brand { grid-row: 1; grid-column: 1; }
  .header-action { grid-row: 1; grid-column: 2; }
  .menu-toggle { display: block; grid-row: 1; grid-column: 3; }
  .js nav { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 0 32px; background: var(--paper); border-bottom: 1px solid var(--line); max-height: calc(100dvh - var(--header)); overflow-y: auto; box-shadow: 0 20px 24px #253d3214; }
  .js nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .js nav a { padding: 17px 0; font-size: 1rem; border-top: 1px solid var(--line); }
  .js nav a::after { display: none; }
  .hero { gap: 32px; }
  .hero h1 { font-size: clamp(3.7rem, 7.3vw, 5.4rem); }
  .hero-photo { min-height: 530px; }
  .hero-actions { gap: 12px; }
  .hero .eyebrow { max-width: 270px; }
  .activity-grid { gap: 14px; }
  .activity-card { padding: 24px 20px; }
  .activity-top { flex-direction: column-reverse; align-items: flex-start; gap: 15px; margin-bottom: 24px; }
  .activity-top > span { min-height: 30px; }
  .activity-card h3 { font-size: 2.15rem; }
  .plan { padding: 28px 22px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
}
/* Senza JavaScript, la navigazione e tutti i giorni restano accessibili. */
@media (max-width: 1100px) {
  html:not(.js) .site-header { height: auto; padding-block: 18px; }
  html:not(.js) nav { grid-column: 1 / -1; flex-wrap: wrap; gap: 8px 24px; }
  html:not(.js) .menu-toggle { display: none; }
}
@media (max-width: 800px) {
  .hero h1 { font-size: clamp(3.4rem, 7.5vw, 4.3rem); }
  .hero-photo { min-height: 520px; }
  .hero-copy { padding-top: 12px; }
  .hero-description { font-size: .88rem; }
  .hero .button { font-size: .73rem; padding-inline: 15px; gap: 16px; }
  .about { gap: 32px; }
  .about-photo img { aspect-ratio: 3 / 4; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .section-heading .eyebrow { margin-bottom: 14px; }
  .activity-grid { grid-template-columns: 1fr; }
  .activity-card { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding: 26px; }
  .activity-top { grid-column: 1 / -1; flex-direction: row; align-items: center; margin-bottom: 15px; }
  .activity-top > span { min-height: 0; max-width: none; }
  .activity-top svg { width: 38px; height: 38px; }
  .activity-card > p { margin: 0; align-self: center; }
  .activity-bottom { grid-column: 1 / -1; margin-top: 24px; padding-top: 12px; }
  .class-row { grid-template-columns: 85px 1fr 140px 50px; gap: 16px; }
  .plan-grid { gap: 14px; }
  .plan { padding: 28px 18px 20px; }
  .plan .button { padding-inline: 10px; font-size: .72rem; }
  .plan-name { font-size: 1.9rem; }
  .plan-description { min-height: 65px; }
  .plan li { font-size: .75rem; }
  .price { font-size: 4rem; }
  .price > span { margin-left: 5px; font-size: .7rem; }
  .faq { grid-template-columns: 1fr; gap: 30px; }
  .trial { padding: 34px; }
  .trial .button { max-width: 210px; }
}
/* Telefoni: misure flessibili, sezioni alte quanto il proprio contenuto. */
@media (max-width: 600px) {
  :root { --header: 70px; --space: 52px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { padding-inline: 20px; gap: 10px; }
  .brand { font-size: 1.85rem; gap: 6px; }
  .brand-mark { width: 27px; }
  .brand-subtitle { font-size: .42rem; }
  .header-action { font-size: .64rem; padding: 10px 12px; }
  .demo-banner { font-size: .46rem; padding: 7px 10px; letter-spacing: .06em; }
  .js nav { padding-inline: 20px; }
  .hero { grid-template-columns: 1fr; padding-block: 28px; gap: 28px; }
  .hero-copy { padding: 0; }
  .hero .eyebrow { max-width: none; font-size: .56rem; margin-bottom: 20px; }
  .hero h1 { font-size: clamp(4.1rem, 15.6vw, 6rem); line-height: .97; }
  .hero-description { margin-top: 20px; font-size: .95rem; }
  .hero-actions { margin-top: 22px; gap: 12px 20px; }
  .hero .button { min-height: 48px; font-size: .75rem; }
  .hero-footnote { padding-top: 22px; font-size: .65rem; }
  .hero-photo { min-height: 0; aspect-ratio: 5 / 4; }
  .hero-photo img { object-position: center top; }
  .hero-photo figcaption { font-size: .53rem; padding: 28px 16px 15px; }
  .service-strip { gap: 14px 22px; font-size: .9rem; padding: 20px; }
  .service-strip i { display: none; }
  .service-strip span { width: calc(50% - 14px); text-align: center; }
  h2 { font-size: clamp(2.6rem, 10vw, 3.5rem); }
  .eyebrow { font-size: .6rem; margin-bottom: 16px; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about-copy { grid-row: 1; }
  .about-copy > p:not(.eyebrow) { font-size: .9rem; margin-top: 18px; }
  .about-photo img { aspect-ratio: 4 / 3; }
  .section-heading { margin-bottom: 26px; }
  .section-heading > p { font-size: .85rem; }
  .activity-card { display: flex; padding: 25px; }
  .activity-top { flex-direction: row; width: 100%; margin-bottom: 20px; }
  .activity-top > span { max-width: 175px; }
  .activity-card h3 { font-size: 2.5rem; }
  .activity-card > p { margin-top: 18px; align-self: auto; }
  .activity-bottom { width: 100%; }
  .personal-note { flex-direction: column; align-items: flex-start; gap: 8px; }
  .personal-note .eyebrow { font-size: .55rem; }
  .day-picker { margin-bottom: 10px; }
  .day-picker button { font-size: .77rem; min-height: 48px; }
  .day-picker button > span { display: none; }
  .class-row { grid-template-columns: 62px 1fr auto; gap: 12px; padding-block: 18px; }
  .class-row time { font-size: 1.65rem; grid-row: 1 / 3; align-self: start; padding-top: 2px; }
  .class-row div { grid-column: 2; }
  .class-row h4 { font-size: .93rem; }
  .class-row div > span { font-size: .7rem; line-height: 1.4; display: block; }
  .class-level { grid-column: 2; grid-row: 2; font-size: .6rem; padding: 2px 10px; }
  .class-duration { grid-column: 3; grid-row: 1; font-size: .7rem; }
  .schedule-note { gap: 8px; }
  .plan-grid { grid-template-columns: 1fr; gap: 28px; }
  .plan { padding: 30px; }
  .plan-name { font-size: 2.2rem; }
  .plan-description { min-height: 0; font-size: .83rem; }
  .plan li { font-size: .83rem; }
  .price { font-size: 4.5rem; }
  .price > span { font-size: .82rem; margin-left: 10px; }
  .plan .button { font-size: .8rem; }
  .trial { flex-direction: column; align-items: flex-start; padding: 30px 24px; gap: 24px; }
  .trial h2 { font-size: clamp(3rem, 11vw, 4rem); }
  .trial .button { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid h3 { margin-bottom: 12px; }
  .footer-grid p { font-size: .86rem; }
  .footer-grid > div:first-child p { margin-top: 15px; }
  .footer-bottom { flex-wrap: wrap; gap: 12px; margin-top: 30px; }
  .footer-bottom p { order: 3; width: 100%; }
  dialog { padding: 32px 24px; }
  dialog h2 { font-size: 2.6rem; }
}
@media (max-width: 360px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { padding-inline: 16px; gap: 7px; }
  .header-action { padding-inline: 8px; font-size: .6rem; }
  .brand { font-size: 1.7rem; }
  .brand-mark { width: 24px; }
  .hero h1 { font-size: 4rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .plan { padding: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Revisione palette: blu notte e blu elettrico rendono Forma
   distinta dalle demo ristorante e bar. */
:root { --ink: #1b253c; --orange: #6877ef; }
.little-square { background: var(--orange); }
.hero h1 span, h2 em, .about-points li::before { color: var(--orange); }
.membership .eyebrow, .membership h2 em { color: #b7c0ff; }
.button-primary:hover, .button:hover { background: #8491ff; }

/* Su schermi desktop la pagina iniziale finisce esattamente
   al bordo inferiore della finestra, dopo banner e testata. */
@media (min-width: 1101px) {
  .hero {
    height: calc(100svh - var(--header) - 29px);
    min-height: 620px;
    padding-block: 30px;
  }
  .hero-photo { min-height: 0; }
  .about { padding-top: calc(var(--space) + 24px); }
}

/* Calendario più essenziale: ora, corso, descrizione e durata. */
.class-level { display: none; }
.class-row { grid-template-columns: 120px 1fr 70px; }
@media (max-width: 800px) { .class-row { grid-template-columns: 85px 1fr 50px; } }
@media (max-width: 600px) {
  .class-row { grid-template-columns: 62px 1fr auto; }
  .class-duration { grid-column: 3; grid-row: 1; }
}

/* CTA della testata: più leggibile e contemporanea del rettangolo pieno. */
.header-action {
  min-height: 42px;
  padding: 10px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.header-action:hover {
  background: var(--ink);
  color: var(--paper);
}

/* Il calendario ha poche informazioni per riga: su PC è più leggibile
   raccolto al centro invece di occupare tutta la larghezza. */
@media (min-width: 801px) {
  .day-picker,
  .schedule-panels,
  .schedule-note {
    max-width: 1080px;
    margin-inline: auto;
  }
}
