*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
:root {
    --black: #0a0a0a;
    --dark: #111111;
    --card: #171717;
    --border: #2a2a2a;
    --gold: #c8a96e;
    --gold-lt: #e2c98a;
    --white: #f5f0e8;
    /*--muted: #888;*/
    --muted: #9a9a9a;
    --fd: "Bebas Neue", sans-serif;
    --fb: "DM Sans", sans-serif;
}
html {
    scroll-behavior: smooth;
}
body {
    background: var(--black);
    color: var(--white);
    font-family: var(--fb);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

/* COOKIE BANNER */
#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--card);
    border-top: 1px solid var(--gold);
    padding: 1.2rem 4vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.4s ease;
}
#cookie-banner.hidden {
    transform: translateY(110%);
}
#cookie-banner p {
    font-size: 0.85rem;
    color: rgba(245, 240, 232, 0.7);
    font-weight: 300;
    max-width: 700px;
    flex: 1;
}
.btn-info {
    background: none;
    border: none;
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    padding: 0;
}
.btn-info:hover {
    color: var(--gold-lt);
}
.ck-actions {
    display: flex;
    gap: 0.8rem;
    flex-shrink: 0;
}
.btn-accept {
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s;
}
.btn-accept:hover {
    background: var(--gold-lt);
}
.btn-dismiss {
    background: transparent;
    color: var(--muted);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
    transition:
        color 0.2s,
        border-color 0.2s;
}
.btn-dismiss:hover {
    color: var(--white);
    border-color: var(--muted);
}

/* COOKIE POLICY MODAL */
#cookie-policy {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    overflow-y: auto;
    padding: 4rem 4vw;
}
#cookie-policy.open {
    display: block;
}
.policy-box {
    max-width: 740px;
    margin: 0 auto;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3rem;
    position: relative;
}
.policy-box h2 {
    font-family: var(--fd);
    font-size: 2rem;
    letter-spacing: 0.06em;
    color: var(--gold);
    margin-bottom: 1.5rem;
}
.policy-box h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
    color: var(--white);
}
.policy-box p,
.policy-box li {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.65);
    font-weight: 300;
    line-height: 1.8;
}
.policy-box ul {
    padding-left: 1.2rem;
    margin-top: 0.4rem;
}
.policy-box a {
    color: var(--gold);
}
.policy-close {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.6rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.policy-close:hover {
    color: var(--white);
}

/* NAV */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 4vw;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
nav .logo {
    font-family: var(--fd);
    font-size: 1.5rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-decoration: none;
}
nav .cta-nav {
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.55rem 1.4rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s;
}
nav .cta-nav:hover {
    background: var(--gold-lt);
}

/* HERO */
/* HERO */
#hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 4vw 7vw;
    position: relative;
    overflow: hidden;
    background-image: url("./media/gym.jpg");
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
#hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            to bottom,
            rgba(10, 10, 10, 0.5) 0%,
            rgba(10, 10, 10, 0.75) 60%,
            rgba(10, 10, 10, 0.98) 100%
        ),
        radial-gradient(
            ellipse 60% 60% at 80% 30%,
            rgba(200, 169, 110, 0.08) 0%,
            transparent 70%
        );
}
.hero-label {
    font-size: 0.78rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}
.hero-name {
    font-family: var(--fd);
    font-size: clamp(4rem, 12vw, 11rem);
    line-height: 0.92;
    letter-spacing: 0.03em;
    color: var(--white);
}
.hero-name span {
    color: var(--gold);
}
.hero-sub {
    max-width: 560px;
    color: rgba(245, 240, 232, 0.65);
    font-size: 1rem;
    font-weight: 300;
    margin-top: 1.8rem;
    line-height: 1.75;
}
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2.5rem;
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 1rem 2.4rem;
    border-radius: 2px;
    text-decoration: none;
    transition:
        background 0.2s,
        transform 0.2s;
    width: fit-content;
}
.hero-cta:hover {
    background: var(--gold-lt);
    transform: translateY(-2px);
}
.hero-line {
    position: absolute;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 35vh;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--gold),
        transparent
    );
    opacity: 0.35;
}

