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

/* =========================================================
   01. VARIABILI DEL TEMA
   ========================================================= */
:root {
    --ink: #49352d;
    --green: #688f88;
    --cream: #f8f5ee;
    --sand: #e9dfcf;
    --soft: #dce8e4;
    --max-width: 1180px;
    --shadow: 0 10px 30px rgba(0,0,0,.20);
}

/* =========================================================
   02. BASE
   ========================================================= */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--cream);
    font-family: Montserrat, Arial, sans-serif;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin: auto;
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 12px;
    top: 12px;
    background: #fff;
    padding: 8px;
    z-index: 99;
}

/* =========================================================
   03. HEADER E NAVIGAZIONE
   ========================================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(248,245,238,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #ddd;
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Cormorant Garamond", serif;
    font-weight: 700;
    font-size: 22px;
    line-height: .85;
}

.brand img {
    max-height: 58px;
    width: auto;
}

.brand-mark {
    width: 46px;
    height: 46px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    display: grid;
    place-items: center;
}

.menu {
    display: flex;
    gap: 24px;
}

.menu a {
    font-size: 14px;
    font-weight: 600;
}

.menu a:hover,
.menu a[aria-current="page"] {
    color: var(--green);
}

.menu-toggle {
    display: none;
    border: 0;
    background: none;
    font-size: 30px;
}

/* =========================================================
   04. PULSANTI
   ========================================================= */
.btn {
    display: inline-flex;
    background: var(--green);
    color: #fff;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
}

.text-link {
    font-weight: 700;
    color: var(--green);
}

/* =========================================================
   05. HERO HOMEPAGE
   Titolo su una sola riga su desktop.
   ========================================================= */
.hero {
    min-height: 650px;
    display: grid;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(90deg,rgba(32,29,23,.7),rgba(32,29,23,.15)),
        linear-gradient(135deg,#466358,#b5c5a8);
    background-size: cover;
    background-position: center;
}

.hero-inner {
    max-width: 1000px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .25em;
    font-size: 12px;
    font-weight: 600;
}

.hero h1,
.page-hero h1,
h2 {
    font-family: "Cormorant Garamond", serif;
}

.hero h1 {
    font-size: clamp(54px,8vw,94px);
    line-height: .9;
    margin: 18px 0;
    white-space: nowrap;
}

.lead {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(24px,3vw,38px);
    line-height: 1.15;
}

/* =========================================================
   06. FASCIA CARATTERISTICHE
   ========================================================= */
.feature-strip,
.alt {
    background: #fff;
}

.features {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    padding: 28px 0;
}

.feature {
    display: flex;
    gap: 13px;
    padding: 0 24px;
    border-right: 1px solid #ddd;
}

.feature:last-child { border: 0; }

.feature strong,
.feature small {
    display: block;
}

.icon { font-size: 30px; }

/* =========================================================
   07. SEZIONI GENERALI
   ========================================================= */
.section {
    padding: 60px 0;
}

.soft {
    background: linear-gradient(115deg,var(--soft),var(--cream),var(--sand));
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.split img,
.prose img {
    box-shadow: var(--shadow);
}

h2 {
    font-size: clamp(40px,5vw,60px);
    line-height: 1;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px;
}

.prose {
    max-width: 1100px;
    margin: 0 auto;
}

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

.card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.card img {
    aspect-ratio: 16/10;
    object-fit: cover;
    width: 100%;
}

.card-body { padding: 22px; }

.card h3 {
    font: 600 29px "Cormorant Garamond", serif;
    margin: 0;
}

/* =========================================================
   09. HERO PAGINE INTERNE
   ========================================================= */
.page-hero {
    padding: 28px 0 22px;
    background: linear-gradient(120deg,var(--soft),var(--cream),var(--sand));
    text-align: center;
}

.page-hero h1 {
    font-size: clamp(52px,7vw,82px);
    line-height: 1;
    margin: 10px;
}

.page-hero p { margin: 4px 0 0; }

.page-hero .eyebrow { font-size: 12px; }

.page-hero-image {
    max-width: 1200px;
    margin: 0 auto 40px;
}

.page-hero-image img {
    width: 100%;
    height: 550px;
    object-fit: cover;
}

/* =========================================================
   10. GALLERIA
   ========================================================= */
.gallery {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
}

.gallery img {
    aspect-ratio: 1;
    object-fit: cover;
    width: 100%;
}

/* =========================================================
   11. IMMAGINI NEL TESTO
   ========================================================= */
.left {
    float: left;
    width: 350px;
    margin: 0 50px 25px 0;
}

.right {
    float: right;
    width: 350px;
    margin: 0 0 25px 50px;
}

.clear {
    clear: both;
}

.left,
.right,
.img-text img,
.foto img {
    box-shadow: var(--shadow);
}

.img-text {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.img-text.reverse {
    flex-direction: row-reverse;
}

.img-text .foto {
    flex: 0 0 380px;
    position: relative;
}

.img-text .foto img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    position: static;
}

.img-text .testo {
    max-width: none;
    flex: 1;
}

.img-text h2 {
    font-size: 3rem;
    margin-bottom: 25px;
}

/* =========================================================
   12. FOTO CON BORDO STRAPPATO
   ========================================================= */
.strappata {
    clip-path: polygon(
        0% 2%,4% 0%,9% 1.5%,14% .3%,20% 2%,26% .5%,31% 1.8%,37% 0%,43% 1.6%,
        49% .4%,55% 2%,61% .2%,67% 1.7%,73% .5%,79% 2%,85% .3%,91% 1.8%,96% .4%,100% 2%,
        98.5% 8%,100% 15%,98.8% 23%,100% 31%,98.4% 39%,100% 47%,98.7% 55%,100% 63%,
        98.5% 71%,100% 79%,98.6% 87%,100% 94%,
        100% 98%,95% 100%,89% 98.4%,83% 100%,77% 98.2%,71% 99.8%,65% 98.5%,59% 100%,
        53% 98.3%,47% 99.7%,41% 98.4%,35% 100%,29% 98.2%,23% 99.8%,17% 98.5%,11% 100%,5% 98.3%,0% 99%,
        1.4% 92%,0% 85%,1.2% 77%,0% 69%,1.5% 61%,0% 53%,1.3% 45%,0% 37%,
        1.6% 29%,0% 21%,1.2% 13%,0% 6%
    );
    box-shadow: none;
}

.img-text .foto:has(.strappata) {
    filter: drop-shadow(0 8px 14px rgba(0,0,0,.35));
}

/* =========================================================
   13. FOTO CON EFFETTO CARTA
   ========================================================= */
.carta {
    padding: 14px;
    background: #fdfbf6;
    clip-path: polygon(
        0% 3%,3% .8%,6% 2.4%,10% .2%,13% 1.9%,17% .6%,21% 2.8%,25% .4%,29% 2%,
        33% .1%,37% 2.5%,41% .9%,45% 2.2%,49% .3%,53% 2.7%,57% .6%,61% 2.1%,65% .2%,
        69% 2.6%,73% .8%,77% 2.3%,81% .1%,85% 2.4%,89% .7%,93% 2.2%,97% .3%,100% 2.5%,
        98.2% 6%,99.8% 10%,97.9% 15%,99.6% 20%,98.1% 25%,100% 30%,97.8% 35%,99.7% 40%,
        98.3% 45%,100% 50%,97.9% 55%,99.5% 60%,98% 65%,100% 70%,98.2% 75%,99.8% 80%,
        97.8% 85%,99.6% 90%,98.4% 95%,
        100% 97.5%,96% 99.8%,92% 97.6%,88% 99.5%,84% 97.3%,80% 99.9%,76% 97.8%,72% 99.4%,
        68% 97.2%,64% 99.7%,60% 97.9%,56% 99.3%,52% 97.4%,48% 99.8%,44% 97.6%,40% 99.5%,
        36% 97.3%,32% 99.9%,28% 97.7%,24% 99.4%,20% 97.2%,16% 99.6%,12% 97.8%,8% 99.5%,
        4% 97.4%,0% 99%,
        1.8% 94%,.2% 89%,2% 84%,.4% 79%,2.2% 74%,0% 69%,1.9% 64%,.3% 59%,2.1% 54%,
        0% 49%,1.7% 44%,.4% 39%,2.2% 34%,.1% 29%,1.9% 24%,.3% 19%,2% 14%,0% 9%,1.6% 5%
    );
    box-shadow: none;
}

.carta.right { transform: rotate(1.2deg); }
.carta.left  { transform: rotate(-1.2deg); }

p:has(> img.carta),
.img-text .foto:has(.carta) {
    filter: drop-shadow(0 6px 10px rgba(0,0,0,.3));
}

/* =========================================================
   14. CONTATTI
   ========================================================= */
.contact-layout {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 60px;
    align-items: start;
}

.contact-info h2 { margin-top: 0; }

.contact-list {
    list-style: none;
    padding: 0;
    margin: 30px 0 0;
    display: grid;
    gap: 20px;
}

.contact-list li {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.contact-list .ci {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 50%;
    background: var(--soft);
    display: grid;
    place-items: center;
    font-size: 18px;
}

.contact-list a {
    color: var(--green);
    font-weight: 600;
}

.contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(73,53,45,.08);
}

.contact-card h2 {
    margin: 0 0 24px;
    font-size: 42px;
}

.contact-card form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.contact-card .form-field { margin: 0; }

.contact-card .form-field:has(select),
.contact-card .form-field:has(textarea),
.contact-card .buttons,
.contact-card .notices,
.contact-card .form-errors {
    grid-column: 1/-1;
}

.contact-card .form-label label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .03em;
    margin-bottom: 6px;
}

.contact-card .required { color: var(--green); }

.contact-card input:not([type="hidden"]),
.contact-card select,
.contact-card textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1px solid #d8cfc3;
    border-radius: 8px;
    background: var(--cream);
    font: inherit;
    font-size: 15px;
    color: var(--ink);
    transition: border-color .2s,box-shadow .2s,background .2s;
}

