:root {
    --bg: #f4f7f2;
    --surface: #ffffff;
    --text: #233126;
    --muted: #667067;
    --green: #56715b;
    --green-dark: #344d39;
    --warm: #d59a64;
    --line: #dfe6dd;
    --header-h: 96px;
    --nav-w: 230px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

a {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--green-dark);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 160px;
    text-decoration: none;
}

.brand-text {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.brand-logo-button {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.brand-logo-img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.logo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;
    background: rgba(0, 0, 0, 0.88);

    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.logo-modal.open {
    opacity: 1;
    visibility: visible;
}

.logo-modal-image {
    max-width: 90vw;
    max-height: 90vh;
    width: auto;
    height: auto;
}

.logo-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;

    border: 0;
    background: transparent;
    color: #fff;

    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
}

.site-layout {
    display: grid;
    grid-template-columns: var(--nav-w) minmax(0, 1fr);
    min-height: calc(100vh - var(--header-h));
}

.side-nav {
    position: sticky;
    top: var(--header-h);
    align-self: start;
    height: calc(100vh - var(--header-h));
    padding: 42px 22px;
    background: var(--green-dark);
}

.side-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav li + li {
    margin-top: 8px;
}

.side-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,0.82);
    text-decoration: none;
    font-size: 1.02rem;
    transition: background 0.18s ease, color 0.18s ease;
}

.side-nav a:hover,
.side-nav a.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.site-main {
    min-width: 0;
}

.hero {
    padding: clamp(30px, 5vw, 64px);
}

.hero-text {
/*    max-width: 760px; */
    margin-bottom: 28px;
}

#hero-title {
    font-size: 3rem;
/*    margin-bottom: 28px; */
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--green);
    text-transform: uppercase;
    letter-spacing: 0.13em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero h1,
.page-content h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.hero-text > p:last-child {
    max-width: 680px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.video-wrap {
    overflow: hidden;
    width: 100%;
    background: #172019;
    border-radius: 18px;
    box-shadow: 0 18px 44px rgba(34, 53, 39, 0.15);
}

.hero-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.hero-action {
    margin-top: 24px;
}

.button {
    display: inline-block;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    text-decoration: none;
    font-weight: 650;
}

.button:hover {
    background: var(--green-dark);
}

.home-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    padding: 0 clamp(30px, 5vw, 64px) clamp(50px, 6vw, 80px);
}

.home-card {
    padding: 26px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.home-card h2 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.home-card p {
    margin: 0 0 18px;
    color: var(--muted);
}

.home-card a {
    color: var(--green-dark);
    font-weight: 650;
    text-decoration: none;
}
/*
.page-content {
    max-width: 980px;
    padding: clamp(40px, 6vw, 80px);
} 

.page-content p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.08rem;
}
*/
.page-content {
    width: 100%;
    max-width: none;
    padding: clamp(40px, 6vw, 80px);
}

.page-content p {
    color: var(--muted);
    font-size: 1.08rem;
}

.site-footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: start;
    padding: 28px 32px;
    background: #1f2f23;
    color: rgba(255,255,255,0.86);
    font-size: 0.9rem;
}

.site-footer > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-links {
    align-items: center;
}

.footer-links a {
    text-decoration: none;
}

.footer-legal {
    align-items: flex-end;
    text-align: right;
    color: rgba(255,255,255,0.62);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 9px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
}

