/* Piana di Lucca — stili del tema. Misure di riferimento: tavola Figma da 1728px. */

:root {
    --green: #106356;
    --orange: #f15931;
    --text: #525252;
    --text-dark: #393a39;
    --muted: #818181;
    --grey-bg: #f6f6f6;
    --grey-soft: #fafafa;
    --line: #d9d9d9;
    --font-body: "Montserrat", system-ui, sans-serif;
    --font-title: "Titillium Web", "Montserrat", system-ui, sans-serif;
    --font-small: "Onest", "Montserrat", system-ui, sans-serif;
    --radius: 12px;
    --shadow: 0 4px 4px rgb(0 0 0 / 25%);
    --container: 1416px;
    --gutter: clamp(20px, 4vw, 64px);
    --header-h: clamp(64px, 6.77vw, 117px);
    --topbar-h: 36px;
    --destbar-h: 61px;
    --adminbar-h: 0px;

    /* Curve decorative del design (maschere SVG). */
    --shape-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='208 0 79 117' preserveAspectRatio='none'%3E%3Cpath d='M287 117H208V0h.292C261.257 0 236.103 105.079 286.99 117z'/%3E%3C/svg%3E");
    --shape-corner: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 128 58' preserveAspectRatio='none'%3E%3Cpath d='M0 58h128V0H78.708C25.743 0 50.897 52.09.01 58z'/%3E%3C/svg%3E");
    --shape-top-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 183 117' preserveAspectRatio='none'%3E%3Cpath d='M0 117h183V0H78.708C25.743 0 50.897 105.079.01 117z'/%3E%3C/svg%3E");
    --shape-top-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 287 117' preserveAspectRatio='none'%3E%3Cpath d='M287 117H0V0h208.292C261.257 0 236.103 105.079 286.99 117z'/%3E%3C/svg%3E");
    --shape-tab: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16' preserveAspectRatio='none'%3E%3Cpath d='M40 16H0V0h29.03C36.412 0 32.906 14.37 39.999 16z'/%3E%3C/svg%3E");
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text);
    background: #fff;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