.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
    outline: none;
    border-color: var(--green);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(104,143,136,.18);
}

.contact-card textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-card select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2349352d' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    cursor: pointer;
}

.contact-card .buttons { margin-top: 6px; }

.contact-card button[type="submit"],
.contact-card .button {
    background: var(--green);
    color: #fff;
    border: 0;
    border-radius: 999px;
    padding: 14px 34px;
    font: 600 15px Montserrat,Arial,sans-serif;
    cursor: pointer;
    transition: transform .2s,filter .2s;
}

.contact-card button[type="submit"]:hover,
.contact-card .button:hover {
    transform: translateY(-2px);
    filter: brightness(.95);
}

.contact-card .notices {
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--soft);
    border-left: 4px solid var(--green);
}

.contact-card .notices.red,
.contact-card .notices.error {
    background: #fbe9e7;
    border-color: #c0392b;
}

/* =========================================================
   15. INSTAGRAM
   ========================================================= */
.instagram-section {
    padding: 65px 24px 70px;
    background: #f7f3eb;
    text-align: center;
    margin: 0;
}

.instagram-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.instagram-section .eyebrow {
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.instagram-section h2 {
    margin: 0 0 18px;
    color: #49352d;
}

.instagram-intro {
    max-width: 620px;
    margin: 0 auto 38px;
    line-height: 1.7;
}

.instagram-gallery {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin: 0 auto 35px;
}

.instagram-photo {
    display: block;
    overflow: hidden;
    border-radius: 3px;
}

.instagram-photo img {
    width: 100%;
    border-radius: 3px;
    aspect-ratio: 1/1;
    object-fit: cover;
    transition: transform .35s ease;
}

.instagram-photo:hover img {
    transform: scale(1.035);
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 24px;
    color: #fff;
    background: #668e84;
    border-radius: 30px;
    transition: background .2s ease,transform .2s ease;
}

.instagram-button:hover {
    color: #fff;
    background: #52776f;
    transform: translateY(-2px);
}

.instagram-button svg {
    display: block;
    flex-shrink: 0;
}

.instagram-handle {
    margin-top: 12px;
    font-size: 13px;
    opacity: .7;
}

/* =========================================================
   16. FOOTER
   ========================================================= */
.footer {
    background: var(--ink);
    color: #fff;
    padding: 45px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 35px;
}

.footer strong {
    display: block;
    margin-bottom: 12px;
}

.footer p { opacity: .85; }

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: inherit;
    text-decoration: none;
    transition: transform .2s ease,opacity .2s ease;
}

.social-link svg { display: block; }

.social-link:hover {
    transform: scale(1.12);
    opacity: .75;
}

/* =========================================================
   17. RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .instagram-gallery { gap: 10px; }
}

@media (max-width: 850px) {
    .menu-toggle { display: block; }
    .desktop-cta { display: none; }

    .menu {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--cream);
        display: none;
        flex-direction: column;
        padding: 25px;
    }

    .menu.open { display: flex; }

    .hero h1 {
        white-space: normal;
    }

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

    .feature {
        border: 0;
        padding: 15px;
    }

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

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

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

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-card { padding: 26px; }

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

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

@media (max-width: 700px) {
    .img-text,
    .img-text.reverse {
        flex-direction: column;
    }

    .img-text .foto {
        flex: none;
        width: 100%;
    }

    .instagram-section {
        padding: 55px 18px 65px;
    }

    .instagram-gallery {
        grid-template-columns: repeat(2,1fr);
        gap: 8px;
        margin-bottom: 30px;
    }

    .instagram-intro {
        margin-bottom: 30px;
    }
}

@media (max-width: 560px) {
    .container {
        width: calc(100% - 28px);
    }

    .hero h1 {
        font-size: 52px;
    }

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

    .section-head {
        display: block;
    }

    .page-hero {
        padding: 22px 0 18px;
    }

    .left,
    .right {
        float: none;
        width: 100%;
        margin: 0 0 25px;
    }

    .page-hero-image img {
        height: auto;
    }
}

/* =========================================================
   15b. FOOTER COMPATTO
   Riduce altezza: padding, interlinea, spazio prima del copyright.
   ========================================================= */
