/* ===== The Cozy Studio – stile condiviso ===== */

/* Caratteri ospitati sul sito (licenza SIL Open Font License): nessun dato inviato a Google */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('fonts/inter-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 600 700;
    font-display: swap;
    src: url('fonts/playfair-latin.woff2') format('woff2');
}
@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/playfair-italic-latin.woff2') format('woff2');
}

:root {
    --yellow: #D9B21E;
    --yellow-light: #E8C543;
    --gray: #34495E;
    --gray-alt: #2E4155;
    --gray-dark: #24333F;
    --gray-deep: #1B2631;
    --text: #FFFFFF;
    --text-soft: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --line: rgba(217, 178, 30, 0.25);
    --radius: 0.75rem;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-title: 'Playfair Display', Georgia, serif;
    --nav-h: 76px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--gray);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
strong { color: var(--yellow); font-weight: 600; }

h1, h2, h3 {
    font-family: var(--font-title);
    color: var(--yellow);
    line-height: 1.2;
    font-weight: 700;
}
h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.35rem; margin-bottom: 0.6rem; }
p { color: var(--text-soft); margin-bottom: 1rem; }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 0; }
.section-alt { background: var(--gray-alt); }
.section-dark { background: var(--gray-dark); }
.center { text-align: center; }

.eyebrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--yellow);
    margin-bottom: 0.75rem;
}
.lead { font-size: 1.15rem; color: var(--text-soft); }
.section-intro { max-width: 680px; margin: 0 auto 3rem; text-align: center; }

@media (max-width: 640px) {
    .section { padding: 3.5rem 0; }
}

/* ===== Navbar ===== */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(52, 73, 94, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); }
.nav .container {
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo img { width: 190px; height: auto; filter: brightness(1.35); }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}
.nav-menu a:not(.btn) {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.25rem 0;
    transition: color 0.2s;
}
.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}
.nav-menu a:not(.btn):hover,
.nav-menu a[aria-current="page"] { color: var(--yellow); }
.nav-menu a:not(.btn):hover::after,
.nav-menu a[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    position: absolute;
    left: 10px;
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.3s, background 0.3s;
    content: '';
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; top: -7px; }
.nav-toggle span::after { left: 0; top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-logo img { width: 160px; }
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 1.5rem 1.5rem;
        background: var(--gray-dark);
        box-shadow: 0 16px 30px rgba(0, 0, 0, 0.35);
        transform: translateY(-110%);
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0.3s;
        z-index: -1;
    }
    .nav-open .nav-menu { transform: translateY(0); visibility: visible; }
    .nav-menu li { border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
    .nav-menu li:last-child { border-bottom: none; padding-top: 1rem; }
    .nav-menu a:not(.btn) { display: block; padding: 0.9rem 0; font-size: 1.05rem; }
    .nav-menu a:not(.btn)::after { display: none; }
    .nav-menu .btn { display: block; text-align: center; }
}

/* ===== Bottoni ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.75rem;
    border-radius: 0.5rem;
    border: none;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary { background: var(--yellow); color: var(--gray-deep); }
.btn-primary:hover {
    background: var(--yellow-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(217, 178, 30, 0.3);
}
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

@media (max-width: 640px) {
    .btn-row { flex-direction: column; align-items: stretch; }
}

/* ===== Hero home ===== */
.hero-home {
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 40%, rgba(217, 178, 30, 0.10) 0%, transparent 55%),
        linear-gradient(180deg, var(--gray-dark) 0%, var(--gray-deep) 100%);
}
.hero-home::before {
    content: '';
    position: absolute;
    width: 720px;
    height: 720px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: url('logo-icon.png') center / contain no-repeat;
    opacity: 0.04;
    animation: spin 90s linear infinite;
    pointer-events: none;
}
.hero-title { margin: 0; line-height: 0; position: relative; width: min(100%, 980px); }
.hero-banner {
    width: 100%;
    height: auto;
    filter: brightness(1.35);
    animation: fadeUp 1s ease-out both;
    position: relative;
}
.hero-tagline {
    max-width: 620px;
    margin: 1.5rem auto 2.25rem;
    font-size: 1.2rem;
    color: var(--text-soft);
    animation: fadeUp 1s ease-out 0.25s both;
    position: relative;
}
.hero-home .btn-row { animation: fadeUp 1s ease-out 0.45s both; position: relative; }
.hero-scroll {
    position: absolute;
    bottom: 1.75rem;
    left: 50%;
    width: 26px;
    height: 42px;
    margin-left: -13px;
    border: 2px solid var(--text-muted);
    border-radius: 14px;
}
.hero-scroll::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: var(--yellow);
    animation: scrollDot 1.8s ease-in-out infinite;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 640px) {
    .hero-home { min-height: auto; padding: 4rem 1.25rem 5.5rem; }
    .hero-home::before { width: 420px; height: 420px; }
    .hero-banner { width: 160%; max-width: none; margin-left: -30%; }
    .hero-tagline { font-size: 1.05rem; }
}