/* COMMON */
section {
    padding: 7rem 4vw;
}
.section-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.8rem;
}
.section-title {
    font-family: var(--fd);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    letter-spacing: 0.05em;
    line-height: 1;
    margin-bottom: 1.5rem;
}
.section-text {
    max-width: 700px;
    color: rgba(245, 240, 232, 0.7);
    font-weight: 300;
    font-size: 0.97rem;
}

/* ABOUT */
#about {
    background: var(--dark);
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    margin-top: 3rem;
    align-items: center;
}
.about-img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border-radius: 2px;
    filter: grayscale(20%);
}
.about-img-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* CERTIFICATIONS */
#certifications {
    background: var(--black);
    text-align: center;
}
.cert-scroll {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 3rem;
    align-items: center;
}
.cert-badge {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.9rem 1.8rem;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 500;
    transition:
        border-color 0.2s,
        color 0.2s;
}
.cert-badge:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* COACHING */
#coaching {
    background: var(--dark);
}
.coaching-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3.5rem;
}
.coaching-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 2.2rem;
    transition:
        border-color 0.25s,
        transform 0.25s;
    position: relative;
    overflow: hidden;
}
.coaching-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.25s;
}
.coaching-card:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
}
.coaching-card:hover::before {
    opacity: 1;
}
.coaching-icon {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    display: block;
}
.coaching-card h3 {
    font-family: var(--fd);
    font-size: 1.5rem;
    letter-spacing: 0.06em;
    color: var(--white);
    margin-bottom: 0.8rem;
}
.coaching-card p {
    color: rgba(245, 240, 232, 0.6);
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.7;
}

/* ORARI */
#orari {
    background: var(--black);
}
.schedule-note {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 1rem;
    font-style: italic;
}
.schedule-table-wrap {
    overflow-x: auto;
    margin-top: 2.5rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    min-width: 640px;
}
table thead tr {
    border-bottom: 1px solid var(--gold);
}
table th {
    padding: 0.9rem 1rem;
    font-family: var(--fd);
    letter-spacing: 0.1em;
    font-size: 1rem;
    text-align: left;
    color: var(--gold);
    font-weight: 400;
}
table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    color: rgba(245, 240, 232, 0.7);
}
table tbody tr:hover td {
    background: var(--card);
}
table td:first-child {
    font-weight: 500;
    color: var(--white);
}
.slot {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

/* FF */
#ff {
    background: var(--dark);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.ff-inner {
    max-width: 800px;
}
.ff-inner p {
    color: rgba(245, 240, 232, 0.7);
    font-weight: 300;
    margin-top: 1.2rem;
}

/* STEPS */
#steps {
    background: var(--black);
    text-align: center;
}
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3.5rem;
    position: relative;
}
.steps-grid::before {
    content: "";
    position: absolute;
    top: 2rem;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.3;
}
.step-item {
    padding: 2rem 1rem;
}
.step-num {
    font-family: var(--fd);
    font-size: 4rem;
    color: var(--gold);
    opacity: 0.3;
    line-height: 1;
}
.step-item h4 {
    font-family: var(--fd);
    font-size: 1.3rem;
    letter-spacing: 0.08em;
    margin: 0.8rem 0 0.5rem;
}
.step-item p {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.6);
    font-weight: 300;
}
@media (max-width: 600px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid::before {
        display: none;
    }
}

/* CTA BAND */
#cta-band {
    background: var(--gold);
    padding: 5rem 4vw;
    text-align: center;
}
#cta-band h2 {
    font-family: var(--fd);
    font-size: clamp(2rem, 5vw, 4rem);
    color: var(--black);
    letter-spacing: 0.06em;
}
#cta-band p {
    color: rgba(10, 10, 10, 0.65);
    margin-top: 0.8rem;
    font-weight: 300;
}
.cta-band-btn {
    display: inline-block;
    margin-top: 2rem;
    background: var(--black);
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.8rem;
    border-radius: 2px;
    text-decoration: none;
    transition: background 0.2s;
}
.cta-band-btn:hover {
    background: var(--dark);
}