.footer {
    padding: 28px 0 16px;
    font-size: 13px;
    line-height: 1.5;
}

.footer-grid {
    gap: 24px;
    align-items: start;
}

.footer strong {
    margin-bottom: 6px;
}

.footer p {
    margin: 0 0 6px;
}

/* Riga copyright: subito sotto le colonne, con separatore sottile */
.footer-grid + * {
    margin-top: 18px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    font-size: 12px;
    opacity: .75;
}

/* =========================================================
   18. FOOTER SOCIAL
   ========================================================= */

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

.footer-copyright {
    margin-top: 18px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.15);
    text-align: center;
    font-size: 12px;
    opacity: .75;
}

/* =========================================================
   19. FEATURE ICONS
   ========================================================= */

.feature-icon {
    width: 56px;
    height: 56px;
    flex: 0 0 42px;

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

    color: var(--green);
}

.feature-icon svg {
    width: 100px;
    height: 100px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-content {
    min-width: 0;
}

/* =========================================================
   20. STORIA 2.0
   Layout editoriale per la pagina /storia
   ========================================================= */

/* Maggiore respiro al corpo della pagina */
.page-storia .prose > h2 {
    margin: 65px 0 30px;
    color: var(--ink);
    font-size: clamp(38px, 4.5vw, 56px);
    line-height: 1.05;
}

/* Il primo capitolo non necessita dello stesso spazio superiore */
.page-storia .prose > h2:first-child {
    margin-top: 20px;
}

/* Blocchi storico-fotografici */
.prose .img-text {
    gap: 65px;
    margin-bottom: 25px;
    align-items: center;
}

/* Foto leggermente più importanti */
.prose .img-text .foto {
    flex: 0 0 410px;
}

/* Immagine */
.prose .img-text .foto img {
    width: 100%;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 14px 35px rgba(73,53,45,.18);
}

/* Testi storici */
.prose .img-text .testo {
    font-size: 15px;
    line-height: 1.8;
}

.prose .img-text .testo p:first-child {
    margin-top: 0;
}

/* Date e concetti importanti */
.prose .img-text strong {
    color: var(--ink);
    font-weight: 700;
}

/* Separatore molto discreto fra i capitoli */
.prose .clear {
    height: 1px;
    margin: 20px 0 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(104,143,136,.20),
            transparent
        );
}

/* ---------------------------------------------------------
   1359: punto storico chiave
   --------------------------------------------------------- */

.page-storia .prose > h2:nth-of-type(3) {
    color: var(--green);
    position: relative;
}

.page-storia .prose > h2:nth-of-type(3)::before {
    content: "DOCUMENTO STORICO";
    display: block;

    margin-bottom: 10px;

    color: var(--green);

    font-family: Montserrat, Arial, sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
}

/* ---------------------------------------------------------
   Immagine finale della roggia
   --------------------------------------------------------- */

.prose > p > img[src*="09-salto-acqua"] {
    display: block;

    width: min(720px, 100%);
    height: auto;

    margin: 34px auto 20px;

    border-radius: 3px;

    box-shadow:
        0 14px 35px rgba(73,53,45,.18);
}

/* ---------------------------------------------------------
   Fonti
   --------------------------------------------------------- */

.prose hr {
    border: 0;
    border-top: 1px solid rgba(73,53,45,.15);

    margin: 55px 0 20px;
}

.prose small {
    display: block;

    color: rgba(73,53,45,.72);

    font-size: 12px;
    line-height: 1.65;
}

/* =========================================================
   STORIA 2.0 - RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .page-storia .prose > h2 {
        margin-top: 65px;
        margin-bottom: 28px;
    }

    .prose .img-text,
    .prose .img-text.reverse {
        display: flex;
        flex-direction: column;

        gap: 25px;

        margin-bottom: 20px;
    }

    /* Sul mobile mostriamo sempre foto prima, testo dopo */
    .prose .img-text.reverse .foto {
        order: 1;
    }

    .prose .img-text.reverse .testo {
        order: 2;
    }

    .prose .img-text .foto {
        flex: none;
        width: min(520px, 100%);
        margin: 0 auto;
    }

    .prose .img-text .testo {
        width: 100%;
        font-size: 15px;
    }
}

@media (max-width: 560px) {

    .page-storia .prose > h2 {
        margin-top: 52px;

        font-size: 38px;
        line-height: 1.08;
    }

    .prose .img-text {
        gap: 20px;
    }

    .prose .img-text .testo {
        line-height: 1.75;
    }

    .page-storia .prose > h2:nth-of-type(3)::before {
        font-size: 10px;
    }
}

/* =========================================================
   21. STORIA - COLORE TITOLI
   Tutti i titoli marroni; label documento storico verde
   ========================================================= */

.page-storia .prose > h2,
.page-storia .prose > h2:nth-of-type(odd),
.page-storia .prose > h2:nth-of-type(even),
.page-storia .prose > h2:nth-of-type(3) {
    color: var(--ink);
}

.page-storia .prose > h2:nth-of-type(3)::before {
    color: var(--green);
}

/* =========================================================
   22. STORIA - SOPRATITOLI DEI CAPITOLI
   ========================================================= */

.page-storia .prose > h2 {
    color: var(--ink);
}

.page-storia .prose > h2::before {
    display: block;
    margin-bottom: 10px;

    color: var(--green);

    font-family: Montserrat, Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;

    letter-spacing: .22em;
    text-transform: uppercase;
}

/* 1 - Origini */
.page-storia .prose > h2:nth-of-type(1)::before {
    content: "LE ORIGINI";
}

/* 2 - Medioevo */
.page-storia .prose > h2:nth-of-type(2)::before {
    content: "IL MEDIOEVO";
}

/* 3 - Prima testimonianza */
.page-storia .prose > h2:nth-of-type(3)::before {
    content: "DOCUMENTO STORICO";
}

/* 4 - Evoluzione della proprietà */
.page-storia .prose > h2:nth-of-type(4)::before {
    content: "DAL MEDIOEVO ALL'OTTOCENTO";
}

/* 5 - De Giusti */
.page-storia .prose > h2:nth-of-type(5)::before {
    content: "LA FAMIGLIA";
}