/* ===== Hero pagine interne ===== */
.page-hero {
    padding: 5.5rem 1.5rem 4.5rem;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(217, 178, 30, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, var(--gray-dark) 0%, var(--gray) 100%);
}
.page-hero h1 { font-size: clamp(2.3rem, 6vw, 3.5rem); margin-bottom: 0.75rem; animation: fadeUp 0.8s ease-out both; }
.page-hero p { font-size: 1.2rem; margin: 0; animation: fadeUp 0.8s ease-out 0.15s both; }

/* ===== Pilastri ===== */
.pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.pillar {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.3s, border-color 0.3s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--line); }
.pillar-num {
    font-family: var(--font-title);
    font-size: 2.6rem;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}
.pillar p { margin: 0; font-size: 0.97rem; }

@media (max-width: 800px) {
    .pillars { grid-template-columns: 1fr; }
}

/* ===== Card ===== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}
.card {
    background: rgba(255, 255, 255, 0.05);
    border-left: 4px solid var(--yellow);
    padding: 1.75rem;
    border-radius: var(--radius);
    transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
}
.card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}
.card h3 { font-size: 1.25rem; }
.card p { font-size: 0.97rem; margin: 0; }

/* ===== Servizi (card con foto) ===== */
.services {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}
.service-card {
    position: relative;
    aspect-ratio: 6 / 5;
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2.25rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    isolation: isolate;
}
.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    transition: transform 0.6s ease;
    z-index: -2;
}
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.9) 75%);
    z-index: -1;
}
.service-card-bg-wellness { background-position: center 45%; }
.service-card:hover .service-card-bg { transform: scale(1.05); }
.service-kicker {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--yellow-light);
    margin-bottom: 0.4rem;
}
.service-card h3 { font-size: clamp(2.2rem, 4vw, 2.9rem); line-height: 1.05; margin-bottom: 1rem; }
.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-bottom: 1rem;
}
.service-tags li {
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(217, 178, 30, 0.55);
    background: rgba(0, 0, 0, 0.35);
    font-size: 0.85rem;
    font-weight: 500;
}
/* Altezza fissa del testo: così i pulsanti delle due card restano allineati */
.service-card p {
    color: var(--text);
    font-size: 1rem;
    line-height: 1.6;
    min-height: 4.8em;
    margin-bottom: 1.5rem;
}
.service-card .btn { align-self: flex-start; }
/* Il pulsante copre tutta la card: si può toccare ovunque per aprire il popup */
.service-card { cursor: pointer; }
.card-trigger::after { content: ''; position: absolute; inset: 0; }
.service-card:hover .card-trigger { background: var(--yellow-light); box-shadow: 0 8px 20px rgba(217, 178, 30, 0.3); }

@media (max-width: 860px) {
    .services { grid-template-columns: 1fr; }
    .service-card { aspect-ratio: auto; min-height: 460px; padding: 1.75rem; }
}

/* ===== Corsi (card gestite dal pannello) ===== */
.courses {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.75rem;
}
.courses-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 0;
}
.course-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--line);
}
.course-poster {
    aspect-ratio: 4 / 5;
    background: var(--gray-deep);
    display: flex;
    align-items: center;
    justify-content: center;
}
.course-poster img { width: 100%; height: 100%; object-fit: contain; }
.course-poster.no-image img { width: 35%; height: auto; opacity: 0.35; }
.course-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}
.course-body h3 {
    font-size: 1.45rem;
    line-height: 1.2;
    height: 2.4em;
    display: flex;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}
