@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Lato:wght@300;400;700&display=swap');

:root {
    --primary: #1a3d4f;
    --primary-light: #2d6b82;
    --secondary: #4a9bb5;
    --accent: #c4943a;
    --accent-light: #d4aa5a;
    --accent-dark: #7a5e18;
    --bg-warm: #dad7d3d1;
    --bg-section: #f2ede6;
    --bg-white: #c2b19273;
    --text-dark: #1a2e38;
    --text-mid: #000;
    --text-light: #596375;
    --border: #e2d8cc;
    --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

/* ── SKIP LINK (accessibilità) ── */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.15s;
}
.skip-link:focus { top: 0; }

/* ── FOCUS VISIBILE (accessibilità) ── */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 2px;
}
a:focus-visible, button:focus-visible { outline-color: var(--accent); }

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    background: var(--bg-warm);
    line-height: 1.7;
    font-weight: 300;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-height);
    background: var(--primary);
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.nav-logo span {
    color: var(--accent-light);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li a {
    display: block;
    padding: 0 10px;
    color: rgba(255,255,255,0.78);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color 0.2s;
    height: var(--nav-height);
    line-height: var(--nav-height);
    white-space: nowrap;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-light);
}

/* ── HAMBURGER MOBILE ── */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: transparent;
    border: none;
    outline: none;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* ── HERO ── */
@keyframes kenburns {
    0%   { transform: scale(1.05) translate(0%, 0%); }
    100% { transform: scale(1.15) translate(-3%, -2%); }
}

.hero {
    margin-top: var(--nav-height);
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0d2a38 0%, #1a3d4f 40%, #2d6b82 100%);
    padding: 80px 32px;
}

/* Immagine di sfondo animata (Ken Burns) */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-bg);
    background-size: cover;
    background-position: center;
    z-index: 0;
    animation: kenburns 20s ease-in-out infinite alternate;
    will-change: transform;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    /*background: linear-gradient(135deg,
        rgba(13, 42, 56, 0.82) 0%,
        rgba(26, 61, 79, 0.47) 50%,
        rgba(45, 107, 130, 0.65) 100%); */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-eyebrow {
    font-family: 'Lato', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: 0.02em;
}

.hero-tagline {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-style: italic;
    color: rgba(255,255,255,0.88);
    letter-spacing: 0.03em;
}

/* Hero per pagine interne (più compatto) */
.hero-page {
    min-height: 480px;
    padding: 60px 32px;
}

.hero-page h1 {
    font-size: clamp(2rem, 5vw, 3rem);
}

/* ── CONTAINER ── */
.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 32px;
}

.container-wide {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ── SEZIONI ── */
section { padding: 72px 0; }


.section-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 400;
    color: var(--primary);
    margin-bottom: 28px;
    line-height: 1.2;
}


/* ── TESTO HOME ── */
.intro-section { background: var(--bg-white); }

.intro-text {
    max-width: 720px;
    margin: 0 auto;
}

.intro-text p {
    font-size: 1.13rem;
    line-height: 1.9;
    color: var(--text-mid);
    margin-bottom: 24px;
    font-weight: 300;
}

.intro-text p.conclusion {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-style: italic;
    color: var(--primary);
    border-left: 3px solid var(--accent);
    padding-left: 24px;
    margin: 40px 0;
}

.intro-text p.cta {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--primary);
    text-align: center;
    margin-top: 40px;
    margin-bottom: 0;
}

.intro-text a {
    color: var(--primary-light);
    border-bottom: 1px solid var(--secondary);
    transition: color 0.2s, border-color 0.2s;
    padding-bottom: 1px;
}

.intro-text a:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ── CARDS GRID ── */
.cards-section { background: var(--bg-warm); }

.cards-section-title {
    text-align: center;
    margin-bottom: 48px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 36px 28px;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    display: block;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(26,61,79,0.10);
    border-color: var(--secondary);
}

.card-icon {
    font-size: 1.6rem;
    margin-bottom: 16px;
    color: var(--accent);
    display: block;
}

.card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* ── CONTENUTO PAGINE INTERNE ── */
.page-content { background: var(--bg-white); }

.page-content .container > * + * { margin-top: 28px; }

.page-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.5rem, 3.5vw, 2.1rem);
    font-weight: 500;
    color: var(--primary);
    margin-top: 52px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
    font-size: 1.05rem;
    line-height: 1.9;
    font-weight: 300;
}

.page-content ul, .page-content ol {
    padding-left: 24px;
    color: var(--text-mid);
    font-size: 1.05rem;
    line-height: 1.9;
}

.page-content li { margin-bottom: 8px; }

/* ── BLOCKQUOTE ── */
blockquote {
    border-left: 3px solid var(--accent);
    padding: 20px 28px;
    margin: 40px 0;
    background: var(--bg-warm);
    border-radius: 0 4px 4px 0;
}

blockquote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem !important;
    font-style: italic;
    color: var(--primary) !important;
    margin: 0 !important;
}

blockquote cite {
    display: block;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--text-light);
    font-style: normal;
    letter-spacing: 0.05em;
}