.icon { width: 1em; height: 1em; flex: none; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.screen-reader-text, .hp-field {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0; border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.hp-field { left: -9999px; top: 0; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--green); font-weight: 600; }
.skip-link:focus { left: 8px; }

.container { width: min(100% - var(--gutter) * 2, var(--container)); margin-inline: auto; }
.container--narrow { --container: 900px; }

/* ---------- Pulsanti ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: clamp(46px, 3.36vw, 58px);
    padding: 0 clamp(18px, 1.5vw, 26px);
    border: 2px solid var(--orange);
    border-radius: 50px;
    background: var(--orange);
    color: #fff;
    font-size: clamp(0.875rem, 1.1vw, 1.1875rem);
    font-weight: 600;
    line-height: 1.1;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn .icon { width: 22px; height: 13px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(4px); }
.btn:hover { background: #d9471f; border-color: #d9471f; }

.btn--outline { background: transparent; border-color: var(--green); color: var(--green); }
.btn--outline:hover { background: var(--green); border-color: var(--green); color: #fff; }

.btn--outline-white { background: transparent; border: 1px solid #fff; }
.btn--outline-white:hover { background: #fff; border-color: #fff; color: var(--green); }

.btn--ghost { min-height: 41px; min-width: 198px; background: transparent; border: 1px solid #fff; font-size: .8125rem; font-weight: 400; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--green); }

.btn--small { min-height: 41px; padding: 0 14px; gap: 10px; background: #fff; border: 1px solid var(--text); color: var(--text); font-size: .875rem; }
.btn--small .icon { width: 19px; height: 11px; }
.btn--small:hover { background: var(--text); border-color: var(--text); color: #fff; }

.btn--compact { min-height: 47px; font-size: 1rem; }

.btn--block { width: 100%; min-height: 46px; border-radius: var(--radius); box-shadow: var(--shadow); }

.round-btn {
    display: grid;
    place-items: center;
    width: clamp(40px, 2.95vw, 51px);
    aspect-ratio: 1;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgb(255 255 255 / 29%);
    color: #fff;
    transition: background-color .2s;
}
.round-btn .icon { width: 22px; height: 13px; }
.round-btn:hover { background: rgb(255 255 255 / 50%); }
.round-btn--grey { background: #bdbdbd; }
.round-btn--grey:hover { background: var(--green); }
[data-prev] .icon, [data-hero-prev] .icon { transform: rotate(180deg); }

.dot {
    display: inline-block;
    width: 31px;
    aspect-ratio: 1;
    flex: none;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--dot, var(--green));
}

.dot--small { width: 14px; border: 0; }

/* ---------- Barra superiore ---------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: var(--topbar-h);
    padding: 0 clamp(16px, 2.66vw, 46px);
    border-bottom: 1px solid #1a1a1a;
    font-size: .6875rem;
    font-weight: 600;
    text-transform: uppercase;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--green); }
.topbar__nav ul { display: flex; gap: clamp(12px, 1.3vw, 22px); list-style: none; margin: 0; padding: 0; }
.topbar__social { display: flex; align-items: center; gap: clamp(12px, 2vw, 34px); margin-left: auto; }
.topbar__flag { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #000; object-fit: cover; }
.topbar__lang, .site-header__lang { display: inline-flex; line-height: 0; }

/* ---------- Testata ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.6vw, 28px);
    min-height: var(--header-h);
    padding-right: clamp(16px, 2.3vw, 40px);
    background: #fff;
}

.site-header__brand {
    position: relative;
    align-self: stretch;
    display: flex;
    align-items: center;
    flex: none;
    width: clamp(170px, 21.6vw, 374px);
    margin-right: clamp(40px, 5vw, 90px);
    padding: 8px 0 8px clamp(12px, 1.85vw, 32px);
    background: var(--green);
}
.site-header__brand::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: calc(100% - 1px);
    width: clamp(44px, 4.6vw, 80px);
    background: var(--green);
    -webkit-mask: var(--shape-right) no-repeat center / 100% 100%;
    mask: var(--shape-right) no-repeat center / 100% 100%;
}
.site-header__brand img { width: clamp(150px, 16.3vw, 282px); }

/* Su desktop il pannello è trasparente al layout: menu, ricerca e CTA si allineano nella testata. */
.site-header__panel { display: contents; }
.site-header__panel-head, .nav-close { display: none; }
.site-header__secondary { display: none; }
.site-header__tools { display: flex; align-items: center; gap: 12px; order: 3; }
.site-header__flag { display: none; }
.site-header__cta { order: 4; }

.main-nav { flex: 1; order: 2; }
.main-nav > ul { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 40px); list-style: none; margin: 0; padding: 0; }
.main-nav li { position: relative; display: flex; align-items: center; gap: 4px; }
.main-nav a {
    display: block;
    padding: 10px 0;
    font-size: clamp(.9375rem, 1.27vw, 1.375rem);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-menu-ancestor > a { border-bottom-color: var(--green); }

.submenu-toggle { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; background: none; }
.submenu-toggle .icon { width: 19px; height: 19px; transition: transform .2s; }

.main-nav .sub-menu {
    position: absolute;
    top: 100%;
    left: -18px;
    z-index: 10;
    min-width: 230px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    background: #fff;
    border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: 0 12px 24px rgb(0 0 0 / 14%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu,
.main-nav li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { padding: 8px 18px; font-size: 1rem; border: 0; }
.main-nav .sub-menu a:hover { color: var(--green); }

.search-toggle {
    display: grid;
    place-items: center;
    width: clamp(38px, 2.66vw, 46px);
    aspect-ratio: 1;
    padding: 0;
    border: 2px solid var(--green);
    border-radius: 50%;
    background: #fff;
    color: var(--green);
}
.search-toggle .icon { width: 56%; height: 56%; }
.search-toggle:hover { background: var(--green); color: #fff; }

.nav-toggle { display: none; padding: 0; border: 0; background: none; color: var(--text); }
.nav-toggle .icon { width: 36px; height: 24px; }
.nav-toggle .icon--close { display: none; width: 26px; height: 26px; }

.site-search { position: absolute; top: 100%; left: 0; right: 0; padding: 18px var(--gutter); background: #fff; box-shadow: 0 12px 24px rgb(0 0 0 / 12%); }
.site-search form { display: flex; gap: 12px; max-width: 760px; margin-inline: auto; }
.site-search input { flex: 1; min-width: 0; padding: 0 20px; border: 1px solid var(--line); border-radius: 50px; }

/* ---------- Hero homepage ---------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    /* Testata + hero + barra destinazioni riempiono esattamente la prima schermata. */
    min-height: max(420px, calc(100vh - var(--adminbar-h) - var(--topbar-h) - var(--header-h) - var(--destbar-h)));
    min-height: max(420px, calc(100svh - var(--adminbar-h) - var(--topbar-h) - var(--header-h) - var(--destbar-h)));
    color: #fff;
    background: #1d2a25;
    overflow: hidden;
}
.admin-bar { --adminbar-h: 32px; }
@media (max-width: 782px) { .admin-bar { --adminbar-h: 46px; } }
.hero__slide {
    position: absolute;
    inset: 0;
    background: center / cover no-repeat;
    opacity: 0;
    transition: opacity .8s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: rgb(15 15 15 / 45%); }
.hero::after {
    content: "";
    position: absolute;
    right: 0; bottom: -1px;
    z-index: 2;
    width: clamp(70px, 7.4vw, 128px);
    height: clamp(32px, 3.36vw, 58px);
    background: var(--green);
    -webkit-mask: var(--shape-corner) no-repeat center / 100% 100%;
    mask: var(--shape-corner) no-repeat center / 100% 100%;
}
.hero__inner { position: relative; z-index: 2; padding-block: 60px; }
.hero__title {
    max-width: 11.5em;
    font-family: var(--font-title);
    font-size: clamp(2.5rem, 5.15vw, 5.5625rem);
    font-weight: 400;
    line-height: .92;
}
.hero__subtitle { margin-top: clamp(16px, 1.6vw, 28px); font-size: clamp(.8125rem, 1.16vw, 1.25rem); font-weight: 600; text-transform: uppercase; }
.hero__actions { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.5vw, 26px); margin-top: clamp(24px, 3vw, 52px); }
.hero__nav {
    position: absolute;
    top: 50%;
    right: clamp(16px, 5.8vw, 100px);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    transform: translateY(-50%);
}
.hero__nav .round-btn .icon { transform: rotate(90deg); }
.hero__nav [data-hero-prev] .icon { transform: rotate(-90deg); }
.hero__dashes { display: flex; flex-direction: column; gap: 17px; }
.hero__dashes span { width: 3px; height: 31px; background: rgb(255 255 255 / 45%); transition: background-color .3s; }
.hero__dashes span.is-active { background: #fff; }

.dest-bar { background: var(--green); color: #fff; overflow: hidden; }
.dest-bar__list {
    display: flex;
    align-items: center;
    width: max-content;
    height: var(--destbar-h);
    animation: dest-marquee var(--dest-dur, 60s) linear infinite;
}
.dest-bar:hover .dest-bar__list,
.dest-bar:focus-within .dest-bar__list { animation-play-state: paused; }
/* La spaziatura sta nel padding (non in gap) così le due metà sono identiche e il loop non salta. */
.dest-bar li { flex: none; padding-right: clamp(36px, 4vw, 72px); }
@keyframes dest-marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .dest-bar { overflow-x: auto; scrollbar-width: none; }
    .dest-bar::-webkit-scrollbar { display: none; }
    .dest-bar__list { animation: none; }
}
.dest-bar a { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-weight: 600; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.dest-bar .icon { width: 22px; height: 13px; transition: transform .2s; }
.dest-bar a:hover .icon { transform: translateX(4px); }

/* ---------- Sezioni ---------- */

.section { padding-block: clamp(56px, 6.4vw, 110px); }
.section--grey { background: var(--grey-bg); }
.section__head { margin-bottom: clamp(32px, 4vw, 70px); text-align: center; }
.section__title {
    font-family: var(--font-title);
    font-size: clamp(2rem, 3.47vw, 3.75rem);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text);
    text-align: center;
}
.section__title--light { color: #fff; font-size: clamp(2.125rem, 4.46vw, 4.8125rem); }
.section__title--dark { color: var(--text-dark); }
.section__lead {
    max-width: 32em;
    margin: clamp(12px, 1.2vw, 22px) auto 0;
    font-size: clamp(1.0625rem, 2.08vw, 2.25rem);
    line-height: 1.15;
    color: var(--muted);
    text-align: center;
}

/* ---------- Coverflow categorie ---------- */

.section--categorie { overflow: hidden; }
.coverflow { position: relative; --cf-w: clamp(230px, 21.5vw, 372px); }
.coverflow__stage { position: relative; height: calc(var(--cf-w) * 1.65); }
.coverflow__item {
    position: absolute;
    top: 0; left: 50%;
    width: var(--cf-w);
    height: 100%;
    margin-left: calc(var(--cf-w) / -2);
    border-radius: var(--radius);
    overflow: hidden;
    background: #0f0f0f;
    transform: translateX(calc(var(--offset, 0) * var(--cf-w) * .74)) scale(calc(1 - var(--abs, 0) * .1));
    opacity: calc(1 - max(var(--abs, 0) - 2, 0));
    filter: blur(calc(var(--abs, 0) * 1.5px));
    z-index: calc(10 - var(--abs, 0));
    transition: transform .5s ease, filter .5s ease, opacity .5s ease;
    cursor: pointer;
}
.coverflow__item img { width: 100%; height: 100%; object-fit: cover; }
.coverflow__item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgb(15 15 15 / 70%);
    transition: background .5s;
}
.coverflow__item.is-active { cursor: default; border-bottom: 17px solid var(--green); }
.coverflow__item.is-active::before { background: linear-gradient(180deg, rgb(15 15 15 / 0%) 45%, rgb(15 15 15 / 85%) 100%); }
.coverflow__item.is-active::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 55px; height: 22px;
    background: var(--green);
    -webkit-mask: var(--shape-tab) no-repeat center / 100% 100%;
    mask: var(--shape-tab) no-repeat center / 100% 100%;
}
.coverflow__content {
    position: absolute;
    left: 0; right: 0;
    bottom: clamp(24px, 3vw, 52px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 0 16px;
    color: #fff;
    text-align: center;
}
.coverflow__content h3 { font-family: var(--font-title); font-size: clamp(1.25rem, 1.8vw, 1.9375rem); font-weight: 700; line-height: 1.1; }
.coverflow__item:not(.is-active) .btn { visibility: hidden; }
.coverflow__prev, .coverflow__next { position: absolute; top: 50%; z-index: 20; width: 44px; transform: translateY(-50%); }
.coverflow__prev { left: clamp(8px, 4vw, 70px); }
.coverflow__next { right: clamp(8px, 4vw, 70px); }

/* ---------- Card esperienza ---------- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: var(--radius);
    border-bottom: 6px solid var(--green);
    background: #fff;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.card::after {
    content: "";
    position: absolute;
    left: 0; bottom: -1px;
    width: 40px; height: 16px;
    background: var(--green);
    -webkit-mask: var(--shape-tab) no-repeat center / 100% 100%;
    mask: var(--shape-tab) no-repeat center / 100% 100%;
}
.card__media { display: block; aspect-ratio: 325 / 337; background: var(--line); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.05); }
.card__badge {
    position: absolute;
    top: 24px; right: 12px;
    min-width: 121px;
    padding: 8px 14px;
    border-radius: 50px;
    background: var(--green);
    box-shadow: var(--shadow);
    color: #fff;
    font-size: .6875rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}
.card__body { display: flex; flex: 1; flex-direction: column; padding: 20px 17px 30px; }
.card__title { font-size: clamp(1.125rem, 1.27vw, 1.375rem); font-weight: 700; line-height: 1.12; }
.card__title a { text-decoration: none; }
.card__title a:hover { color: var(--green); }
.card__place { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: .6875rem; font-weight: 600; text-transform: uppercase; }
.card__place > span:last-child { margin-left: 2px; }
.card__price { display: flex; align-items: baseline; gap: 6px; margin-top: 10px; font-weight: 600; line-height: 1; }
.card__price .icon { align-self: center; width: 25px; height: 25px; color: var(--green); }
.card__price strong { font-size: 1.5rem; font-weight: 600; }
.card__price span { font-size: .875rem; text-transform: uppercase; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 22px; }
.card__duration { display: flex; align-items: center; gap: 8px; font-size: .6875rem; font-weight: 600; text-transform: uppercase; }
.card__duration .icon { width: 25px; height: 25px; color: var(--green); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: clamp(24px, 3.2vw, 55px) clamp(20px, 3.2vw, 55px); }

/* ---------- Caroselli ---------- */

.carousel { position: relative; }
.carousel__track {
    display: flex;
    gap: clamp(16px, 2.2vw, 38px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-block: 8px 16px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: none; scroll-snap-align: start; }
.carousel__prev, .carousel__next { position: absolute; top: 42%; z-index: 5; }
.carousel__prev { left: clamp(6px, 3.6vw, 63px); }
.carousel__next { right: clamp(6px, 3.6vw, 63px); }
.carousel__dots { display: flex; justify-content: center; gap: 19px; margin-top: clamp(20px, 2.6vw, 44px); }
.carousel__dots button { width: 23px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: var(--line); }
.carousel__dots button.is-active { background: var(--green); }

/* Esperienze in homepage: fascia fotografica dietro la parte alta delle card. */
.section--esperienze { position: relative; padding-top: clamp(40px, 4vw, 70px); }
.section--esperienze::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: clamp(380px, 34vw, 589px);
    background: linear-gradient(rgb(15 15 15 / 55%), rgb(15 15 15 / 55%)), var(--band-image) center / cover no-repeat;
}
.exp-head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: clamp(24px, 2.9vw, 50px); }
.exp-head__logo { width: clamp(160px, 19vw, 330px); }
.exp-head__title { font-family: var(--font-title); font-size: clamp(2rem, 4.46vw, 4.8125rem); font-weight: 600; line-height: 1.05; color: #fff; text-align: right; }
.carousel--cards .carousel__slide { width: calc((100% - 3 * clamp(16px, 2.2vw, 38px)) / 4); min-width: 260px; }
.carousel--cards .carousel__dots { display: none; }

/* Territorio */
.section--territorio { overflow: hidden; }
.carousel--dest .carousel__track { padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); gap: clamp(20px, 2.7vw, 46px); }
.dest-card { width: clamp(270px, 25.4vw, 439px); color: var(--text-dark); text-align: center; text-decoration: none; }
.dest-card__media { position: relative; display: block; aspect-ratio: 439 / 350; border-radius: var(--radius); background: var(--line); box-shadow: var(--shadow); overflow: hidden; }
.dest-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.dest-card:hover img { transform: scale(1.05); }
.dest-card .dot { position: absolute; top: 27px; right: 30px; }
.dest-card__name {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 4px 12px 8px;
    background: var(--green);
    color: #fff;
    font-family: var(--font-title);
    font-size: clamp(1.75rem, 2.55vw, 2.75rem);
    font-weight: 600;
    line-height: 1.05;
}
.dest-card__more { display: block; margin-top: 14px; font-size: clamp(1.125rem, 1.5vw, 1.625rem); font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }

/* ---------- Esperienza personalizzata ---------- */

.section--custom { position: relative; margin-top: clamp(60px, 6.77vw, 117px); padding-bottom: 0; background: var(--green); color: #fff; }
.section--custom::before {
    content: "";
    position: absolute;
    right: 0; bottom: calc(100% - 1px);
    width: clamp(90px, 10.6vw, 183px);
    height: clamp(58px, 6.77vw, 117px);
    background: var(--green);
    -webkit-mask: var(--shape-top-right) no-repeat center / 100% 100%;
    mask: var(--shape-top-right) no-repeat center / 100% 100%;
}
.custom { display: grid; grid-template-columns: minmax(0, 634fr) minmax(0, 666fr); gap: clamp(28px, 5.4vw, 93px); align-items: start; margin-top: clamp(28px, 2.6vw, 46px); }
.custom__media { margin-bottom: clamp(-64px, -4.5vw, -30px); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.custom__media img { width: 100%; aspect-ratio: 634 / 741; object-fit: cover; }
.custom__text { font-size: clamp(1rem, 1.5vw, 1.625rem); line-height: 1.3; }
/* Righe su una griglia comune: icone, testi e frecce allineati in colonna. */
.custom__list { display: grid; grid-template-columns: auto minmax(0, max-content) auto; justify-content: start; gap: clamp(14px, 1.7vw, 30px) clamp(16px, 2.3vw, 40px); margin-top: clamp(24px, 2.8vw, 48px); padding-bottom: clamp(40px, 5vw, 80px); }
.custom__list li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; }
.custom__list a { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; text-decoration: none; }
.custom__list a > .icon { width: 30px; height: 17px; transition: transform .2s; }
.custom__list a:hover > .icon { transform: translateX(6px); }
.custom__icon { display: grid; place-items: center; width: clamp(56px, 4.4vw, 76px); aspect-ratio: 1; flex: none; border: 5px solid #fff; border-radius: 50%; background: var(--green); }
.custom__icon .icon { width: 46%; height: 46%; }
.custom__icon .icon--trees { width: 72%; height: 72%; }
.custom__label { font-family: var(--font-title); font-size: clamp(1.5rem, 2.55vw, 2.75rem); line-height: 1; }

/* ---------- Photogallery ---------- */

.section--gallery { margin-top: clamp(30px, 4vw, 64px); background: var(--grey-soft); }
.mosaic {
    display: grid;
    grid-template-columns: 259fr 259fr 316fr 259fr 259fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 12px 11px;
    aspect-ratio: 1396 / 531;
    margin-top: clamp(28px, 3.1vw, 54px);
}
.mosaic__item { border-radius: var(--radius); overflow: hidden; background: var(--line); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__item--1 { grid-area: 2 / 1 / 4 / 2; }
.mosaic__item--2 { grid-area: 1 / 2 / 3 / 3; }
.mosaic__item--3 { grid-area: 3 / 2 / 5 / 3; }
.mosaic__item--4 { grid-area: 1 / 3 / 5 / 4; }
.mosaic__item--5 { grid-area: 1 / 4 / 3 / 5; }
.mosaic__item--6 { grid-area: 3 / 4 / 5 / 5; }
.mosaic__item--7 { grid-area: 2 / 5 / 4 / 6; }

/* ---------- Testata pagine interne ---------- */

.page-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(280px, 24.5vw, 423px);
    background: #1d2a25 center / cover no-repeat;
    color: #fff;
    text-align: center;
}
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(15 15 15 / 25%) 0%, rgb(15 15 15 / 60%) 100%); }
.page-hero::after {
    content: "";
    position: absolute;
    right: 0; bottom: -1px;
    width: clamp(70px, 7.4vw, 128px);
    height: clamp(32px, 3.36vw, 58px);
    background: var(--green);
    -webkit-mask: var(--shape-corner) no-repeat center / 100% 100%;
    mask: var(--shape-corner) no-repeat center / 100% 100%;
}
.page-hero__inner { position: relative; padding-block: 40px; }
.page-hero__title { max-width: 12em; margin-inline: auto; font-family: var(--font-title); font-size: clamp(2rem, 4.46vw, 4.8125rem); font-weight: 600; line-height: 1; }
.breadcrumb { margin-top: clamp(12px, 1.4vw, 24px); font-size: clamp(.75rem, .98vw, 1.0625rem); font-weight: 700; text-transform: uppercase; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Archivio e filtri ---------- */

/* Introduzione delle destinazioni: testo e immagine sotto la testata. */
.section--intro { padding-bottom: 0; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5.4vw, 93px); align-items: center; }
.intro--text { --container: 900px; grid-template-columns: 1fr; }
.intro__text { margin-top: 0; }
.intro__media { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.intro__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.section--listing { padding-top: clamp(40px, 4.4vw, 76px); }
.filters { margin-block: clamp(20px, 2.3vw, 40px) clamp(28px, 3.2vw, 56px); border: 1px solid var(--orange); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.filters__toggle { display: none; }
.filters__fields { display: flex; align-items: center; min-height: 68px; padding: 10px 14px 10px 0; }
.filters__field { position: relative; display: flex; align-items: center; flex: 1 1 0; gap: 12px; min-width: 0; padding: 0 20px 0 32px; border-right: 1px solid var(--text); }
.filters__field > .icon:first-child { width: 24px; height: 24px; color: var(--orange); }
.filters__field > .icon--chevron { position: absolute; right: 18px; width: 20px; height: 20px; pointer-events: none; }
.filters__field select {
    flex: 1;
    min-width: 0;
    height: 36px;
    padding: 0 30px 0 0;
    border: 0;
    background: none;
    font-weight: 600;
    text-transform: uppercase;
    appearance: none;
    cursor: pointer;
    text-overflow: ellipsis;
}
.filters__field:has(select[name=persone]) { flex-grow: 1.6; }
.filters__actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex: 0 1 240px; padding-left: 20px; }
.filters__reset { font-size: .875rem; font-weight: 600; text-transform: uppercase; }
.filters__submit {
    min-width: 121px;
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--radius);
    background: var(--orange);
    box-shadow: var(--shadow);
    color: #fff;
    font-size: 1.1875rem;
    font-weight: 600;
    text-transform: uppercase;
}
.filters__submit:hover { background: #d9471f; }

.empty-state { padding-block: 40px; font-size: 1.125rem; text-align: center; }
.empty-state .btn { margin-top: 24px; }

.pagination { margin-top: clamp(32px, 4vw, 64px); }
.pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--text); border-radius: 50px; font-weight: 600; text-decoration: none; }
.pagination .page-numbers.current, .pagination a.page-numbers:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ---------- Scheda esperienza ---------- */

.esperienza { --container: 1324px; padding-block: clamp(40px, 4.9vw, 85px) clamp(56px, 7vw, 120px); }
.esperienza__photos { display: grid; grid-template-columns: minmax(0, 919fr) minmax(0, 381fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.5vw, 26px) clamp(12px, 1.33vw, 23px); aspect-ratio: 1323 / 561; }
.esperienza__photos img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border-radius: var(--radius); }
.esperienza__photos img:first-child { grid-row: 1 / -1; }
.esperienza__photos--1 { grid-template-columns: 1fr; }
.esperienza__photos--2 img:last-child { grid-row: 1 / -1; }

.esperienza__layout { display: grid; grid-template-columns: minmax(0, 887fr) minmax(280px, 381fr); gap: clamp(28px, 3.4vw, 59px); align-items: start; margin-top: clamp(32px, 4vw, 69px); }
.esperienza__heading { font-family: var(--font-title); font-size: clamp(1.75rem, 2.84vw, 3.0625rem); font-weight: 600; line-height: 1.1; }
.esperienza__subheading { margin-block: clamp(28px, 3vw, 52px) clamp(14px, 1.3vw, 22px); font-family: var(--font-title); font-size: clamp(1.5rem, 1.97vw, 2.125rem); font-weight: 600; color: var(--orange); }

.entry-content { margin-top: clamp(12px, 1.2vw, 20px); font-size: clamp(1rem, 1.1vw, 1.1875rem); line-height: 1.75; }
.entry-content > * + * { margin-top: 1em; }
.entry-content h2, .entry-content h3 { font-family: var(--font-title); line-height: 1.15; color: var(--text-dark); }
.entry-content a { color: var(--green); }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content img { border-radius: var(--radius); }

.accordion { display: grid; gap: clamp(14px, 2vw, 34px); }
.accordion__item { border: 1px solid #c9c9c9; border-radius: var(--radius); background: #fbfbfb; }
.accordion__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 74px;
    padding: 14px 32px 14px 24px;
    font-size: clamp(.9375rem, .98vw, 1.0625rem);
    font-weight: 600;
    text-transform: uppercase;
    list-style: none;
    cursor: pointer;
}
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__icon { display: grid; place-items: center; width: 36px; aspect-ratio: 1; flex: none; border-radius: 50%; background: var(--orange); color: #fff; }
.accordion__icon .icon { width: 24px; height: 24px; }
.accordion__icon .icon--minus, .accordion__item[open] .icon--plus { display: none; }
.accordion__item[open] .icon--minus { display: block; }
.accordion__body { padding: 0 clamp(24px, 5vw, 88px) 24px 24px; font-size: clamp(1rem, 1.1vw, 1.1875rem); line-height: 1.6; }
.accordion__body p + p { margin-top: .8em; }

.info-box { position: sticky; top: calc(var(--header-h) + 20px); padding: 8px 24px 30px; border: 1px solid #c9c9c9; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.info-box__title { font-family: var(--font-title); font-size: 2rem; font-weight: 600; color: var(--orange); }
.info-box__list { margin-block: 14px 26px; }
.info-box__list li { display: flex; align-items: center; gap: 16px; padding: 10px 0; font-size: 1.125rem; font-weight: 600; text-transform: uppercase; }
.info-box__list li + li { border-top: 1px solid #1a1a1a; }
.info-box__list .icon { width: 30px; height: 30px; color: var(--orange); }

/* ---------- Wedding ---------- */

.wedding-intro .entry-content { margin-top: 0; font-size: clamp(1.0625rem, 1.27vw, 1.375rem); }
.wedding-intro .entry-content h2 { font-size: clamp(1.75rem, 2.84vw, 3.0625rem); font-weight: 600; text-align: center; }
.wedding-intro .entry-content h3 { margin-top: 1.6em; font-size: clamp(1.375rem, 1.97vw, 2.125rem); font-weight: 600; color: var(--green); }
.wedding-cta { text-align: center; }
.wedding-cta .btn { margin-top: clamp(24px, 2.6vw, 44px); }
.wedding-back { margin-top: clamp(32px, 4vw, 64px); text-align: center; }
.info-box__address { margin: -10px 0 26px; padding-top: 12px; border-top: 1px solid #1a1a1a; line-height: 1.5; }
.info-box__address a { color: var(--green); font-weight: 600; }

/* ---------- Modale e form ---------- */

.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgb(0 0 0 / 45%); overflow-y: auto; }
.modal[hidden] { display: none; }
.modal__dialog { position: relative; width: min(100%, 927px); padding: clamp(32px, 3.4vw, 58px) clamp(20px, 5.7vw, 99px) clamp(32px, 3.4vw, 58px); border-radius: 20px; background: #f5f5f5; box-shadow: var(--shadow); }
.modal__close { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%; background: none; }
.modal__close .icon { width: 22px; height: 22px; }
.modal__close:hover { background: #e4e4e4; }
.modal__title { margin-bottom: clamp(20px, 2.3vw, 40px); font-family: var(--font-title); font-size: clamp(1.75rem, 2.72vw, 2.9375rem); font-weight: 600; line-height: 1.1; color: var(--orange); text-align: center; }

.request-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.6vw, 46px) clamp(16px, 2.5vw, 43px); }
.request-form__full { grid-column: 1 / -1; }
.request-form input:not([type=checkbox]), .request-form textarea {
    width: 100%;
    min-height: 60px;
    padding: 12px 19px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: var(--shadow);
    font-family: var(--font-title);
    font-size: 1.5rem;
    font-weight: 600;
    color: #000;
}
.request-form textarea { display: block; resize: vertical; }
.request-form ::placeholder { color: #7a7a7a; opacity: 1; }
.request-form__privacy { display: flex; align-items: flex-start; gap: 11px; margin-top: 18px; color: #000; font-size: clamp(.9375rem, 1.16vw, 1.25rem); }
.request-form__privacy input { width: 16px; height: 16px; margin-top: .4em; flex: none; accent-color: var(--orange); }
.request-form__submit { width: auto; min-width: 315px; margin-top: 26px; border-radius: var(--radius); }

.request-box { scroll-margin-top: calc(var(--header-h) + 20px); }
.request-form__choices { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; padding: 0; border: 0; font-size: clamp(.9375rem, 1.16vw, 1.25rem); color: #000; }
.request-form__choices legend { width: 100%; margin-bottom: 12px; font-weight: 600; color: var(--text-dark); }
.request-form__choices label { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.request-form__choices input { width: 18px; height: 18px; margin: 0; accent-color: var(--green); }
.form-message { min-height: 1.4em; margin-top: 12px; font-size: .9375rem; font-weight: 600; }
.form-message.is-error { color: #c62828; }
.form-message.is-success { color: var(--green); }
.site-footer .form-message { color: #fff; font-size: .8125rem; }
form.is-loading button[type=submit] { opacity: .6; pointer-events: none; }

/* ---------- Blog e pagine ---------- */

.card__date { margin-bottom: 8px; font-size: .6875rem; font-weight: 600; text-transform: uppercase; color: var(--muted); }
.card__excerpt { margin-top: 10px; font-size: .875rem; line-height: 1.5; }
.card--articolo .card__media { aspect-ratio: 325 / 240; }

.cat-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-block: clamp(20px, 2.3vw, 40px) clamp(28px, 3.2vw, 56px); }
.cat-nav__link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 22px;
    border: 1px solid var(--text);
    border-radius: 50px;
    background: #fff;
    font-size: .875rem;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}
.cat-nav__link:hover, .cat-nav__link.is-active { background: var(--green); border-color: var(--green); color: #fff; }

.articolo { --container: 1324px; padding-block: clamp(40px, 4.9vw, 85px) clamp(56px, 7vw, 120px); }
.articolo__layout { display: grid; grid-template-columns: minmax(0, 887fr) minmax(280px, 381fr); gap: clamp(28px, 3.4vw, 59px); align-items: start; }
.articolo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; margin-bottom: clamp(18px, 1.8vw, 30px); font-size: .8125rem; font-weight: 600; text-transform: uppercase; }
.articolo__badge { padding: 8px 18px; border-radius: 50px; background: var(--green); box-shadow: var(--shadow); color: #fff; font-size: .6875rem; text-decoration: none; }
.articolo__time { display: flex; align-items: center; gap: 8px; }
.articolo__time .icon { width: 22px; height: 22px; color: var(--green); }
.articolo__photo img { width: 100%; aspect-ratio: 887 / 520; object-fit: cover; border-radius: var(--radius); }
.articolo__photo + .entry-content { margin-top: clamp(24px, 2.6vw, 44px); }
.articolo .entry-content h2 { margin-top: 1.5em; font-size: clamp(1.5rem, 1.97vw, 2.125rem); font-weight: 600; color: var(--green); }
.articolo .entry-content h3 { margin-top: 1.4em; font-size: clamp(1.25rem, 1.5vw, 1.625rem); font-weight: 600; }
.articolo .entry-content blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--green); font-family: var(--font-title); font-size: 1.25em; font-weight: 600; line-height: 1.4; color: var(--text-dark); }
.articolo .entry-content figcaption { margin-top: 8px; font-size: .8125rem; color: var(--muted); text-align: center; }

.articolo__tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 2.6vw, 44px); }
.articolo__tags a { display: block; padding: 6px 14px; border-radius: 50px; background: var(--grey-bg); font-size: .8125rem; font-weight: 600; text-decoration: none; }
.articolo__tags a:hover { background: var(--green); color: #fff; }

.articolo__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(32px, 3.6vw, 62px); padding-top: clamp(20px, 2vw, 34px); border-top: 1px solid #c9c9c9; }
.articolo__nav-link { display: grid; gap: 6px; align-content: start; text-decoration: none; }
.articolo__nav-link--next { grid-column: 2; justify-items: end; text-align: right; }
.articolo__nav-link span { display: flex; align-items: center; gap: 10px; font-size: .6875rem; font-weight: 600; text-transform: uppercase; color: var(--green); }

/* Blog tutto in verde: titolo del box laterale e bottone. */
.articolo .info-box__title { color: var(--green); }
.articolo .btn { border-color: var(--green); background: var(--green); }
.articolo .btn:hover { border-color: #0c4d43; background: #0c4d43; }
.articolo__nav-link .icon { width: 19px; height: 11px; }
.articolo__nav-link--prev .icon { transform: rotate(180deg); }
.articolo__nav-link strong { font-size: 1.0625rem; line-height: 1.25; }
.articolo__nav-link:hover strong { color: var(--green); }

.articolo { padding-bottom: 0; }
.section--related .section__head { padding-top: clamp(40px, 4.4vw, 76px); border-top: 1px solid #c9c9c9; }
.section--related .section__title { font-size: clamp(1.75rem, 2.84vw, 3.0625rem); }

.articolo__side .info-box__title:not(:first-child) { margin-top: 22px; }
.articolo__side .btn { margin-top: 26px; }
.side-list { margin-top: 6px; }
.side-list li + li { border-top: 1px solid var(--line); }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 11px 0; font-weight: 600; text-transform: uppercase; text-decoration: none; }
.side-list a:hover { color: var(--green); }
.side-list small { margin-left: auto; font-size: .8125rem; color: var(--muted); }
.side-posts { display: grid; gap: 14px; margin-top: 12px; }
.side-posts a { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.side-posts img { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: var(--radius); }
.side-posts span { display: grid; gap: 4px; }
.side-posts strong { font-size: .9375rem; line-height: 1.25; }
.side-posts a:hover strong { color: var(--green); }
.side-posts small { font-size: .6875rem; font-weight: 600; text-transform: uppercase; color: var(--muted); }

.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: clamp(24px, 3vw, 48px); }
.post-teaser { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.post-teaser__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-teaser__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
.post-teaser__body h2 { font-size: 1.375rem; line-height: 1.2; }
.post-teaser__body h2 a { text-decoration: none; }
.post-teaser__body .btn { margin-top: auto; }

/* ---------- Footer ---------- */

.site-footer { position: relative; margin-top: clamp(60px, 6.77vw, 117px); background: var(--green); color: #fff; }
.site-footer::before {
    content: "";
    position: absolute;
    left: 0; bottom: calc(100% - 1px);
    width: clamp(110px, 16.6vw, 287px);
    height: clamp(52px, 6.77vw, 117px);
    background: var(--green);
    -webkit-mask: var(--shape-top-left) no-repeat center / 100% 100%;
    mask: var(--shape-top-left) no-repeat center / 100% 100%;
}
.section--gallery + .site-footer, main:has(> .section--gallery:last-child) + .site-footer { margin-top: 0; }
main:has(> .section--gallery:last-child) { background: var(--grey-soft); }
main:has(> .section--gallery:last-child) > .section--gallery { padding-bottom: clamp(100px, 12vw, 200px); }

.site-footer__main { --container: 1230px; display: grid; grid-template-columns: 1.15fr 1.25fr 1.2fr 1fr; padding-block: clamp(40px, 5vw, 86px) clamp(32px, 4vw, 68px); }
.site-footer__col { padding: 4px clamp(16px, 1.9vw, 33px); border-left: 1px solid #fff; }
.site-footer__col--brand { padding-left: 0; border-left: 0; }
.site-footer__logo { width: 227px; }
.site-footer__claim { max-width: 13em; margin: 6px 0 22px 24px; font-size: 1.0625rem; font-weight: 600; line-height: 1.5; text-transform: capitalize; }
.site-footer__col--brand .btn { margin-left: 24px; }
.site-footer__title { margin-bottom: 14px; font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.site-footer__menu li + li { margin-top: 7px; }
.site-footer__menu a { font-size: 1.0625rem; font-weight: 600; text-transform: capitalize; text-underline-offset: 3px; }
.site-footer__menu a:hover { text-decoration: none; }

.newsletter { display: grid; gap: 11px; max-width: 220px; }
.newsletter input[type=text], .newsletter input[type=email] { width: 100%; height: 41px; padding: 0 18px; border: 0; border-radius: 50px; background: rgb(255 255 255 / 45%); color: #fff; font-size: .875rem; }
.newsletter ::placeholder { color: rgb(255 255 255 / 85%); opacity: 1; }
.newsletter__privacy { display: flex; align-items: center; gap: 8px; font-size: .8125rem; }
.newsletter__privacy input { width: 12px; height: 12px; margin: 0; accent-color: var(--orange); }
.newsletter .btn { width: 100%; min-width: 0; margin-top: 6px; }

.site-footer__support { border-block: 1px solid #fff; }
.site-footer__support-inner { --container: 1200px; display: flex; justify-content: center; padding-block: 32px 22px; }
.site-footer__comuni { display: grid; grid-template-columns: repeat(6, minmax(0, 120px)); gap: 16px clamp(12px, 3vw, 48px); justify-content: center; }
.site-footer__comuni li { display: grid; align-content: start; justify-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; line-height: 1.25; text-align: center; }
.site-footer__comuni img { width: 51px; height: 51px; }
.site-footer__copy { padding: 22px var(--gutter); font-family: var(--font-small); text-align: center; }

/* ---------- Tablet e mobile ---------- */

@media (max-width: 1180px) {
    :root { --topbar-h: 0px; }
    .topbar { display: none; }

    .site-header { padding-right: 0; gap: 0; }
    .site-header { height: var(--header-h); }
    .site-header__brand { width: clamp(150px, 46vw, 220px); margin-right: auto; padding-block: 4px; }
    .site-header__brand img { width: clamp(130px, 36vw, 180px); }
    .site-header__brand::after { width: 46px; }
    .site-header__tools { gap: 14px; padding-right: 0; }
    .site-header__flag { display: block; width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
    .nav-toggle { display: grid; place-items: center; align-self: stretch; width: 76px; height: var(--header-h); margin-left: 6px; border-left: 1px solid var(--line); }
    .nav-open .nav-toggle .icon--menu { display: none; }
    .nav-open .nav-toggle .icon--close { display: block; }

    .site-header__panel {
        position: fixed;
        inset: var(--adminbar-h) 0 0 0;
        z-index: 60;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 0 var(--gutter) 40px;
        background: #fff;
        overflow-y: auto;
        transform: translateX(100%);
        visibility: hidden;
        transition: transform .3s ease, visibility .3s;
    }
    /* In apertura è subito visibile (così la X può ricevere il focus); scorre solo il transform. */
    .nav-open .site-header__panel { transform: none; visibility: visible; transition: transform .3s ease; }
    .nav-open { overflow: hidden; }

    /* Menu a tutto schermo: in cima ripete logo e testata, con la X per chiudere. */
    .site-header__panel-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: stretch; flex: none; height: var(--header-h); margin-inline: calc(var(--gutter) * -1); background: #fff; border-bottom: 1px solid var(--line); }
    .nav-close { display: grid; place-items: center; width: 76px; margin-left: auto; padding: 0; border: 0; border-left: 1px solid var(--line); background: none; color: var(--text); }
    .nav-close .icon { width: 26px; height: 26px; }

    .main-nav { flex: none; }
    .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav li { flex-wrap: wrap; justify-content: space-between; border-bottom: 1px solid var(--line); }
    .main-nav a { padding: 14px 0; font-size: 1.25rem; border: 0; white-space: normal; }
    .submenu-toggle { width: 44px; height: 44px; }
    .main-nav li.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
    .main-nav .sub-menu { position: static; display: none; width: 100%; min-width: 0; padding: 0 0 10px 14px; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
    .main-nav li.is-open > .sub-menu { display: block; }
    .main-nav .sub-menu li { border: 0; }
    .main-nav .sub-menu a { padding: 8px 0; }

    .site-header__secondary { display: block; }
    .site-header__secondary ul { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; margin: 0; padding: 0; font-size: .8125rem; font-weight: 600; text-transform: uppercase; }
    .site-header__secondary a { text-decoration: none; }
    .site-header__cta { align-self: flex-start; }

    .site-footer__main { grid-template-columns: 1fr 1fr; gap: 36px 0; }
    .site-footer__col:nth-child(3) { padding-left: 0; border-left: 0; }
}

@media (max-width: 900px) {
    .custom { grid-template-columns: 1fr; }
    .custom__media { order: 2; max-width: 520px; margin-inline: auto; }
    .custom__body { order: 1; }
    .custom__list { padding-bottom: 0; }

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

    .esperienza__layout { grid-template-columns: 1fr; }
    .info-box { position: static; order: -1; }
    .articolo__layout { grid-template-columns: 1fr; }
    .articolo__side { order: 0; }

    .filters__toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 68px;
        padding: 10px 12px 10px 34px;
        border: 0;
        background: none;
        font-size: 1.0625rem;
        font-weight: 600;
        text-transform: uppercase;
    }
    .filters__toggle-icon { display: grid; place-items: center; width: 48px; aspect-ratio: 1; border-radius: var(--radius); background: var(--orange); box-shadow: var(--shadow); color: #fff; }
    .filters__toggle-icon .icon { width: 30px; height: 30px; }
    .filters__fields { display: none; flex-direction: column; align-items: stretch; padding: 0 16px 16px; }
    .filters.is-open .filters__fields { display: flex; }
    .filters__field { flex: none; min-height: 52px; padding: 0 0 0 16px; border-right: 0; border-top: 1px solid var(--line); }
    .filters__field > .icon--chevron { right: 6px; }
    .filters__actions { flex: none; justify-content: space-between; padding: 14px 0 0; }
}

@media (max-width: 700px) {
    .hero__title { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1; }
    .hero__actions { gap: 10px; }
    .hero__actions .btn { min-height: 42px; padding: 0 12px; gap: 8px; font-size: .6875rem; }
    .hero__actions .btn .icon { width: 18px; }
    .hero__nav { top: auto; bottom: 70px; right: 50%; flex-direction: row; gap: 16px; transform: translateX(50%); }
    .hero__nav .round-btn .icon { transform: none; }
    .hero__nav [data-hero-prev] .icon { transform: rotate(180deg); }
    .hero__dashes { flex-direction: row; gap: 6px; }
    .hero__dashes span { width: 20px; height: 3px; }
    .hero__inner { padding-bottom: 140px; }

    .section__lead { font-size: 1.0625rem; line-height: 1.4; }

    .coverflow { --cf-w: min(74vw, 300px); padding-bottom: 76px; }
    .coverflow__item { transform: translateX(calc(var(--offset, 0) * var(--cf-w) * 1.06)) scale(calc(1 - var(--abs, 0) * .06)); }
    .coverflow__prev, .coverflow__next { top: auto; bottom: 0; transform: none; }
    .coverflow__prev { left: calc(50% - 56px); }
    .coverflow__next { right: calc(50% - 56px); }

    .exp-head { flex-direction: column; text-align: center; }
    .exp-head__title { text-align: center; }
    .carousel--cards .carousel__track { scroll-padding-inline: var(--gutter); }
    .carousel--cards .carousel__slide { width: 100%; scroll-snap-align: center; }
    .carousel--cards .round-btn { display: none; }
    .carousel--cards .carousel__dots { display: flex; }

    .dest-card { width: min(72vw, 300px); }
    .carousel--dest .carousel__slide { scroll-snap-align: center; }
    .carousel--dest .carousel__track { padding-inline: 14vw; scroll-padding-inline: 14vw; }

    .mosaic { display: grid; grid-template-columns: 1fr; grid-template-rows: none; gap: 28px; aspect-ratio: auto; }
    .mosaic__item { grid-area: auto !important; aspect-ratio: 321 / 343; }

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

    .cat-nav { flex-wrap: nowrap; justify-content: flex-start; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); overflow-x: auto; scrollbar-width: none; }
    .cat-nav::-webkit-scrollbar { display: none; }
    .articolo { padding-top: 32px; }
    .articolo__nav { grid-template-columns: 1fr; }
    .articolo__nav-link--next { grid-column: auto; }

    .esperienza__photos { display: none; }
    .esperienza { padding-top: 40px; }
    .accordion__item summary { padding: 16px 20px; }
    .accordion__body { padding: 0 20px 20px; }

    .request-form__grid { grid-template-columns: 1fr; }
    .request-form input:not([type=checkbox]), .request-form textarea { min-height: 52px; font-size: 1.125rem; }
    .request-form__submit { width: 100%; min-width: 0; }

    .site-footer__main { grid-template-columns: 1fr; gap: 34px; }
    .site-footer__col, .site-footer__col:nth-child(3) { padding: 0 0 0 24px; border: 0; }
    .site-footer__col--brand { padding-left: 0; }
    .site-footer__comuni { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