/* 6 - Ultimo mugnaio */
.page-storia .prose > h2:nth-of-type(6)::before {
    content: "IL NOVECENTO";
}

/* 7 - Oggi */
.page-storia .prose > h2:nth-of-type(7)::before {
    content: "IL MULINO OGGI";
}

/* =========================================================
   23. VISITS LANDING
   ========================================================= */

.visits-landing {
    padding: 30px 0 80px;
    background: var(--cream);
}

.visit-experience {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;

    padding: 65px 0;

    border-bottom: 1px solid rgba(73,53,45,.10);
}

.visit-experience.reverse .visit-image {
    order: 2;
}

.visit-experience.reverse .visit-content {
    order: 1;
}

.visit-image img {
    width: 100%;
    height: auto;

    display: block;

    border-radius: 4px;

    box-shadow:
        0 14px 35px rgba(73,53,45,.18);
}

.visit-eyebrow {
    display: block;

    margin-bottom: 10px;

    color: var(--green);

    font-family: Montserrat, Arial, sans-serif;
    font-size: 10px;
    font-weight: 600;

    letter-spacing: .22em;
    text-transform: uppercase;
}

.visit-content h2,
.visits-cta h2 {
    margin: 0 0 24px;

    color: var(--ink);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px,5vw,60px);
    line-height: 1;
}

.visit-content p {
    max-width: 560px;

    font-size: 15px;
    line-height: 1.8;
}

.visit-content .btn {
    margin-top: 12px;
}


/* ---------------------------------------------------------
   CTA finale
   --------------------------------------------------------- */

.visits-cta {
    max-width: 780px;

    margin: 70px auto 0;
    padding: 55px 60px;

    text-align: center;

    background:
        linear-gradient(
            120deg,
            var(--soft),
            var(--cream),
            var(--sand)
        );

    border-radius: 6px;
}

.visits-cta .visit-eyebrow {
    margin-bottom: 12px;
}

.visits-cta p {
    max-width: 560px;

    margin: 0 auto 25px;

    line-height: 1.8;
}


/* =========================================================
   VISITS LANDING - RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .visit-experience,
    .visit-experience.reverse {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 50px 0;
    }

    .visit-experience.reverse .visit-image,
    .visit-experience.reverse .visit-content {
        order: initial;
    }

    .visit-experience .visit-image {
        order: 1;
    }

    .visit-experience .visit-content {
        order: 2;
    }

    .visit-image {
        width: min(620px,100%);

        margin: auto;
    }

    .visits-cta {
        margin-top: 50px;
        padding: 45px 30px;
    }
}


@media (max-width: 560px) {

    .visits-landing {
        padding-bottom: 55px;
    }

    .visit-experience {
        padding: 42px 0;
    }

    .visit-content h2,
    .visits-cta h2 {
        font-size: 40px;
    }

    .visits-cta {
        padding: 38px 22px;
    }
}

/* =========================================================
   24. GUIDED VISIT
   ========================================================= */

.guided-visit {
    padding: 55px 0 80px;
    background: var(--cream);
}

.guided-hero-image {
    max-width: 1050px;
    margin: 0 auto 75px;
}

.guided-hero-image img {
    display: block;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 14px 35px rgba(73,53,45,.18);
}

.guided-intro,
.guided-discover,
.guided-audience {
    padding: 55px 0;
    border-bottom: 1px solid rgba(73,53,45,.10);
}

.guided-intro {
    max-width: 780px;
    margin: auto;
    text-align: center;
}

.guided-intro h2,
.guided-discover h2,
.guided-audience h2,
.guided-cta h2 {
    margin: 0 0 25px;

    color: var(--ink);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px,5vw,60px);
    line-height: 1;
}

.guided-lead {
    margin: auto;
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    line-height: 1.45;
}


/* COSA SCOPRIRAI */

.guided-discover {
    text-align: center;
}

.guided-features {
    display: grid;
    grid-template-columns: repeat(5,1fr);
    gap: 24px;
    margin-top: 42px;
}

.guided-feature {
    padding: 24px 16px;
}

.guided-icon {
    width: 52px;
    height: 52px;

    margin: 0 auto 18px;

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

    color: var(--green);
}

.guided-icon svg {
    width: 38px;
    height: 38px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.guided-feature strong {
    display: block;
    margin-bottom: 8px;

    color: var(--ink);
}

.guided-feature small {
    display: block;
    line-height: 1.55;
}


/* PER CHI */

.guided-audience {
    text-align: center;
}

.guided-audience-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 25px;

    margin-top: 38px;

    text-align: left;
}

.guided-audience-grid article {
    padding: 30px;

    background: #fff;
    border-radius: 5px;

    box-shadow: 0 8px 25px rgba(73,53,45,.10);
}

.guided-audience-grid h3 {
    margin: 0 0 12px;

    color: var(--ink);

    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
}

.guided-audience-grid p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}


/* CTA */

.guided-cta {
    max-width: 780px;

    margin: 70px auto 0;
    padding: 55px 60px;

    text-align: center;

    background:
        linear-gradient(
            120deg,
            var(--soft),
            var(--cream),
            var(--sand)
        );

    border-radius: 6px;
}

.guided-cta p {
    max-width: 560px;
    margin: 0 auto 25px;
    line-height: 1.8;
}


/* RESPONSIVE */

@media (max-width: 900px) {

    .guided-features {
        grid-template-columns: repeat(2,1fr);
    }

    .guided-audience-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {

    .guided-visit {
        padding-top: 35px;
    }

    .guided-hero-image {
        margin-bottom: 50px;
    }

    .guided-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .guided-feature {
        padding: 18px 12px;
    }

    .guided-cta {
        padding: 38px 22px;
    }
}

/* =========================================================
   25. ATTIVITA DIDATTICHE
   ========================================================= */

.education-page {
    padding: 55px 0 80px;
    background: var(--cream);
}

.education-hero-image {
    max-width: 1050px;
    margin: 0 auto 75px;
}

.education-hero-image img {
    display: block;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 14px 35px rgba(73,53,45,.18);
}

.education-intro,
.education-themes,
.education-schools,
.education-labs {
    padding: 55px 0;
    border-bottom: 1px solid rgba(73,53,45,.10);
}

.education-intro {
    max-width: 800px;
    margin: auto;
    text-align: center;
}

.education-intro h2,
.education-themes h2,
.education-schools h2,
.education-labs h2,
.education-cta h2 {
    margin: 0 0 25px;
    color: var(--ink);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px,5vw,60px);
    line-height: 1;
}

.education-lead {
    margin: auto;
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    line-height: 1.45;
}

/* Temi */

.education-themes {
    text-align: center;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 24px;
    margin-top: 42px;
}