@media (max-width: 900px) {
    :root {
        --header-h: 82px;
    }

    .site-header {
        min-height: var(--header-h);
        height: auto;
        padding: 10px 14px;
        gap: 10px;
    }

    .brand {
        display: flex;
        align-items: center;
        gap: 10px;
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-logo-img {
        width: 58px;
        height: 58px;
        flex: 0 0 58px;
        object-fit: contain;
    }

    .brand-text {
        flex: 1 1 auto;
        min-width: 0;
    }

    .brand-text strong {
        font-size: 1rem;
        line-height: 1.15;
    }

    .brand-tagline {
        display: none;
    }

    .brand-line {
        display: block;
        white-space: nowrap;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 44px;
        width: 44px;
        height: 44px;
        margin-left: auto;
    }

    .site-layout {
        display: block;
    }

    .side-nav {
        position: fixed;
        z-index: 90;
        top: var(--header-h);
        right: 0;
        left: 0;
        height: auto;
        padding: 18px;
        transform: translateY(-130%);
        transition: transform 0.22s ease;
        box-shadow: 0 14px 30px rgba(0,0,0,0.18);
    }

    .side-nav.open {
        transform: translateY(0);
    }

    .home-cards {
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr;
    }

    .footer-links,
    .footer-legal {
        align-items: flex-start;
        text-align: left;
    }
}

@media (max-width: 560px) {
    .hero {
        padding: 26px 18px 34px;
    }

    .home-cards {
        padding: 0 18px 42px;
    }

    .video-wrap {
        border-radius: 10px;
    }

    .page-content {
        padding: 34px 18px 56px;
    }
}

@media (max-width: 480px) {

    .site-header {
        padding: 8px 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo-img {
        width: 50px;
        height: 50px;
        flex-basis: 50px;
    }

    .brand-text strong {
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .menu-toggle {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }
}

.hero-media {
    position: relative;
    width: 100%;
}

.home-slider {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;

    background: #172019;
    border-radius: 18px;

    box-shadow:
        0 18px 44px rgba(34, 53, 39, 0.15);
}

.slide {
    position: absolute;
    inset: 0;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.6s ease,
        visibility 0.6s ease;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

.slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* SLIDE APPUNTAMENTO */

.slide-evento {
    display: flex;
    align-items: center;

    padding: clamp(30px, 6vw, 80px);

    background:
        linear-gradient(
            135deg,
            var(--green-dark),
            var(--green)
        );

    color: #fff;
}


/* FRECCE */

.slider-arrow {
    position: absolute;
    z-index: 10;
    top: 50%;

    width: 46px;
    height: 46px;

    border: 0;
    border-radius: 50%;

    background:
        rgba(255,255,255,0.85);

    color: var(--green-dark);

    font-size: 2rem;
    line-height: 1;

    cursor: pointer;

    transform: translateY(-50%);
}

.slider-prev {
    left: 18px;
}

.slider-next {
    right: 18px;
}


/* PALLINI */

.slider-dots {
    position: absolute;
    z-index: 10;

    left: 50%;
    bottom: 18px;

    display: flex;
    gap: 9px;

    transform: translateX(-50%);
}

.slider-dot {
    width: 10px;
    height: 10px;

    padding: 0;

    border: 2px solid #fff;
    border-radius: 50%;

    background: transparent;

    cursor: pointer;
}

.slider-dot.active {
    background: #fff;
}


/* VIDEO */

.home-video {
    display: none;
}

.home-video.active {
    display: block;
}

.home-video video {
    display: block;

    width: 100%;

    aspect-ratio: 16 / 9;
    object-fit: contain;

    background: #000;

    border-radius: 18px;
}

.back-to-slider {
    margin-top: 12px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--green-dark);

    font: inherit;
    font-weight: 650;

    cursor: pointer;
}


/* PULSANTI */

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;

    margin-top: 24px;
}

.button-secondary {
    border: 1px solid var(--green);

    background: transparent;
    color: var(--green);

    cursor: pointer;
}

.button-secondary:hover {
    background: var(--green);
    color: #fff;
}

@media (max-width: 560px) {

    .home-slider,
    .home-video video {
        border-radius: 10px;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;

        font-size: 1.6rem;
    }

    .slider-prev {
        left: 10px;
    }

    .slider-next {
        right: 10px;
    }

    .hero-actions {
        flex-wrap: wrap;
    }
}

.event-heading {
    width: 100%;
    max-width: 1000px;
    margin: 32px auto 8px;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    font-weight: 700;
}

.form-errors {
    max-width: 800px;
    margin: 24px 0;
    padding: 18px 22px;
    border: 1px solid #c98b8b;
    border-radius: 10px;
    background: #fff4f4;
}

.form-errors p {
    margin: 6px 0;
}

.registration-confirmed {
    max-width: 800px;
    margin-top: 28px;
}

.registration-form {
    max-width: 780px;
}

.form-field {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.form-field label {
    font-weight: 500;
}

.form-field input {
    width: 100%;
    max-width: 320px;
    padding: 8px 10px;
    font: inherit;
}

.partner-description-text {
    max-height: 8.5em;
    overflow: hidden;
}

.partner-description.expanded .partner-description-text {
    max-height: none;
}

.read-more {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green-dark);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    font-style: italic;
}

.read-more:hover {
    text-decoration: underline;
}

.partners-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 32px;
}

.partner-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
    align-items: center;

    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

.partner-logo {
    width: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-logo img {
    display: block;
    width: 180px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

.partner-text {
    min-width: 0;
}

.partner-text h2 {
    margin: 0 0 8px;
}

.partner-text p {
    margin: 0;
}

.partner-contacts {
    margin-top: 14px;
}

.partner-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 18px;
    margin-top: 14px;
}

.partner-links a {
    color: var(--green-dark);
    font-weight: 650;
    text-decoration: none;
}

.partner-links a:hover {
    text-decoration: underline;
}

.partner-description-text p {
    margin: 0 0 12px;
}

.partner-description-text ul,
.partner-description-text ol {
    margin: 10px 0 14px 22px;
}

.partner-description-text li {
    margin-bottom: 6px;
}

.partner-description-text a {
    color: var(--green-dark);
    font-weight: 650;
}

.partner-description-text strong {
    color: var(--green-dark);
}

@media (max-width: 700px) {

    .partner-row {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 18px 0 28px;
    }

    .partner-logo {
        width: 100%;
        justify-content: center;
    }

    .partner-logo img {
        width: 130px;
        max-height: 90px;
        object-fit: contain;
    }

    .partner-text {
        width: 100%;
    }

    .partner-text h2 {
        text-align: center;
        margin-bottom: 12px;
    }

    .partner-description {
        width: 100%;
    }

    .partner-contacts {
        margin-top: 14px;
    }

    .partner-links {
        margin-top: 14px;
    }
}

@media (max-width: 700px) {

    .event-poster {
        width: 85%;
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .event-poster img {
        width: 100%;
        height: auto;
    }

}

.partners-intro {
    margin-bottom: 40px;
}

/* =========================================================
   LE NOSTRE CAMMINATE
   ========================================================= */

.walks-list {
    display: flex;
    flex-direction: column;
    gap: 36px;
    margin-top: 36px;
}

.walk-card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--line);
    border-radius: 14px;
}

.walk-cover-button {
    display: block;

    width: 100%;
    padding: 0;

    border: 0;
    background: transparent;

    cursor: pointer;
}

.walk-cover-button img {
    display: block;

    width: 100%;
    max-height: 520px;

    object-fit: cover;
}

.walk-card-body {
    padding: 22px 24px 26px;
}

.walk-date {
    margin-bottom: 6px;

    font-weight: 700;
    color: var(--green);
}

.walk-card-body h2 {
    margin: 0 0 8px;

    color: var(--green-dark);
}

.walk-place {
    margin-bottom: 16px;

    color: var(--muted);
}

.walk-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;

    margin-top: 18px;
}


