:root {
            --navy: #0e2d3d;
            --navy-deep: #092434;
            --paper: #fbf7ef;
            --cream: #f1e7d9;
            --terracotta: #c86f4b;
            --terracotta-dark: #a9583b;
            --gold: #c6a15c;
            --ink: #403a35;
            --muted: #766c63;
            --white: #fffaf2;
            --line: rgba(94, 77, 59, 0.17);
            --shadow: 0 18px 45px rgba(34, 25, 18, 0.16);
            --serif: "Playfair Display", Georgia, serif;
            --sans: "Poppins", Arial, sans-serif;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            margin: 0;
            color: var(--ink);
            background:
                linear-gradient(90deg, rgba(129, 102, 71, 0.035) 1px, transparent 1px),
                linear-gradient(180deg, rgba(129, 102, 71, 0.028) 1px, transparent 1px),
                var(--paper);
            background-size: 34px 34px;
            font-family: var(--sans);
            line-height: 1.6;
        }

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

        button,
        input,
        textarea {
            font: inherit;
        }

        .container {
            width: min(1110px, calc(100% - 44px));
            margin: 0 auto;
        }

        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 44px;
            padding: 0 28px;
            border: 1px solid transparent;
            border-radius: 6px;
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            cursor: pointer;
            transition: transform 220ms ease, background 220ms ease, color 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
        }

        .btn:hover,
        .btn:focus-visible {
            transform: translateY(-3px);
        }

        .btn-primary {
            color: var(--white);
            background: var(--terracotta);
            box-shadow: 0 10px 22px rgba(160, 82, 52, 0.26);
        }

        .btn-primary:hover,
        .btn-primary:focus-visible {
            background: var(--terracotta-dark);
        }

        .btn-outline {
            color: var(--terracotta);
            background: rgba(255, 250, 242, 0.72);
            border-color: rgba(201, 111, 75, 0.44);
        }

        .section-kicker {
            margin: 0 0 12px;
            color: var(--terracotta);
            font-size: 12px;
            font-weight: 700;
            letter-spacing: 0.18em;
            line-height: 1;
            text-transform: uppercase;
        }

        .section-title {
            margin: 0;
            color: var(--ink);
            font-family: var(--serif);
            font-size: clamp(36px, 5vw, 58px);
            font-weight: 500;
            line-height: 1.04;
        }

        .site-header {
            position: absolute;
            inset: 0 0 auto;
            z-index: 10;
            height: 94px;
            color: var(--white);
        }

        .nav-shell {
            width: min(1500px, calc(100% - 70px));
            height: 100%;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 245px 1fr 150px;
            align-items: center;
            gap: 24px;
            opacity: 0;
            animation: navDrop 680ms ease forwards;
        }

        .brand {
            display: inline-flex;
            align-items: center;
            width: fit-content;
            gap: 13px;
            color: var(--gold);
        }

        .brand-mark {
            width: 61px;
            height: 61px;
            flex: 0 0 61px;
        }

        .brand-mark svg {
            width: 100%;
            height: 100%;
            fill: none;
            stroke: currentColor;
            stroke-width: 2.1;
            stroke-linecap: round;
            stroke-linejoin: round;
            transform-origin: center;
            animation: logoFloat 7s ease-in-out infinite;
        }

        .brand-copy {
            display: grid;
            gap: 1px;
            font-family: var(--serif);
            line-height: 1;
            text-transform: uppercase;
        }

        .brand-copy span {
            font-size: 14px;
            font-weight: 700;
            letter-spacing: 0.18em;
        }

        .brand-copy strong {
            font-size: 22px;
            font-weight: 700;
            letter-spacing: 0.13em;
        }

        .brand-copy em {
            font-size: 15px;
            font-style: normal;
            font-weight: 700;
            letter-spacing: 0.25em;
        }

        .nav-menu {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 29px;
            margin: 0;
            padding: 0;
            list-style: none;
        }

        .nav-menu li,
        .header-cta {
            opacity: 0;
            animation: navItemRise 520ms ease forwards;
        }

        .nav-menu li:nth-child(1) { animation-delay: 90ms; }
        .nav-menu li:nth-child(2) { animation-delay: 145ms; }
        .nav-menu li:nth-child(3) { animation-delay: 200ms; }
        .nav-menu li:nth-child(4) { animation-delay: 255ms; }
        .nav-menu li:nth-child(5) { animation-delay: 310ms; }
        .header-cta { animation-delay: 365ms; }

        .nav-menu a {
            position: relative;
            display: inline-flex;
            color: rgba(255, 250, 242, 0.9);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.03em;
            text-transform: uppercase;
            white-space: nowrap;
        }

        .nav-menu a::after {
            content: "";
            position: absolute;
            left: 0;
            right: 0;
            bottom: -13px;
            height: 2px;
            opacity: 0;
            background: var(--gold);
            transform: scaleX(0);
            transform-origin: left;
            transition: opacity 180ms ease, transform 230ms ease;
        }

        .nav-menu a:hover::after,
        .nav-menu a:focus-visible::after,
        .nav-menu .active a::after {
            opacity: 1;
            transform: scaleX(1);
        }

        .nav-toggle {
            display: none;
            width: 44px;
            height: 44px;
            align-items: center;
            justify-content: center;
            gap: 5px;
            flex-direction: column;
            border: 1px solid rgba(198, 161, 92, 0.44);
            border-radius: 999px;
            color: var(--gold);
            background: rgba(9, 36, 52, 0.78);
            cursor: pointer;
            transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
        }

        .nav-toggle:hover,
        .nav-toggle:focus-visible {
            transform: translateY(-1px);
            border-color: var(--gold);
            background: rgba(9, 36, 52, 0.94);
        }

        .nav-toggle span {
            width: 18px;
            height: 2px;
            border-radius: 999px;
            background: currentColor;
            transition: transform 180ms ease, opacity 180ms ease;
        }

        .nav-toggle.is-open span:nth-child(1) {
            transform: translateY(7px) rotate(45deg);
        }

        .nav-toggle.is-open span:nth-child(2) {
            opacity: 0;
        }

        .nav-toggle.is-open span:nth-child(3) {
            transform: translateY(-7px) rotate(-45deg);
        }

        .header-cta {
            min-height: 46px;
            padding: 0 25px;
            border-radius: 999px;
            font-size: 11px;
            justify-self: end;
        }

        .hero {
            min-height: 495px;
            color: var(--white);
            background-image:
                linear-gradient(90deg, rgba(8, 13, 17, 0.8) 0%, rgba(8, 13, 17, 0.56) 42%, rgba(8, 13, 17, 0.18) 100%),
                linear-gradient(180deg, rgba(7, 10, 12, 0.22), rgba(7, 10, 12, 0.66)),
                url("../images/sfondo.jpg");
            background-position: center 50%;
            background-size: cover;
            animation: heroDrift 16s ease-in-out infinite alternate;
        }

        .hero-inner {
            min-height: 495px;
            display: grid;
            align-items: center;
            padding-top: 58px;
        }

        .hero-copy {
            width: min(650px, 100%);
        }

        .hero h1 {
            margin: 0 0 22px;
            font-family: var(--serif);
            font-size: clamp(48px, 7vw, 74px);
            font-weight: 500;
            line-height: 1.02;
            text-shadow: 0 5px 24px rgba(0, 0, 0, 0.42);
        }

        .hero p {
            width: min(590px, 100%);
            margin: 0;
            color: rgba(255, 250, 242, 0.9);
            font-size: 16px;
            font-weight: 600;
            line-height: 1.8;
        }

        .contact-section {
            padding: 76px 0 72px;
        }

        .contact-layout {
            display: grid;
            grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
            gap: 34px;
            align-items: start;
        }

        .info-stack {
            display: grid;
            gap: 18px;
        }

        .info-card,
        .contact-form,
        .map-panel {
            border: 1px solid var(--line);
            border-radius: 8px;
            background: rgba(255, 250, 242, 0.82);
            box-shadow: 0 14px 34px rgba(57, 42, 26, 0.08);
        }

        .info-card {
            padding: 28px;
            transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
        }

        .info-card:hover {
            transform: translateY(-5px);
            border-color: rgba(198, 161, 92, 0.48);
            box-shadow: 0 19px 42px rgba(57, 42, 26, 0.15);
        }

        .info-card small {
            display: block;
            margin-bottom: 9px;
            color: var(--gold);
            font-size: 11px;
            font-weight: 800;
            letter-spacing: 0.13em;
            text-transform: uppercase;
        }

        .info-card h2 {
            margin: 0 0 10px;
            font-family: var(--serif);
            font-size: 29px;
            font-weight: 500;
            line-height: 1.1;
        }

        .info-card p {
            margin: 0;
            color: var(--muted);
            font-size: 14px;
            line-height: 1.75;
        }

        .info-card a {
            color: var(--terracotta);
            font-weight: 700;
        }

        .map-panel {
            position: relative;
            min-height: 232px;
            overflow: hidden;
            background:
                linear-gradient(31deg, transparent 0 47%, rgba(192, 173, 142, 0.52) 48% 49%, transparent 50% 100%),
                linear-gradient(154deg, transparent 0 43%, rgba(192, 173, 142, 0.42) 44% 45%, transparent 46% 100%),
                #eee7dc;
            background-size: 360px 220px, 420px 260px, auto;
        }

        .map-panel::before {
            content: "";
            position: absolute;
            inset: 0;
            opacity: 0.72;
            background:
                repeating-linear-gradient(8deg, transparent 0 58px, rgba(215, 204, 180, 0.58) 59px 62px, transparent 63px 119px),
                repeating-linear-gradient(103deg, transparent 0 68px, rgba(222, 211, 188, 0.58) 69px 72px, transparent 73px 134px);
        }

        .map-pin {
            position: absolute;
            z-index: 1;
            left: 50%;
            top: 50%;
            width: 38px;
            height: 38px;
            border-radius: 50% 50% 50% 0;
            background: var(--terracotta);
            transform: translate(-50%, -70%) rotate(-45deg);
            box-shadow: 0 8px 18px rgba(109, 63, 41, 0.28);
            animation: pinFloat 3.8s ease-in-out infinite;
        }

        .map-pin::after {
            content: "";
            position: absolute;
            inset: 11px;
            border-radius: 50%;
            background: rgba(255, 250, 242, 0.86);
        }

        .map-panel.map-embed {
            min-height: 265px;
            background: var(--cream);
        }

        .map-panel.map-embed::before,
        .map-panel.map-embed::after,
        .map-panel.map-embed .map-pin {
            display: none;
        }

        .map-panel.map-embed iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
            filter: saturate(0.88) contrast(0.98);
        }

        .map-open-link {
            position: absolute;
            right: 16px;
            bottom: 16px;
            z-index: 2;
            display: inline-flex;
            align-items: center;
            min-height: 38px;
            padding: 0 15px;
            border: 1px solid rgba(198, 161, 92, 0.42);
            border-radius: 6px;
            color: var(--white);
            background: rgba(9, 36, 52, 0.88);
            box-shadow: 0 10px 24px rgba(9, 36, 52, 0.22);
            font-size: 11px;
            font-weight: 700;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
        }

        .map-open-link:hover,
        .map-open-link:focus-visible {
            transform: translateY(-2px);
            background: rgba(9, 36, 52, 0.96);
            border-color: var(--gold);
        }

        .contact-form {
            padding: 34px;
        }

        .contact-form h2 {
            margin: 0 0 10px;
            font-family: var(--serif);
            font-size: 40px;
            font-weight: 500;
            line-height: 1.08;
        }

        .contact-form > p {
            margin: 0 0 24px;
            color: var(--muted);
        }

        .alert {
            margin-bottom: 20px;
            padding: 14px 16px;
            border-radius: 7px;
            font-size: 13px;
            font-weight: 700;
        }

        .alert-success {
            color: #2f5b40;
            background: rgba(82, 146, 92, 0.14);
            border: 1px solid rgba(82, 146, 92, 0.24);
        }

        .alert-error {
            color: #8f3f2d;
            background: rgba(200, 111, 75, 0.14);
            border: 1px solid rgba(200, 111, 75, 0.24);
        }

        .form-grid {
            display: grid;
            gap: 18px;
        }

        .field {
            display: grid;
            gap: 8px;
        }

        .field label {
            color: #5a5048;
            font-size: 12px;
            font-weight: 800;
            letter-spacing: 0.11em;
            text-transform: uppercase;
        }

        .field input,
        .field textarea {
            width: 100%;
            border: 1px solid rgba(94, 77, 59, 0.2);
            border-radius: 7px;
            background: rgba(255, 250, 242, 0.86);
            color: var(--ink);
            padding: 14px 15px;
            outline: none;
            transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
        }

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

        .field input:focus,
        .field textarea:focus {
            border-color: rgba(198, 161, 92, 0.72);
            box-shadow: 0 0 0 4px rgba(198, 161, 92, 0.13);
            transform: translateY(-1px);
        }

        .form-actions {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
            align-items: center;
            margin-top: 7px;
        }

        .note {
            color: var(--muted);
            font-size: 12px;
        }

        .contact-band {
            padding: 58px 0;
            color: var(--white);
            background:
                radial-gradient(circle at 20% 20%, rgba(255, 250, 242, 0.08), transparent 24rem),
                var(--navy-deep);
        }

        .band-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 1px;
            background: rgba(198, 161, 92, 0.24);
        }

        .band-item {
            min-height: 150px;
            padding: 28px;
            background: rgba(255, 250, 242, 0.08);
        }

        .band-item strong {
            display: block;
            margin-bottom: 10px;
            color: var(--gold);
            font-family: var(--serif);
            font-size: 28px;
            font-weight: 600;
        }

        .band-item p {
            margin: 0;
            color: rgba(255, 250, 242, 0.78);
            font-size: 14px;
            line-height: 1.7;
        }

        .site-footer {
            padding: 29px 0 21px;
            background: var(--paper);
            border-top: 1px solid rgba(89, 70, 48, 0.12);
        }

        .footer-row {
            display: flex;
            justify-content: space-between;
            gap: 20px;
            align-items: center;
            color: #74695f;
            font-size: 12px;
            font-weight: 500;
        }

        .footer-links {
            display: flex;
            flex-wrap: wrap;
            gap: 22px;
        }

        .reveal {
            opacity: 0;
            transform: translateY(26px);
            transition: opacity 680ms ease, transform 680ms ease;
            transition-delay: var(--reveal-delay, 0ms);
        }

        .reveal[data-reveal="left"] { transform: translateX(-24px); }
        .reveal[data-reveal="right"] { transform: translateX(24px); }
        .reveal.is-visible { opacity: 1; transform: translate(0, 0); }

        @keyframes heroDrift {
            from { background-position: center 50%; }
            to { background-position: center 55%; }
        }

        @keyframes navDrop {
            from { opacity: 0; transform: translateY(-18px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes navItemRise {
            from { opacity: 0; transform: translateY(-8px); }
            to { opacity: 1; transform: translateY(0); }
        }

        @keyframes logoFloat {
            0%, 100% { transform: translateY(0) rotate(0deg); }
            50% { transform: translateY(-3px) rotate(2deg); }
        }

        @keyframes pinFloat {
            0%, 100% { transform: translate(-50%, -70%) rotate(-45deg); }
            50% { transform: translate(-50%, -80%) rotate(-45deg); }
        }

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

            .reveal {
                opacity: 1;
                transform: none;
            }
        }

        @media (max-width: 1050px) {
            .nav-shell {
                width: calc(100% - 38px);
                grid-template-columns: 210px 1fr 130px;
            }

            .nav-menu {
                gap: 17px;
            }

            .nav-menu a {
                font-size: 10px;
            }

            .contact-layout,
            .band-grid {
                grid-template-columns: 1fr;
            }
        }

        @media (max-width: 760px) {
            .site-header {
                height: auto;
                padding: 18px 0;
            }

            .nav-shell {
                display: flex;
                align-items: center;
                justify-content: space-between;
                position: relative;
                width: calc(100% - 32px);
            }

            .nav-menu {
                position: absolute;
                top: calc(100% + 12px);
                left: 0;
                right: 0;
                display: flex;
                flex-direction: column;
                gap: 0;
                padding: 10px;
                border: 1px solid rgba(198, 161, 92, 0.24);
                border-radius: 8px;
                background: rgba(9, 36, 52, 0.96);
                box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
                z-index: 40;
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                transform: translateY(-8px);
                transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
            }

            .nav-menu.is-open {
                opacity: 1;
                visibility: visible;
                pointer-events: auto;
                transform: translateY(0);
            }

            .nav-menu li {
                width: 100%;
                opacity: 1;
                animation: none;
            }

            .nav-menu a {
                width: 100%;
                justify-content: center;
                padding: 13px 12px;
                color: rgba(255, 250, 242, 0.94);
                font-size: 12px;
            }

            .nav-menu a::after {
                display: none;
            }

            .nav-toggle {
                display: inline-flex;
            }

            .brand-mark {
                width: 52px;
                height: 52px;
                flex-basis: 52px;
            }

            .brand-copy strong {
                font-size: 18px;
            }

            .header-cta {
                display: none;
            }

            .hero,
            .hero-inner {
                min-height: 500px;
            }

            .contact-form {
                padding: 24px;
            }

            .form-actions,
            .footer-row {
                align-items: stretch;
                flex-direction: column;
            }

            .btn {
                width: 100%;
            }
        }

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

.footer-brand .brand-logo-img {
    width: 220px;
}

@media (max-width: 780px) {
    .brand-logo-img {
        width: 176px;
    }

    .footer-brand .brand-logo-img {
        width: 158px;
    }
}