.education-grid article {
    padding: 30px 22px;
    background: #fff;
    border-radius: 5px;
    text-align: left;
    box-shadow: 0 8px 25px rgba(73,53,45,.10);
}

.education-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    color: var(--green);
    margin-bottom: 15px;
}

.education-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.education-grid h3 {
    margin: 0 0 15px;
    color: var(--ink);
    font: 600 27px "Cormorant Garamond", serif;
}

.education-grid ul {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.8;
}

/* Scuole */

.education-schools {
    text-align: center;
}

.education-schools > p {
    max-width: 650px;
    margin: 0 auto 35px;
}

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

.school-levels > div {
    padding: 28px 22px;
    background: var(--soft);
    border-radius: 5px;
}

.school-levels strong,
.school-levels span {
    display: block;
}

.school-levels strong {
    color: var(--ink);
    margin-bottom: 8px;
}

.school-levels span {
    font-size: 13px;
    line-height: 1.6;
}

/* Fûr di Mulin */

.education-labs > div {
    max-width: 700px;
    margin: auto;
    text-align: center;
}

.education-labs p {
    max-width: 580px;
    margin: 0 auto 25px;
    line-height: 1.8;
}

/* CTA */

.education-cta {
    max-width: 780px;
    margin: 70px auto 0;
    padding: 55px 60px;
    text-align: center;
    background:
        linear-gradient(
            120deg,
            var(--soft),
            var(--cream),
            var(--sand)
        );
    border-radius: 6px;
}

.education-cta p {
    max-width: 560px;
    margin: 0 auto 25px;
    line-height: 1.8;
}

/* Responsive */

@media (max-width: 900px) {

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

    .school-levels {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {

    .education-page {
        padding-top: 35px;
    }

    .education-hero-image {
        margin-bottom: 50px;
    }

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

    .education-cta {
        padding: 38px 22px;
    }
}

/* =========================================================
   26. FUR DI MULIN
   ========================================================= */

.fur-page {
    padding: 55px 0 80px;
    background: var(--cream);
}

.fur-hero-image {
    max-width: 1050px;
    margin: 0 auto 75px;
}

.fur-hero-image img {
    display: block;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 14px 35px rgba(73,53,45,.18);
}

/* Introduzione */

.fur-intro {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 0 70px;
    text-align: center;
    border-bottom: 1px solid rgba(73,53,45,.10);
}

.fur-intro h2,
.fur-story h2,
.fur-gallery-section h2,
.fur-audience h2,
.fur-cta h2 {
    margin: 0 0 25px;
    color: var(--ink);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px,5vw,60px);
    line-height: 1;
}

.fur-lead {
    margin: 0 auto 22px;
    font-family: "Cormorant Garamond", serif;
    font-size: 25px;
    line-height: 1.45;
}

.fur-intro p:not(.fur-lead) {
    max-width: 690px;
    margin: auto;
    line-height: 1.8;
}

/* Blocchi fotografici */

.fur-story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
    padding: 70px 0;
    border-bottom: 1px solid rgba(73,53,45,.10);
}

.fur-story.reverse .fur-story-image {
    order: 2;
}

.fur-story.reverse .fur-story-content {
    order: 1;
}

.fur-story-image img {
    display: block;
    width: 100%;
    border-radius: 4px;
    box-shadow: 0 14px 35px rgba(73,53,45,.18);
}

.fur-story-content p {
    line-height: 1.8;
}

.fur-values {
    margin: 25px 0;
    padding: 0;
    list-style: none;
}

.fur-values li {
    position: relative;
    margin: 11px 0;
    padding-left: 24px;
}

.fur-values li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

/* Galleria */

.fur-gallery-section {
    padding: 75px 0;
    text-align: center;
    border-bottom: 1px solid rgba(73,53,45,.10);
}

.fur-gallery {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 14px;
    margin-top: 40px;
}

.fur-gallery figure {
    margin: 0;
    overflow: hidden;
    border-radius: 3px;
}

.fur-gallery img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    transition: transform .35s ease;
}

.fur-gallery figure:hover img {
    transform: scale(1.035);
}

/* Destinatari */

.fur-audience {
    padding: 70px 0;
    text-align: center;
    border-bottom: 1px solid rgba(73,53,45,.10);
}

.fur-audience-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    max-width: 850px;
    margin: 35px auto;
}