/* =========================================================
   MODALE FOTO / VIDEO
   ========================================================= */

.walk-modal {
    position: fixed;
    inset: 0;

    z-index: 1100;

    display: none;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, .94);
}

.walk-modal.open {
    display: flex;
}

.walk-modal-content {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 60px 70px;
}

.walk-modal-image {
    display: none;

    max-width: 94vw;
    max-height: calc(100vh - 150px);

    width: auto;
    height: auto;

    object-fit: contain;
}

.walk-modal-video {
    display: none;

    max-width: 94vw;
    max-height: calc(100vh - 150px);

    width: auto;
    height: auto;
}

.walk-modal-caption {
    margin-top: 14px;

    max-width: 900px;

    color: white;
    text-align: center;
}

.walk-modal-close,
.walk-modal-prev,
.walk-modal-next {
    position: absolute;

    z-index: 3;

    border: 0;
    background: transparent;

    color: white;

    cursor: pointer;
}

.walk-modal-close {
    top: 12px;
    right: 20px;

    font-size: 40px;
}

.walk-modal-prev,
.walk-modal-next {
    top: 50%;

    transform: translateY(-50%);

    font-size: 52px;
}

.walk-modal-prev {
    left: 18px;
}

.walk-modal-next {
    right: 18px;
}


@media (max-width: 700px) {

    .walk-modal-content {
        padding: 55px 35px;
    }

    .walk-modal-prev {
        left: 4px;
    }

    .walk-modal-next {
        right: 4px;
    }

    .walk-modal-prev,
    .walk-modal-next {
        font-size: 42px;
    }
}

