@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;
}