.fur-audience-list span {
    padding: 10px 18px;
    background: var(--soft);
    border-radius: 999px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.fur-audience > p {
    max-width: 650px;
    margin: auto;
    line-height: 1.8;
}

/* CTA */

.fur-cta {
    max-width: 780px;
    margin: 70px auto 0;
    padding: 55px 60px;
    text-align: center;
    background:
        linear-gradient(
            120deg,
            var(--soft),
            var(--cream),
            var(--sand)
        );
    border-radius: 6px;
}

.fur-cta p {
    max-width: 570px;
    margin: 0 auto 25px;
    line-height: 1.8;
}

/* Responsive */

@media (max-width: 850px) {

    .fur-story,
    .fur-story.reverse {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 55px 0;
    }

    .fur-story.reverse .fur-story-image,
    .fur-story.reverse .fur-story-content {
        order: initial;
    }

    .fur-story .fur-story-image {
        order: 1;
    }

    .fur-story .fur-story-content {
        order: 2;
    }

    .fur-gallery {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 560px) {

    .fur-page {
        padding-top: 35px;
    }

    .fur-hero-image {
        margin-bottom: 50px;
    }

    .fur-gallery {
        gap: 8px;
    }

    .fur-cta {
        padding: 38px 22px;
    }
}

/* =========================================================
   27. EVENTI 2.0
   ========================================================= */

.events-page,
.single-event {
    padding: 60px 0 80px;
    background: var(--cream);
}


/* Landing */

.events-intro {
    max-width: 780px;

    margin: 0 auto 55px;

    text-align: center;
}

.events-intro h2,
.events-empty h2,
.events-cta h2,
.single-event-header h2,
.single-event-info h2 {
    margin: 0 0 22px;

    color: var(--ink);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(42px,5vw,60px);
    line-height: 1;
}

.events-intro-text {
    line-height: 1.8;
}


/* Lista eventi */

.events-list {
    max-width: 900px;

    margin: auto;
}

.event-card {
    display: grid;

    grid-template-columns: 130px 1fr;

    gap: 40px;

    align-items: center;

    padding: 40px 0;

    border-top: 1px solid rgba(73,53,45,.12);
}

.event-card:last-child {
    border-bottom: 1px solid rgba(73,53,45,.12);
}


/* Data */

.event-date,
.single-event-date {
    color: var(--green);

    text-align: center;
}

.event-day {
    display: block;

    font-family: "Cormorant Garamond", serif;
    font-size: 58px;
    font-weight: 600;
    line-height: .85;
}

.event-month {
    display: block;

    margin-top: 9px;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: .18em;

    text-transform: uppercase;
}

.event-year {
    display: block;

    margin-top: 3px;

    font-size: 12px;
}


/* Contenuto card */

.event-card-content h2 {
    margin: 3px 0 12px;

    color: var(--ink);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(34px,4vw,48px);
    line-height: 1.05;
}

.event-card-content p {
    margin: 0 0 15px;

    line-height: 1.7;
}


/* Stato senza eventi */

.events-empty {
    padding: 70px 25px;

    text-align: center;

    background: var(--soft);

    border-radius: 6px;
}


/* CTA lista eventi */

.events-cta,
.single-event-info {
    max-width: 780px;

    margin: 75px auto 0;

    padding: 55px 60px;

    text-align: center;

    background:
        linear-gradient(
            120deg,
            var(--soft),
            var(--cream),
            var(--sand)
        );

    border-radius: 6px;
}

.events-cta p,
.single-event-info p {
    max-width: 560px;

    margin: 0 auto 24px;

    line-height: 1.8;
}


/* =========================================================
   SINGOLO EVENTO
   ========================================================= */

.single-event > .container {
    max-width: 1000px;
}

.single-event-header {
    display: grid;

    grid-template-columns: 150px 1fr;

    gap: 55px;

    align-items: center;

    padding: 30px 0 60px;

    border-bottom: 1px solid rgba(73,53,45,.12);
}

.single-event-date {
    padding-right: 30px;

    border-right: 1px solid rgba(73,53,45,.15);
}

.single-event-lead {
    max-width: 680px;

    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    line-height: 1.45;
}


/* Contenuto proveniente da Markdown */

.single-event-content {
    max-width: 800px;

    margin: 0 auto;

    padding: 60px 0 20px;

    line-height: 1.8;
}

.single-event-content h2 {
    margin: 55px 0 22px;

    color: var(--ink);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(36px,4vw,48px);
    line-height: 1.05;
}

.single-event-content h2:first-of-type {
    margin-top: 20px;
}

.single-event-content ul {
    padding-left: 20px;
}

.single-event-content li {
    margin: 8px 0;
}

.single-event-content li::marker {
    color: var(--green);
}


/* Responsive */

@media (max-width: 700px) {

    .event-card {
        grid-template-columns: 85px 1fr;

        gap: 22px;
    }

    .event-day {
        font-size: 46px;
    }

    .single-event-header {
        grid-template-columns: 1fr;

        gap: 30px;

        text-align: center;
    }

    .single-event-date {
        padding: 0 0 25px;

        border-right: 0;
        border-bottom: 1px solid rgba(73,53,45,.15);
    }

    .events-cta,
    .single-event-info {
        padding: 40px 25px;
    }
}


@media (max-width: 480px) {

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

        text-align: center;
    }

    .event-card-content .visit-eyebrow {
        text-align: center;
    }

    .event-date {
        padding-bottom: 15px;
    }
}

/* =========================================================
   28. EVENTI - INTRODUZIONE COMPATTA
   ========================================================= */

.events-intro-simple {
    max-width: 760px;
    margin: 0 auto 45px;
    text-align: center;
    line-height: 1.8;
}

.event-month {
    letter-spacing: .08em;
    text-transform: none;
}

/* =========================================================
   29. EVENTI - DATA STILE CALENDARIO
   ========================================================= */

/* Calendario nella lista eventi */
.event-card .event-date {
    width: 112px;
    min-height: 132px;

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

    padding: 15px 10px 13px;

    background: #fffdf8;
    color: var(--ink);

    border: 2px solid var(--ink);
    border-radius: 5px;

    box-shadow:
        0 7px 16px rgba(73,53,45,.12);
}

/* Giorno */
.event-card .event-day {
    display: block;

    color: var(--ink);

    font-family: "Cormorant Garamond", serif;
    font-size: 58px;
    font-weight: 700;
    line-height: .82;
}

/* Mese */
.event-card .event-month {
    display: block;

    margin-top: 12px;

    color: var(--green);

    font-family: Montserrat, Arial, sans-serif;
    font-size: 12px;
    font-weight: 700;

    line-height: 1.2;
    letter-spacing: .04em;
    text-transform: none;
}

/* Anno */
.event-card .event-year {
    display: block;

    margin-top: 6px;

    color: var(--ink);

    font-family: Montserrat, Arial, sans-serif;
    font-size: 11px;
    font-weight: 500;

    line-height: 1;
    opacity: .70;
}

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

    .event-card .event-date {
        width: 96px;
        min-height: 116px;
        padding: 13px 8px 11px;
    }

    .event-card .event-day {
        font-size: 48px;
    }

    .event-card .event-month {
        font-size: 11px;
    }
}

@media (max-width: 480px) {

    .event-card .event-date {
        width: 105px;
        margin: 0 auto 12px;
    }
}

/* Calendario eventi: mese e anno più evidenti */

.event-card .event-month {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 12px;
}

.event-card .event-year {
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    margin-top: 7px;
    opacity: .85;
}

/* =========================================================
   30. EVENTI - PROSSIMI E ARCHIVIO AUTOMATICO
   ========================================================= */

.events-section-heading {
    max-width: 900px;
    margin: 0 auto 20px;
}

.events-section-heading h2 {
    margin: 0;

    color: var(--ink);

    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px,4vw,50px);
    line-height: 1;
}


/* Archivio eventi passati */

.past-events {
    max-width: 900px;

    margin: 85px auto 0;
    padding-top: 55px;

    border-top: 1px solid rgba(73,53,45,.18);
}

.past-events-heading {
    margin-bottom: 20px;
}


/* Gli eventi passati restano leggibili ma visivamente secondari */

.past-event-card {
    opacity: .82;
}

.past-event-card .event-date {
    box-shadow: none;
}

.past-event-card:hover {
    opacity: 1;
}


/* Mobile */

@media (max-width: 700px) {

    .past-events {
        margin-top: 60px;
        padding-top: 45px;
    }
}

/* =========================================================
   31. EVENTI - ICONE TITOLI SEZIONE
   ========================================================= */

.events-heading-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.events-heading-title h2 {
    margin: 0;
}

.events-heading-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;

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

    color: var(--green);
}