/* =========================================================
   ROUTES
   ========================================================= */

.routes-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.route-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;

    background: #fff;
    color: inherit;

    border-radius: 12px;

    box-shadow:
        0 3px 12px rgba(0, 0, 0, .10);

    text-decoration: none;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.route-card:hover,
.route-card:focus-visible {
    transform: translateY(-3px);

    box-shadow:
        0 7px 20px rgba(0, 0, 0, .16);
}

.route-card-image {
    position: relative;
    overflow: hidden;

    aspect-ratio: 4 / 3;

    background: #e8ece7;
}

.route-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform .3s ease;
}

.route-card:hover .route-card-image img {
    transform: scale(1.035);
}

.route-card-zoom {
    position: absolute;

    right: .7rem;
    bottom: .7rem;

    display: flex;

    width: 2rem;
    height: 2rem;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(0, 0, 0, .58);
    color: #fff;

    font-size: 1.15rem;
}

.route-card-body {
    padding: 1rem 1.1rem 1.15rem;
}

.route-card-body h2 {
    margin: 0;

    font-size: 1.05rem;
    line-height: 1.25;

    color: #344d39;
}

.route-length {
    margin-top: .45rem;

    font-size: .9rem;
    font-weight: 600;

    color: #6a786c;
}

.route-description {
    margin-top: .7rem;

    font-size: .92rem;
    line-height: 1.45;

    color: #4c554e;
}


/* =========================================================
   ROUTE MODAL
   ========================================================= */

.route-modal {
    position: fixed;
    inset: 0;

    z-index: 10000;

    display: none;

    background: rgba(0, 0, 0, .92);
}

.route-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.route-modal-content {
    display: flex;
    flex-direction: column;

    width: calc(100vw - 4rem);
    height: calc(100vh - 4rem);

    max-width: 1500px;

    background: #111;
}

.route-modal-image-wrapper {
    flex: 1 1 auto;

    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 0;

    overflow: auto;
}

.route-modal-image {
    display: block;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    transform-origin: center center;

    transition: transform .15s ease;
}

.route-modal-footer {
    flex: 0 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 1rem;

    padding: .8rem 1rem;

    background: #1c1c1c;
    color: #fff;
}

.route-modal-title {
    font-size: 1rem;
}

.route-zoom-controls {
    display: flex;
    align-items: center;

    gap: .4rem;
}