/* ── BOX INFO ── */
.info-box {
    background: linear-gradient(135deg, #e8f4f8, #f0ebe2);
    border: 1px solid #c8dde6;
    border-radius: 4px;
    padding: 32px 36px;
    margin: 40px 0;
}

.info-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.info-box p {
    color: var(--text-mid) !important;
    margin: 0 !important;
}

/* ── TWO COLUMNS ── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.two-col-box {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 28px 24px;
}

.two-col-box h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.two-col-box ul {
    list-style: none;
    padding: 0;
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.8;
}

.two-col-box ul li::before {
    content: '— ';
    color: var(--accent);
}

/* ── DEFINIZIONE HERO KINESIOLOGIA ── */
.definition-block {
    background: var(--primary);
    color: #fff;
    padding: 48px 56px;
    border-radius: 4px;
    margin: 48px 0;
    text-align: center;
}

.definition-block p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(255,255,255,0.9) !important;
    margin: 0 !important;
}

.definition-block strong {
    color: var(--accent-light);
    font-weight: 500;
}

/* ── CONTACT FORM ── */
.contact-form {
    max-width: 620px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: 3px;
    font-family: 'Lato', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-dark);
    background: var(--bg-white);
    transition: border-color 0.2s;
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.btn-primary {
    display: inline-block;
    padding: 14px 40px;
    background: var(--primary);
    color: #fff;
    font-family: 'Lato', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-primary:hover { background: var(--primary-light); }

/* ── IMMAGINE CONTENUTO ── */
.figure-img {
    position: relative;
    display: block;
    margin: 40px 0;
    border-radius: 4px;
    overflow: hidden;
}

.feature-img {
    width: 100%;
    border-radius: 4px;
    display: block;
    margin: 40px 0;
    object-fit: cover;
    object-position: bottom;
}

.figure-img .feature-img {
    margin: 0;
    border-radius: 0;
}


/* Photo credit — overlay al passaggio del mouse */
.photo-credit {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 6px 14px;
    background: rgba(13, 42, 56, 0.72);
    font-size: 0.7rem;
    color: rgba(255,255,255,0.8);
    text-align: right;
    letter-spacing: 0.04em;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.figure-img:hover .photo-credit { opacity: 1; }

.photo-credit a {
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}
.photo-credit a:hover { border-color: rgba(255,255,255,0.5); }


/* ── LINK NEI CONTENUTI (accessibilità: non solo colore) ── */
.page-content p a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* ── BREADCRUMB VERTICALE ── */
.breadcrumb-vertical {
    /* reset regola generica nav {} */
    position: absolute;
    top: auto;
    right: auto;
    height: auto;
    background: transparent;
    box-shadow: none;
    /* posizione */
    bottom: 2rem;
    left: 0.12rem;
    /* stile */
    transform: rotate(-90deg);
    transform-origin: 0 0;
    white-space: nowrap;
    display: flex;
    align-items: center;
    font-size: 13px;
    letter-spacing: 0.025em;
    color: rgba(255,255,255,0.5);
    z-index: 3;
}

.breadcrumb-vertical a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.breadcrumb-vertical a::after {
    content: '/';
    padding: 0 0.5rem;
    display: inline-block;
    color: rgba(255,255,255,0.35);
}

.breadcrumb-vertical a:hover { color: var(--accent-light); }

.breadcrumb-vertical .destination { color: #fff; }

/* ── DIVIDER ── */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 48px 0;
}

/* ── FOOTER ── */
footer {
    margin-top: auto;
    background: var(--primary);
    color: rgba(255,255,255,0.55);
    padding: 40px 32px;
    text-align: center;
}

footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

footer .footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 4px;
}

footer p {
    font-size: 0.82rem;
    letter-spacing: 0.05em;
}

footer a {
    color: var(--accent-light);
    transition: opacity 0.2s;
}

footer a:hover { opacity: 0.8; }

.footer-legal {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.3);
    margin-top: 6px;
    letter-spacing: 0.04em;
}

.footer-legal a {
    color: rgba(255,255,255,0.38);
    transition: color 0.2s;
}

.footer-legal a:hover { color: var(--accent-light); opacity: 1; }

/* ── TABELLE ── */
.page-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    font-size: 0.88rem;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}

.page-content th {
    background: var(--primary);
    color: rgba(255,255,255,0.88);
    padding: 10px 14px;
    text-align: left;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.page-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
    vertical-align: top;
    line-height: 1.55;
}

.page-content tr:last-child td { border-bottom: none; }
.page-content tr:nth-child(even) td { background: var(--bg-warm); }

.page-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.82em;
    background: var(--bg-section);
    padding: 1px 5px;
    border-radius: 3px;
    color: var(--primary-light);
}

/* ── OVERLAYSCROLLBARS — chrome fix ── */
.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle {
    background: rgba(196, 148, 58, 0.45);
}
.os-theme-dark > .os-scrollbar > .os-scrollbar-track > .os-scrollbar-handle:hover {
    background: rgba(196, 148, 58, 0.75);
}
.os-host .os-viewport::-webkit-scrollbar { display: none; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .two-col { grid-template-columns: 1fr; gap: 20px; }
}

/* ── SCROLL FADE-IN ── */
.fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.is-visible {
    opacity: 1;
    transform: none;
}
@media (prefers-reduced-motion: reduce) {
    .fade-in { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 720px) {
    .breadcrumb-vertical { display: none; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); left: 0; right: 0; background: var(--primary); padding: 16px 0; }
    .nav-links.open { display: flex; }
    .nav-links li a { height: auto; line-height: 1; padding: 14px 24px; }
    .nav-toggle { display: flex; }
    .cards-grid { grid-template-columns: 1fr; }
    .definition-block { padding: 32px 24px; }
    section { padding: 52px 0; }
}