.events-heading-icon svg {
    width: 36px;
    height: 36px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (max-width: 560px) {

    .events-heading-title {
        gap: 11px;
    }

    .events-heading-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .events-heading-icon svg {
        width: 31px;
        height: 31px;
    }
}

/* =========================================================
   32. VISITE GUIDATE - ELENCO EDITORIALE
   Sostituisce le vecchie icone nella sezione Cosa scoprirai
   ========================================================= */

.guided-discover-list {
    max-width: 850px;
    margin: 38px auto 0;

    border-top: 1px solid rgba(73,53,45,.15);

    text-align: left;
}

.guided-discover-list > div {
    display: grid;
    grid-template-columns: minmax(230px,.8fr) 1.2fr;
    gap: 35px;

    padding: 20px 0;

    border-bottom: 1px solid rgba(73,53,45,.15);
}

.guided-discover-list strong {
    color: var(--ink);

    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    line-height: 1.2;
}

.guided-discover-list span {
    font-size: 14px;
    line-height: 1.7;
}

@media (max-width: 650px) {

    .guided-discover-list > div {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* === MAIAROFF BOOKING TABLE & PILL UI === */
.single-event-info.single-event-info--booking {
    max-width: 100%;
    margin: 48px 0 0;
    padding: 48px 0 0;
    text-align: left;
    background: transparent;
    border-top: 1px solid rgba(73, 53, 45, 0.12);
    border-radius: 0;
}

.single-event-info.single-event-info--booking > .visit-eyebrow {
    display: block;
    text-align: left;
    margin-bottom: 8px;
}

.single-event-info.single-event-info--booking > h2 {
    text-align: left;
    margin: 0 0 28px;
    font-size: clamp(36px, 4.2vw, 48px);
}

#maiaroff-booking-app {
    width: 100%;
    margin: 0;
    text-align: left;
    color: var(--ink, #49352d);
}

#maiaroff-booking-app * {
    box-sizing: border-box;
}

#maiaroff-booking-app .mb-event-card {
    background: #ffffff;
    border: 1px solid rgba(73, 53, 45, 0.12);
    border-radius: 14px;
    padding: 32px 36px;
    box-shadow: 0 10px 30px rgba(73, 53, 45, 0.05);
    text-align: left;
}

#maiaroff-booking-app .mb-event-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 20px;
    margin-bottom: 8px;
}

#maiaroff-booking-app .mb-event-subhead {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ink, #49352d);
}

#maiaroff-booking-app .mb-event-meta {
    font-size: 14px;
    color: #6b584f;
    margin-top: 4px;
}

#maiaroff-booking-app .mb-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#maiaroff-booking-app .mb-pill--open {
    background: var(--soft, #dce8e4);
    color: #294c46;
}

#maiaroff-booking-app .mb-pill--scheduled {
    background: #fef3c7;
    color: #7c4a03;
}

#maiaroff-booking-app .mb-pill--closed {
    background: #f1ede6;
    color: #6b584f;
}

#maiaroff-booking-app .mb-slots-table-wrap {
    width: 100%;
    overflow-x: visible;
    border: none;
    border-radius: 0;
    background: transparent;
}

#maiaroff-booking-app .mb-slots-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

#maiaroff-booking-app .mb-slots-table thead th {
    padding: 12px 16px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #7a675d;
    background: var(--cream, #f8f5ee);
    border-top: 1px solid rgba(73, 53, 45, 0.12);
    border-bottom: 1px solid rgba(73, 53, 45, 0.12);
    text-align: left;
}

#maiaroff-booking-app .mb-slots-table thead th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

#maiaroff-booking-app .mb-slots-table thead th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

#maiaroff-booking-app .mb-slots-table tbody tr {
    border-bottom: 1px solid rgba(73, 53, 45, 0.1);
    transition: background-color 0.15s ease;
}

#maiaroff-booking-app .mb-slots-table tbody tr:last-child {
    border-bottom: none;
}

#maiaroff-booking-app .mb-slots-table tbody tr:hover {
    background: #fcfaf6;
}

#maiaroff-booking-app .mb-slots-table tbody tr.is-selected {
    background: #f2f8f6;
}

#maiaroff-booking-app .mb-slots-table td {
    padding: 20px 16px;
    vertical-align: middle;
    text-align: left;
}

#maiaroff-booking-app .mb-slot-date {
    font-weight: 600;
    font-size: 16px;
    color: var(--ink, #49352d);
    text-transform: capitalize;
    white-space: nowrap;
}

#maiaroff-booking-app .mb-slot-time {
    font-size: 15px;
    color: #5b4940;
    white-space: nowrap;
}

#maiaroff-booking-app .mb-slot-avail {
    display: inline-block;
    padding: 5px 13px;
    border-radius: 9999px;
    background: #eef4f2;
    font-size: 13px;
    font-weight: 600;
    color: #466862;
    white-space: nowrap;
}

#maiaroff-booking-app .mb-slot-avail.is-full {
    background: #fef2f2;
    color: #991b1b;
}

#maiaroff-booking-app .mb-slots-table .mb-col-action {
    text-align: right;
    white-space: nowrap;
}

#maiaroff-booking-app button.mb-btn {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: 9999px;
    border: none;
    background-color: #628781;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(98, 135, 129, 0.22);
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

#maiaroff-booking-app button.mb-btn:hover:not(:disabled) {
    background-color: #51726c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(81, 114, 108, 0.28);
}

#maiaroff-booking-app button.mb-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    box-shadow: none;
}

#maiaroff-booking-app button.mb-btn.mb-btn--selected {
    background-color: #35544f;
}

#maiaroff-booking-app .mb-booking-box {
    margin-top: 28px;
    padding: 28px 32px;
    border-radius: 12px;
    border: 1px solid #bfd3ce;
    background: #f9fcfa;
    text-align: left;
}

#maiaroff-booking-app .mb-booking-box h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 28px;
    margin: 0 0 6px;
    color: var(--ink, #49352d);
}

#maiaroff-booking-app .mb-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px;
}

#maiaroff-booking-app .mb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink, #49352d);
}

#maiaroff-booking-app .mb-field--full {
    grid-column: 1 / -1;
}

#maiaroff-booking-app .mb-field input,
#maiaroff-booking-app .mb-field select {
    padding: 11px 14px;
    border: 1px solid #cfc4b2;
    border-radius: 10px;
    font: inherit;
    font-size: 15px;
    background: #ffffff;
    color: var(--ink, #49352d);
}

#maiaroff-booking-app .mb-field input:focus,
#maiaroff-booking-app .mb-field select:focus {
    outline: none;
    border-color: #628781;
    box-shadow: 0 0 0 3px rgba(98, 135, 129, 0.15);
}

#maiaroff-booking-app .mb-honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

#maiaroff-booking-app .mb-privacy-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
}

#maiaroff-booking-app .mb-alert {
    padding: 16px 18px;
    border-radius: 10px;
    margin: 16px 0;
    font-size: 14px;
}

#maiaroff-booking-app .mb-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

#maiaroff-booking-app .mb-confirm-card {
    background: #ffffff;
    border: 1.5px solid #628781;
    border-radius: 14px;
    padding: 28px;
    margin-top: 16px;
}

#maiaroff-booking-app .mb-code-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    background: #e4efec;
    color: var(--ink, #49352d);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.06em;
    margin: 8px 0 14px;
}