.course-schedule {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    background: rgba(217, 178, 30, 0.14);
    color: var(--yellow-light);
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.course-meta {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-height: 1.3rem;
    margin-bottom: 0.6rem;
}
.course-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    min-height: 4.8em;
    margin-bottom: 1.25rem;
}
.course-body .btn { margin-top: auto; align-self: flex-start; }

/* ===== Split (testo + box) ===== */
.split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 3rem;
    align-items: center;
}
@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== Citazioni ===== */
.quote {
    position: relative;
    padding: 2.5rem 2rem 2rem;
    border-radius: var(--radius);
    background: rgba(217, 178, 30, 0.08);
    border: 1px solid var(--line);
    font-family: var(--font-title);
    font-style: italic;
    font-size: 1.35rem;
    line-height: 1.5;
    color: var(--yellow);
    text-align: center;
}
.quote::before {
    content: '\201C';
    position: absolute;
    top: -0.4rem;
    left: 1.25rem;
    font-size: 5rem;
    line-height: 1;
    color: var(--yellow);
    opacity: 0.35;
}
.quote cite {
    display: block;
    margin-top: 1rem;
    font-family: var(--font-body);
    font-style: normal;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.quote .btn { margin-top: 1.5rem; font-style: normal; }

.motto {
    font-family: var(--font-title);
    font-style: italic;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--yellow);
    margin-bottom: 1.5rem;
}

/* ===== CTA ===== */
.cta-band {
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(217, 178, 30, 0.14) 0%, transparent 60%),
        var(--gray-dark);
}
.cta-band p { max-width: 640px; margin: 0 auto 2rem; font-size: 1.1rem; }

/* ===== Contatti ===== */
.contact-lines p { font-size: 1.15rem; margin-bottom: 0.75rem; }
.contact-lines a { text-decoration: none; }
.contact-lines a:hover strong { color: var(--yellow-light); text-decoration: underline; }

