:root {
    --color-primary: #003a78;
    --color-primary-dark: #002854;
    --color-secondary: #0096d6;
    --color-secondary-soft: #e5f4ff;
    --color-bg: #f5fbff;
    --color-text: #1f2933;
    --color-border: #c4dff5;

    --font-sans: "Lato", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Playfair Display", "Times New Roman", serif;

    --radius-lg: 18px;
    --radius-md: 12px;
    --shadow-soft: 0 14px 40px rgba(0, 33, 71, 0.18);
}

/* RESET BASE */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: #ffffff;
    line-height: 1.6;
}

/* LAYOUT GENERALE */

.container {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 4rem 0;
}

.section--light {
    background: #ffffff;
}

.section--soft {
    background: var(--color-bg);
}

/* HERO - immagine fissa + contenuto centrato */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: url("hero.webp") center center / cover no-repeat fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* contenuto centrato */
.hero__content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 0 2px 16px rgba(0,0,0,0.45);
}

.hero__logo {
    width: 160px;
    max-width: 35%;
    margin-bottom: 1rem;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 0;
    font-weight: 700;
}

.hero__subtitle {
    margin-top: 0.5rem;
    font-size: 1.5rem;
    font-weight: 300;
}

/* scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 26px;
    height: 46px;
    border: 2px solid white;
    border-radius: 15px;
    opacity: 0.85;
    position: relative;
}

.scroll-indicator span::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: white;
    transform: translateX(-50%);
    animation: scroll 1.6s infinite;
}

@keyframes scroll {
    0% { opacity: 0; transform: translate(-50%, 0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, 18px); }
}

/* Forzo centratura titoli sezione Parco Naturale */
.section--light .section__title,
.section--light .section__subtitle {
    text-align: center !important;
    margin-left: auto;
    margin-right: auto;
}

}
.section__subtitle {
    text-align: center;
    display: block;
}
/* TITOLI SEZIONI */

.section__text--large {
    font-size: 1.2rem;
    line-height: 1.75;
}

.section__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0 0 1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section__subtitle {
    display: block;
    font-family: var(--font-serif);
    font-weight: 500;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--color-primary-dark);
}

.section__title-small {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin: 0 0 0.75rem;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section__text {
    margin: 0;
    font-size: 1rem;
    color: #27323f;
}

/* SPLIT (IMMAGINE + TESTO) */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: center;
}

.split__media {
    margin: 0;
}

.split__image {
    width: 100%;
    display: block;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    background: #ffffff;
}

.split__content {
    padding: 1rem 0;
}

/* BOX DATI + TABELLA */

.data-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2.1fr);
    gap: 2.5rem;
    align-items: flex-start;
}

.data-layout__side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.data-layout__main {
    width: 100%;
}

.info-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 10px 26px rgba(0, 53, 109, 0.12);
}

.info-card__title {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.info-card__body {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}

/* TABELLA SPECIFICHE */

.table-wrapper {
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--color-border);
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    min-width: 680px;
}

.spec-table caption {
    caption-side: top;
    padding: 1rem 1.25rem;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1rem;
    text-align: left;
    color: var(--color-primary-dark);
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    color: #ffffff;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.spec-table thead th {
    background: #d5e9ff;
    color: var(--color-primary-dark);
    font-weight: 700;
    text-align: center;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.spec-table thead th:first-child {
    text-align: left;
    padding-left: 1rem;
}

.spec-table td,
.spec-table th[scope="row"] {
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.spec-table td:last-child,
.spec-table thead th:last-child {
    border-right: none;
}

.spec-table th[scope="row"] {
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.spec-table tbody tr:nth-child(even):not(.spec-table__group):not(.spec-table__note-row) td,
.spec-table tbody tr:nth-child(even):not(.spec-table__group):not(.spec-table__note-row) th[scope="row"] {
    background: #f3f7fc;
}

.spec-table__group th {
    padding: 0.55rem 0.75rem;
    text-align: left;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary-dark);
    background: #c5ddff;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.spec-table__note {
    padding: 0.55rem 0.75rem;
    font-size: 0.84rem;
    font-style: italic;
}

/* FOOTER */

.footer {
    background: var(--color-primary-dark);
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer__content {
    font-size: 0.9rem;
}

.footer__text {
    margin: 0 0 0.6rem;
}

.footer a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover,
.footer a:focus {
    text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 960px) {
    .hero {
        background-attachment: scroll;
    }

    .data-layout {
        grid-template-columns: 1fr;
    }

    .data-layout__side {
        order: 2;
    }

    .data-layout__main {
        order: 1;
    }

    .split {
        grid-template-columns: 1fr;
    }

    .split__content {
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 3rem 0;
    }

    .hero {
        min-height: 70vh;
    }

    .hero__content {
        max-width: 100%;
    }

    .spec-table {
        font-size: 0.8rem;
        min-width: 600px;
    }
}
.footer__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer__logo {
    width: 140px;
    height: auto;
}

@media (max-width: 768px) {
    .footer__content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
}