@media (max-width: 760px) {
    #maiaroff-booking-app .mb-event-card {
        padding: 22px 18px;
    }
    #maiaroff-booking-app .mb-form-grid {
        grid-template-columns: 1fr;
    }
    #maiaroff-booking-app .mb-slots-table thead {
        display: none;
    }
    #maiaroff-booking-app .mb-slots-table,
    #maiaroff-booking-app .mb-slots-table tbody,
    #maiaroff-booking-app .mb-slots-table tr,
    #maiaroff-booking-app .mb-slots-table td {
        display: block;
        width: 100%;
    }
    #maiaroff-booking-app .mb-slots-table tbody tr {
        padding: 16px 0;
    }
    #maiaroff-booking-app .mb-slots-table td {
        padding: 5px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    #maiaroff-booking-app .mb-slots-table td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: #7a675d;
    }
    #maiaroff-booking-app .mb-slots-table td.mb-col-action {
        margin-top: 12px;
        justify-content: flex-end;
    }
    #maiaroff-booking-app .mb-slots-table td.mb-col-action::before {
        display: none;
    }
}

/* === MAIAROFF EVENT EDITORIAL BLOCKS === */
.single-event-content .ev-lead-box {
    background: #ffffff;
    border-left: 4px solid #628781;
    border-radius: 0 12px 12px 0;
    padding: 22px 26px;
    margin: 28px 0 36px;
    box-shadow: 0 6px 20px rgba(73, 53, 45, 0.05);
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 22px;
    line-height: 1.45;
    color: var(--ink, #49352d);
}

.single-event-content .ev-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 34px 0 40px;
}

.single-event-content .ev-highlight-card {
    background: #ffffff;
    border: 1px solid rgba(73, 53, 45, 0.12);
    border-radius: 12px;
    padding: 22px 20px;
    box-shadow: 0 6px 18px rgba(73, 53, 45, 0.04);
}

.single-event-content .ev-highlight-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #628781;
    margin-bottom: 8px;
}

.single-event-content .ev-highlight-card h3 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 23px;
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--ink, #49352d);
}

.single-event-content .ev-highlight-card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #5f4c43;
}

.single-event-content .ev-info-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 32px;
    background: var(--soft, #dce8e4);
    border-radius: 12px;
    padding: 20px 26px;
    margin: 36px 0 12px;
    font-size: 14px;
    color: #264842;
}

.single-event-content .ev-info-strip strong {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    opacity: 0.8;
    margin-bottom: 2px;
}

@media (max-width: 760px) {
    .single-event-content .ev-highlights {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================
   MAIAROFF BRAND
   Bebas Neue solo per il nome accanto al logo
   ========================================================== */

@font-face {
    font-family: 'Bebas Neue';
    src: url('../fonts/BebasNeue-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.brand {
    font-family: 'Bebas Neue', Impact, sans-serif;
    font-weight: 400;
    font-size: 25px;
    line-height: 1;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

@media (max-width: 850px) {
    .brand {
        font-size: 22px;
        letter-spacing: 0.04em;
    }
}


/* ==========================================================
   MAIAROFF - ACTIVE MENU INDICATOR
   ========================================================== */

.menu a {
    position: relative;
}

.menu a[aria-current="page"]::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -10px;

    width: 7px;
    height: 7px;

    border-right: 2px solid var(--green);
    border-bottom: 2px solid var(--green);

    transform: translateX(-50%) rotate(45deg);
}

/* =========================================================
   SELETTORE LINGUA (LANG SWITCHER)
   ========================================================= */
.site-header{
  position:relative;
  z-index:1000;
}
.lang-switcher{
  position:relative;
  margin-left:auto;
  z-index:1001;
}
@media (min-width:961px){
  .desktop-cta{
    order:4;
  }
  .lang-switcher{
    order:5;
    margin-left:8px;
  }
}
.lang-switcher summary{
  list-style:none;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:8px 13px;
  border:1.5px solid #52423b;
  border-radius:999px;
  background:#f7f4ef;
  color:#3b302b;
  font-size:13px;
  font-weight:600;
  letter-spacing:.03em;
  cursor:pointer;
  user-select:none;
  transition:border-color .2s, background .2s;
}
.lang-switcher summary::-webkit-details-marker{display:none}
.lang-switcher summary:hover,
.lang-switcher[open] summary{
  border-color:var(--green-dark, #4f736d);
  background:#ffffff;
}
.lang-switcher summary svg{
  color:var(--green-dark, #4f736d);
  flex-shrink:0;
}
.lang-caret{
  font-size:11px;
  opacity:.8;
  transition:transform .2s;
}
.lang-switcher[open] .lang-caret{
  transform:rotate(180deg);
}
.lang-menu{
  position:absolute;
  right:0;
  top:calc(100% + 8px);
  min-width:154px;
  margin:0;
  padding:6px;
  list-style:none;
  background:#f7f4ef;
  border:1.5px solid #d8d0c5;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(34, 28, 24, 0.18);
  z-index:1002;
}
.lang-menu li a{
  display:flex;
  align-items:center;
  gap:9px;
  padding:8px 11px;
  border-radius:8px;
  font-size:13.5px;
  color:#3b302b;
  text-decoration:none;
  transition:background .15s, color .15s;
}
.lang-menu li a strong{
  font-size:12px;
  letter-spacing:.04em;
  color:#6e615a;
  min-width:22px;
}
.lang-menu li a:hover{
  background:#eae3d8;
}
.lang-menu li a.active{
  background:#dce6e3;
  color:#2f4f4a;
  font-weight:600;
}
.lang-menu li a.active strong{
  color:#2f4f4a;
}


/* FIX ALLINEAMENTO MENU MULTILINGUA */
@media (min-width: 961px){
  .site-header .nav{
    display:flex;
    align-items:center;
    gap:14px;
    flex-wrap:nowrap;
  }
  .site-header .brand{
    flex-shrink:0;
  }
  .site-header .menu{
    display:flex;
    align-items:center;
    gap:16px;
    flex-wrap:nowrap;
  }
  .site-header .menu a{
    white-space:nowrap;
    font-size:14.5px;
  }
  .site-header .desktop-cta{
    white-space:nowrap;
    padding:10px 18px;
    font-size:14px;
    flex-shrink:0;
  }
  .site-header .lang-switcher{
    flex-shrink:0;
  }
}
@media (min-width: 961px) and (max-width: 1220px){
  .site-header .nav{
    gap:10px;
  }
  .site-header .menu{
    gap:11px;
  }
  .site-header .menu a{
    font-size:13.5px;
  }
  .site-header .desktop-cta{
    padding:9px 14px;
    font-size:13.5px;
  }
  .site-header .brand span{
    font-size:15px;
  }
}