/* REVIEWS */
#reviews {
    background: var(--dark);
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.review-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 2rem;
}
.stars {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 1rem;
}
.review-text {
    font-size: 0.88rem;
    color: rgba(245, 240, 232, 0.65);
    font-weight: 300;
    line-height: 1.75;
}
.review-author {
    margin-top: 1.2rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--white);
}
.review-source {
    font-size: 0.75rem;
    color: var(--muted);
}

/* FAQ */
#faq {
    background: var(--black);
}
.faq-list {
    margin-top: 2.5rem;
    max-width: 780px;
}
details {
    border-bottom: 1px solid var(--border);
}
details summary {
    padding: 1.3rem 0;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    font-size: 0.97rem;
    transition: color 0.2s;
}
details summary::-webkit-details-marker {
    display: none;
}
details summary::after {
    content: "+";
    font-size: 1.4rem;
    color: var(--gold);
    transition: transform 0.2s;
    flex-shrink: 0;
}
details[open] summary {
    color: var(--gold);
}
details[open] summary::after {
    transform: rotate(45deg);
}
details .faq-body {
    padding: 0 0 1.3rem;
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.65);
    font-weight: 300;
    line-height: 1.8;
}

/* QUOTE */
#quote {
    background: var(--dark);
    text-align: center;
    padding: 6rem 4vw;
    border-top: 1px solid var(--border);
}
blockquote {
    font-family: var(--fd);
    font-size: clamp(1.4rem, 3.5vw, 2.8rem);
    letter-spacing: 0.04em;
    max-width: 900px;
    margin: 0 auto;
    color: var(--white);
    line-height: 1.3;
}
blockquote::before {
    content: "\201C";
    color: var(--gold);
}
blockquote::after {
    content: "\201D";
    color: var(--gold);
}

/* FOOTER */
footer {
    background: var(--black);
    border-top: 1px solid var(--border);
    padding: 4rem 4vw 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}
@media (max-width: 700px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
.footer-brand {
    font-family: var(--fd);
    font-size: 1.8rem;
    letter-spacing: 0.1em;
    color: var(--gold);
}
.footer-desc {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 300;
    max-width: 320px;
}
.footer-col h5 {
    font-family: var(--fd);
    font-size: 1rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 1rem;
}
.footer-col p,
.footer-col a {
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 300;
}
.footer-col a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.78rem;
    color: var(--muted);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.btn-policy {
    background: none;
    border: none;
    color: var(--muted);
    font-size: 0.78rem;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    padding: 0;
}
.btn-policy:hover {
    color: var(--white);
}

/* ANIMATIONS */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.coaching-card:hover .coaching-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}
.coaching-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition:
        filter 0.4s,
        transform 0.4s;
}

/* CERTIFICATIONS */
#certifications {
    background: var(--black);
    text-align: center;
}
.cert-scroll {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 3rem;
}
.cert-badge {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1.2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color 0.2s,
        transform 0.2s;
    width: 180px;
    height: 90px;
}
.cert-badge:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}
.cert-badge img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%) brightness(1.8);
    transition: filter 0.3s;
}
.cert-badge:hover img {
    filter: grayscale(0%) brightness(1);
}

/* Focus visibile per navigazione da tastiera */
:focus-visible {
    outline: 2px solid #fff; /*var(--gold);*/
    outline-offset: 3px;
}

/* Rispetta la preferenza "riduci movimento" del sistema */
@media (prefers-reduced-motion: reduce) {
    .fade-up {
        opacity: 1;
        transform: none;
        transition: none;
    }
    #hero {
        background-attachment: scroll; /* il parallax dà fastidio a chi ha sensibilità al movimento */
    }
    .coaching-card,
    .coaching-img {
        transition: none;
    }
}