.route-zoom-controls button,
.route-modal-close {
    border: 0;

    cursor: pointer;

    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.route-zoom-controls button {
    min-width: 2.5rem;
    height: 2.3rem;

    padding: 0 .65rem;

    border-radius: 5px;

    font-size: 1rem;
}

.route-modal-close {
    position: absolute;

    top: .8rem;
    right: 1rem;

    z-index: 2;

    width: 2.8rem;
    height: 2.8rem;

    border-radius: 50%;

    font-size: 2rem;
    line-height: 1;
}

.route-zoom-controls button:hover,
.route-modal-close:hover {
    background: rgba(255, 255, 255, .28);
}


/* =========================================================
   RESPONSIVE ROUTES
   ========================================================= */

@media (max-width: 1200px) {

    .routes-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}

@media (max-width: 850px) {

    .routes-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .route-modal-content {
        width: calc(100vw - 2rem);
        height: calc(100vh - 2rem);
    }

}

@media (max-width: 560px) {

    .routes-grid {
        grid-template-columns: 1fr;
    }

    .route-modal-content {
        width: 100vw;
        height: 100vh;
    }

    .route-modal-footer {
        flex-direction: column;
        align-items: stretch;

        text-align: center;
    }

    .route-zoom-controls {
        justify-content: center;
    }

}

.route-modal-prev,
.route-modal-next {
    position: absolute;
    top: 50%;

    z-index: 3;

    width: 3.2rem;
    height: 3.2rem;

    transform: translateY(-50%);

    border: 0;
    border-radius: 50%;

    background: rgba(255, 255, 255, .14);
    color: #fff;

    font-size: 2.4rem;
    line-height: 1;

    cursor: pointer;
}

.route-modal-prev {
    left: 1rem;
}

.route-modal-next {
    right: 1rem;
}

.route-modal-prev:hover,
.route-modal-next:hover {
    background: rgba(255, 255, 255, .28);
}

.route-modal-image-wrapper:fullscreen {
    width: 100vw;
    height: 100vh;

    background: #000;

    overflow: auto;
}

.route-modal-image-wrapper:fullscreen
.route-modal-image {
    max-width: 100vw;
    max-height: 100vh;

    object-fit: contain;
}

.route-modal-content:fullscreen {
    position: relative;

    width: 100vw;
    height: 100vh;

    max-width: none;
    max-height: none;

    margin: 0;
    padding: 0;

    background: #000;

    overflow: hidden;
}

/* =========================================================
   ROUTES - FULLSCREEN
   ========================================================= */

#routeModal:fullscreen {
    width: 100vw;
    height: 100vh;

    padding: 0;

    background: #000;

    overflow: hidden;
}


/*
 * Il contenuto occupa tutto lo schermo
 */

#routeModal:fullscreen .route-modal-content {
    position: relative;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    margin: 0;

    overflow: hidden;
}


/*
 * Immagine
 */

#routeModal:fullscreen .route-modal-image-wrapper {
    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;
}


#routeModal:fullscreen #routeModalImage {
    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
}


/*
 * Tutti i controlli devono stare sopra l'immagine
 */

#routeModal:fullscreen
.route-modal-close,

#routeModal:fullscreen
.route-modal-prev,

#routeModal:fullscreen
.route-modal-next,

#routeModal:fullscreen
.route-modal-controls {
    z-index: 100;
}

/* =========================================================
   ROUTES - FULLSCREEN
   ========================================================= */

#routeModal:fullscreen {
    position: fixed;

    inset: 0;

    width: 100vw;
    height: 100dvh;

    padding: 0;

    background: #000;

    overflow: hidden;
}


/*
 * Contenuto
 */

#routeModal:fullscreen
.route-modal-content {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    margin: 0;
    padding: 0;

    overflow: hidden;
}


/*
 * Immagine
 */

#routeModal:fullscreen
.route-modal-image-wrapper {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: auto;
}


#routeModal:fullscreen
#routeModalImage {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;
}


/*
 * Pulsante chiusura
 */

#routeModal:fullscreen
.route-modal-close {
    position: fixed;

    top: max(
        0.75rem,
        env(safe-area-inset-top)
    );

    right: max(
        0.75rem,
        env(safe-area-inset-right)
    );

    z-index: 1000;
}


/*
 * Frecce
 */

#routeModal:fullscreen
.route-modal-prev,

#routeModal:fullscreen
.route-modal-next {
    position: fixed;

    top: 50%;

    transform: translateY(-50%);

    z-index: 1000;
}


#routeModal:fullscreen
.route-modal-prev {
    left: max(
        0.5rem,
        env(safe-area-inset-left)
    );
}


#routeModal:fullscreen
.route-modal-next {
    right: max(
        0.5rem,
        env(safe-area-inset-right)
    );
}


/*
 * Footer e controlli
 */