.location {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}
.map-container {
    order: -1;
    border: 2px solid var(--yellow);
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    max-width: 440px;
    width: 100%;
    justify-self: center;
    box-shadow: var(--shadow);
}
.map-container iframe { width: 100%; height: 100%; border: 0; display: block; }
.check-list { list-style: none; margin: 1.5rem 0; }
.check-list li {
    position: relative;
    padding: 0.5rem 0 0.5rem 1.75rem;
    color: var(--text-soft);
}
.check-list li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--yellow);
    font-weight: 700;
}
.text-link {
    color: var(--yellow);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.text-link:hover { border-color: var(--yellow); }
@media (max-width: 860px) {
    .location { grid-template-columns: 1fr; gap: 2rem; }
}

/* ===== Newsletter ===== */
.newsletter-form { max-width: 560px; margin: 2rem auto 0; text-align: left; }
.newsletter-row { display: flex; gap: 0.75rem; }
.newsletter-row input {
    flex: 1;
    min-width: 0;
    padding: 0.85rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.95);
    color: var(--gray-deep);
    font-family: var(--font-body);
    font-size: 1rem;
}
.newsletter-row input:focus { outline: none; border-color: var(--yellow); }
.newsletter-row input[aria-invalid="true"] { border-color: #E57373; }
.consent {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    margin-top: 1rem;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
}
.consent input {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 0.15rem;
    accent-color: var(--yellow);
    cursor: pointer;
}
.consent.error span { color: #F0A0A0; }
.consent a, .footer .copyright a { color: var(--yellow); text-decoration: underline; }
.form-message { min-height: 1.5rem; margin: 1rem 0 0; font-size: 0.95rem; text-align: center; }
.form-message.ok { color: var(--yellow); }
.form-message.err { color: #F0A0A0; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
@media (max-width: 640px) {
    .newsletter-row { flex-direction: column; }
}

/* ===== Home compatta ===== */
.section-compact { padding: 3.5rem 0; }
.hero-facts {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem 1.25rem;
    margin-top: 2rem;
    font-size: 0.92rem;
    color: var(--text-soft);
    animation: fadeUp 1s ease-out 0.6s both;
    position: relative;
}
.strip-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.strip-head h2 { margin-bottom: 0; }
.photo-strip {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.strip-item {
    display: block;
    height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: zoom-in;
}
.strip-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.strip-item:hover img { transform: scale(1.07); }
.cta-info { font-size: 0.95rem; margin: 1.75rem auto 0 !important; color: var(--text-soft); }
.cta-info a { color: var(--yellow); text-decoration: none; }
.newsletter-box {
    max-width: 620px;
    margin: 2.5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.newsletter-box h3 { font-size: 1.4rem; }
.newsletter-box > p { font-size: 0.95rem; margin-bottom: 0 !important; }
.newsletter-box .newsletter-form { margin-top: 1.25rem; }

@media (max-width: 860px) {
    .photo-strip {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 1.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 0.25rem;
    }
    .photo-strip::-webkit-scrollbar { display: none; }
    .strip-item { flex: 0 0 72%; height: 200px; scroll-snap-align: start; }
}
@media (max-width: 640px) {
    .section-compact { padding: 2.75rem 0; }
    .hero-facts { flex-direction: column; align-items: center; gap: 0.4rem; margin-top: 1.5rem; }
    .strip-head { flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; margin-bottom: 1.25rem; }
    .strip-head .text-link { font-size: 0.95rem; }
    .cta-info span { display: block; }
    .cta-info .sep { display: none; }
    .service-card { min-height: 0; padding: 4.5rem 1.35rem 1.5rem; }
    .service-card h3 { margin-bottom: 0.75rem; }
    .service-tags { margin-bottom: 0.75rem; }
    .service-tags li { font-size: 0.78rem; padding: 0.25rem 0.65rem; }
    .service-card p { min-height: 0; font-size: 0.95rem; margin-bottom: 1.1rem; }
    #corsi { padding: 2.75rem 0; }
    #corsi .section-intro { margin-bottom: 1.75rem; }
    .cta-band .btn-row { flex-direction: row; flex-wrap: wrap; justify-content: center; }
    .cta-band .btn-row .btn { flex: 1 1 calc(50% - 0.5rem); padding: 0.8rem 1rem; }
    .cta-band .btn-row .btn[data-trial] { flex-basis: 100%; }
    .newsletter-box { margin-top: 2rem; padding-top: 1.5rem; }
    .consent { font-size: 0.78rem; }
}

/* ===== Galleria studio ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 230px;
    gap: 1rem;
}
.gallery-item {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: zoom-in;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.3s;
}
.gallery-item:hover img { transform: scale(1.06); filter: brightness(1.08); }
.gallery-main { grid-column: span 2; grid-row: span 2; }
@media (max-width: 760px) {
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; gap: 0.6rem; }
    .gallery-main { grid-column: span 2; grid-row: span 2; }
    .gallery-item:last-child { grid-column: span 2; }
}

.lightbox {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: none;
    background: rgba(12, 18, 24, 0.94);
    color: var(--text);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; animation: fadeIn 0.25s ease-out; }
.lightbox::backdrop { background: transparent; }
.lightbox img {
    max-width: calc(100% - 7rem);
    max-height: calc(100% - 5rem);
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}
.lightbox button {
    position: absolute;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.lightbox button:hover { background: rgba(217, 178, 30, 0.85); color: var(--gray-deep); }
.lightbox-close { top: 1rem; right: 1rem; }
.lightbox-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 640px) {
    .lightbox img { max-width: 100%; max-height: calc(100% - 9rem); border-radius: 0; }
    .lightbox-prev, .lightbox-next { top: auto; bottom: 1rem; transform: none; }
    .lightbox-count { bottom: 1.9rem; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ===== Popup prova gratuita ===== */
.modal-open { overflow: hidden; }
.trial-dialog {
    width: min(520px, calc(100% - 2rem));
    max-height: calc(100% - 2rem);
    margin: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--gray-dark);
    color: var(--text);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.trial-dialog[open] { animation: fadeUp 0.35s ease-out; }
.trial-dialog::backdrop {
    background: rgba(15, 22, 29, 0.75);
    backdrop-filter: blur(4px);
}
.trial-inner { position: relative; padding: 2.5rem 2rem 2rem; text-align: center; }
.trial-inner h2 { font-size: 2rem; margin-bottom: 1rem; }
.trial-inner p { font-size: 1rem; }
.trial-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.trial-close:hover { background: rgba(255, 255, 255, 0.14); }
.trial-steps {
    list-style: none;
    counter-reset: step;
    text-align: left;
    margin: 1.5rem 0 1.75rem;
    display: grid;
    gap: 0.75rem;
}
.trial-steps li {
    counter-increment: step;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--text-soft);
}
.trial-steps li::before {
    content: counter(step);
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--yellow);
    color: var(--gray-deep);
    font-weight: 700;
}
.trial-cta { width: 100%; padding: 1rem 1.5rem; }
.service-dialog { width: min(560px, calc(100% - 2rem)); overflow-y: auto; overscroll-behavior: contain; }
.service-dialog .trial-cta { position: sticky; bottom: 1rem; box-shadow: 0 -12px 24px rgba(36, 51, 63, 0.95), 0 8px 20px rgba(0, 0, 0, 0.35); }
.activity-list { list-style: none; margin: 1.5rem 0 1.75rem; display: grid; gap: 0.7rem; text-align: left; }
.activity-list li {
    padding: 0.9rem 1.1rem 1rem;
    border-radius: 0.6rem;
    border-left: 3px solid var(--yellow);
    background: rgba(255, 255, 255, 0.04);
}
.activity-list h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.activity-list p { font-size: 0.92rem; line-height: 1.55; margin: 0; color: var(--text-soft); }
@media (max-width: 480px) {
    .activity-list li { padding: 0.75rem 0.9rem 0.85rem; }
    .activity-list p { font-size: 0.88rem; }
}
.trial-cta img { width: 24px; height: 24px; }
@media (max-width: 480px) {
    .trial-inner { padding: 2.25rem 1.25rem 1.5rem; }
    .trial-inner h2 { font-size: 1.7rem; }
}

/* ===== Pagine legali ===== */
.legal h2 { font-size: 1.45rem; margin: 2.25rem 0 0.75rem; }
.legal h3 { font-family: var(--font-body); font-size: 1.05rem; margin: 1.5rem 0 0.4rem; color: var(--yellow-light); }
.legal p, .legal li { font-size: 0.98rem; }
.legal ul { margin: 0 0 1rem 1.25rem; color: var(--text-soft); }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--yellow); }
.legal em { color: var(--text-muted); font-style: normal; font-weight: 600; }
.legal-date { margin-top: 2.5rem; font-size: 0.85rem !important; color: var(--text-muted); }

/* ===== Footer ===== */
.footer {
    background: var(--gray-deep);
    border-top: 1px solid var(--line);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
}
.footer h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.footer p { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.3rem; }
.footer p a { text-decoration: none; }
.footer p a:hover { color: var(--yellow); }
.footer .copyright { margin-top: 1.5rem; font-size: 0.8rem; }

.social-icons {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1.5rem;
}
.social-link {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 0.4rem;
    overflow: hidden;
    transition: transform 0.3s;
}
.social-link:hover { transform: scale(1.15); }
.social-link img { width: 100%; height: 100%; object-fit: cover; }

/* ===== WhatsApp fisso ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 64px;
    height: 64px;
    z-index: 60;
    border-radius: 0.8rem;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
    transition: transform 0.3s;
}
.whatsapp-float img { width: 100%; height: 100%; object-fit: contain; }
.whatsapp-float:hover { transform: scale(1.1); }
@media (max-width: 640px) {
    .whatsapp-float { width: 56px; height: 56px; bottom: 16px; right: 16px; }
}

/* ===== Animazioni allo scroll ===== */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: 0.1s; }
.js .reveal-delay-2 { transition-delay: 0.2s; }
.js .reveal-delay-3 { transition-delay: 0.3s; }

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