#routeModal:fullscreen
.route-modal-footer {
    position: fixed;

    left: 0;
    right: 0;

    bottom: 0;

    z-index: 1000;

    padding:
        0.5rem
        0.75rem
        calc(
            0.5rem
            + env(safe-area-inset-bottom)
        );

    background:
        rgba(0, 0, 0, 0.65);
}


#routeModal:fullscreen
.route-zoom-controls {
    margin: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 0.4rem;
}

.route-details {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 0.28rem 0.65rem;

    margin-top: 0.4rem;

    font-size: 0.68rem;
    line-height: 1.2;
}


.route-detail {
    display: flex;
    align-items: center;

    min-width: 0;

    gap: 0.28rem;
}


.route-detail-icon {
    width: 1.05rem;
    height: 1.05rem;

    flex: 0 0 1.05rem;

    object-fit: contain;
}


.route-detail-text {
    min-width: 0;
}


/*
 * Dettagli nello zoom e nel fullscreen.
 * Qui mostriamo tutte le voci disponibili.
 */
.route-modal-info {
    min-width: 0;
}


.route-modal-details {
    display: flex;
    flex-wrap: wrap;

    align-items: center;

    gap: 0.45rem 1.25rem;

    margin-top: 0.3rem;

    font-size: 0.86rem;
    line-height: 1.25;
}


.route-modal-detail {
    display: inline-flex;
    align-items: center;

    gap: 0.35rem;

    white-space: nowrap;
}


.route-modal-detail-icon {
    width: 1.25rem;
    height: 1.25rem;

    flex: 0 0 1.25rem;

    object-fit: contain;
}


#routeModal:fullscreen
.route-modal-details {
    gap: 0.45rem 1.5rem;

    font-size: 0.9rem;
}


#routeModal:fullscreen
.route-modal-detail-icon {
    width: 1.35rem;
    height: 1.35rem;

    flex-basis: 1.35rem;
}


@media (max-width: 700px) {

    .route-details {
        gap: 0.22rem 0.45rem;

        font-size: 0.66rem;
    }


    .route-modal-details {
        justify-content: center;

        gap: 0.35rem 0.8rem;

        font-size: 0.8rem;
    }


    .route-modal-detail {
        white-space: normal;
    }

}

/* =========================================================
   in_the_media
   ========================================================= */

/* =========================================================
   CSS
   Aggiungere in fondo a css/style.css
   ========================================================= */

.home-press {
    margin: 34px 0 42px;
    padding: 24px 28px;
    background: #f4f7f2;
    border-radius: 16px;
}

.home-press-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}

.home-press-header h2 {
    margin: 0;
    color: #344d39;
}

.home-press-all {
    color: #344d39;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-press-all:hover,
.home-press-all:focus {
    text-decoration: underline;
}

.home-press-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
}

.home-press-item {
    padding: 4px 22px;
    border-left: 1px solid rgba(52, 77, 57, 0.18);
}

.home-press-item:first-child {
    padding-left: 0;
    border-left: 0;
}

.home-press-item:last-child {
    padding-right: 0;
}

.home-press-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 7px;
    color: #66756a;
    font-size: 0.88rem;
}

.home-press-item h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.35;
}

.home-press-item h3 a {
    color: #344d39;
    text-decoration: none;
}

.home-press-item h3 a:hover,
.home-press-item h3 a:focus {
    text-decoration: underline;
}

.press-card {
    position: relative;
}

.press-card + .press-card {
    border-top: 1px solid rgba(52, 77, 57, 0.22);
    padding-top: 28px;
    margin-top: 28px;
}

/* ---------------------------------------------------------
   Smartphone
   --------------------------------------------------------- */
@media (max-width: 700px) {

    .home-press {
        margin: 26px 0 34px;
        padding: 20px;
    }

    .home-press-header {
        align-items: center;
    }

    .home-press-list {
        grid-template-columns: 1fr;
    }

    .home-press-item,
    .home-press-item:first-child,
    .home-press-item:last-child {
        padding: 14px 0;
        border-left: 0;
        border-top: 1px solid rgba(52, 77, 57, 0.18);
    }

    .home-press-item:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .home-press-item:last-child {
        padding-bottom: 0;
    }

}

.press-card-media img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
}