/* Base Variables */
:root {
    --primary-color: #0E2236;
    --secondary-color: #D7A15A;
    --accent-color: #2E6F8E;
    --text-color: #1F2A36;
    --muted-color: #5D6B78;
    --light-bg: #F7F2EA;
    --dark-bg: #0E2236;
    --accent-bg: #EEF4F7;
    --sand-bg: #F6EEE3;
    --white: #FFFFFF;
    --max-width: 1140px;
    --border-radius: 10px;
    --radius-xl: 18px;
    --spacing: 2rem;
    --shadow-soft: 0 22px 55px rgba(12,34,54,0.12);
    --shadow-card: 0 16px 35px rgba(12,34,54,0.12);
    --shadow-deep: 0 32px 70px rgba(12,34,54,0.16);
    --shadow-glow: 0 16px 38px rgba(215,161,90,0.24);
    --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
    --font-body: 'Manrope', 'Helvetica Neue', sans-serif;
    --font-main: var(--font-body);
}

/* Reset & Basics */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--sand-bg);
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    line-height: 1.7;
    background-color: var(--sand-bg);
    width: 100%;
    max-width: 100%;
    background-image:
        radial-gradient(rgba(14,34,54,0.028) 0.6px, transparent 0.6px),
        radial-gradient(900px 500px at 85% -10%, rgba(215,161,90,0.2), transparent 60%),
        radial-gradient(700px 420px at -10% 20%, rgba(46,111,142,0.14), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0) 36%);
    background-size: 140px 140px, auto, auto, auto;
    background-position: 0 0, 85% -10%, -10% 20%, center;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    z-index: 0;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        radial-gradient(rgba(14,34,54,0.12) 0.4px, transparent 0.4px),
        radial-gradient(rgba(255,255,255,0.18) 0.4px, transparent 0.4px);
    background-size: 3px 3px, 5px 5px;
    opacity: 0.08;
    mix-blend-mode: soft-light;
    pointer-events: none;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

::selection {
    background: rgba(215,161,90,0.35);
    color: #0E2236;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s, transform 0.3s, box-shadow 0.3s;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.container {
    width: 90%;
    max-width: var(--max-width);
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
    position: relative;
    scroll-margin-top: 90px;
}

.section::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(300px, 55vw);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(14,34,54,0.18), transparent);
    opacity: 0;
    transform: translateX(-50%) scaleX(0.7);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

.section::after {
    content: "";
    position: absolute;
    top: 2.75rem;
    right: -8%;
    width: 220px;
    height: 220px;
    background: radial-gradient(140px 140px at 70% 30%, rgba(46,111,142,0.15), transparent 65%);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
    filter: saturate(1.1);
}

.section.reveal.is-visible::before {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.bg-dark.section::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.bg-dark.section.reveal.is-visible::before {
    opacity: 0.6;
}

.section.reveal.is-visible::after {
    opacity: 0.6;
    transform: translateY(0);
}

.section-lead {
    margin-top: -0.75rem;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    max-width: 640px;
    color: #3d4a55;
    text-wrap: balance;
}

.privacy-content {
    margin-top: 2rem;
    max-width: 720px;
}

.privacy-content p {
    margin-bottom: 1rem;
}

.js-enabled .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.js-enabled body {
    opacity: 0;
    transition: opacity 1.35s ease;
}

.js-enabled body.page-ready {
    opacity: 1;
}

.js-enabled .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: 0.01em;
    text-shadow: 0 18px 30px rgba(12,34,54,0.12);
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(100% + 0.75rem + 1px);
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--secondary-color);
    box-shadow: 0 0 0 6px rgba(215,161,90,0.18);
    transform: translateY(-50%);
}

.section-title::after {
    content: "";
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 14px;
    width: 90px;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: 999px;
    background-size: 200% 100%;
    transition: background-position 0.6s ease;
}

.section-title.text-white {
    color: var(--white);
    text-shadow: 0 18px 30px rgba(0,0,0,0.35);
}

.section-title.text-white::after {
    background: var(--secondary-color);
}

.section-title:hover::after {
    background-position: 100% 0;
}

.text-muted { color: var(--muted-color); }
.text-small { font-size: 0.875rem; }
.bg-light { background: linear-gradient(180deg, #ffffff 0%, #f7f2ea 100%); }
.bg-dark {
    background: linear-gradient(135deg, #0E2236 0%, #183756 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.key-points {
    background: linear-gradient(180deg, rgba(255,255,255,0.9) 0%, rgba(246,238,227,0.65) 100%);
}

.documents {
    background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(238,244,247,0.9) 100%);
}

.bg-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(500px 300px at 80% 20%, rgba(215,161,90,0.18), transparent 70%);
    opacity: 0.7;
    pointer-events: none;
}

.bg-dark .container {
    position: relative;
    z-index: 1;
}
.text-white { color: var(--white); }

.bg-dark.section::after {
    background: radial-gradient(140px 140px at 70% 30%, rgba(215,161,90,0.2), transparent 65%);
    opacity: 0.4;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1100;
    pointer-events: none;
}

.scroll-progress__bar {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(215,161,90,0.95), var(--accent-color));
    transform: scaleX(0);
    transform-origin: left;
    box-shadow: 0 6px 18px rgba(12,34,54,0.18);
    transition: transform 0.28s ease;
}

/* Buttons */
.btn {
    --magnet-x: 0px;
    --magnet-y: 0px;
    display: inline-block;
    padding: 0.85rem 1.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
    transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
}

.btn-primary::after,
.btn-secondary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
    opacity: 0.4;
    transform: translateX(-120%);
    transition: transform 0.6s ease;
    pointer-events: none;
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after,
.btn-secondary:hover::after,
.btn-secondary:focus-visible::after {
    transform: translateX(120%);
}

.btn-primary {
    background: linear-gradient(135deg, #D7A15A 0%, #C68A3D 100%);
    color: var(--primary-color);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0) translateY(-1px);
    box-shadow: 0 16px 30px rgba(215,161,90,0.4);
}

.btn-ghost {
    background: transparent;
    border-color: rgba(14,34,54,0.2);
    color: var(--primary-color);
}

.btn-ghost:hover {
    border-color: rgba(215,161,90,0.6);
    color: var(--secondary-color);
    transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0) translateY(-1px);
}

.btn-small {
    padding: 0.6rem 1.2rem;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.btn-secondary {
    background-color: transparent;
    border-color: rgba(255,255,255,0.6);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.18);
    transform: translate3d(var(--magnet-x, 0px), var(--magnet-y, 0px), 0) translateY(-1px);
}

.btn-magnetic {
    will-change: transform;
    perspective: 800px;
}

.btn:focus-visible {
    outline: 2px solid rgba(215,161,90,0.7);
    outline-offset: 2px;
}

.full-width { width: 100%; }

/* Hero Section */
.hero {
    --hero-tilt-x-deg: 0deg;
    --hero-tilt-y-deg: 0deg;
    height: 85vh;
    min-height: 520px;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: var(--white);
    overflow: hidden;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(640px 420px at 18% 12%, rgba(215,161,90,0.35), transparent 60%),
        radial-gradient(520px 340px at 82% 0%, rgba(46,111,142,0.22), transparent 60%);
    opacity: 0.45;
    animation: hero-glow 18s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 26%;
    background: linear-gradient(180deg, rgba(14,34,54,0) 0%, rgba(246,238,227,0.85) 100%);
    pointer-events: none;
    z-index: 0;
}

.overlay {
    background: linear-gradient(180deg, rgba(14,34,54,0.18) 0%, rgba(14,34,54,0.88) 100%);
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px) saturate(120%);
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    animation: fade-up 0.9s ease-out both;
    text-shadow: 0 24px 50px rgba(0,0,0,0.35);
}

.hero-panel {
    transform: perspective(1200px) rotateX(var(--hero-tilt-y-deg)) rotateY(var(--hero-tilt-x-deg));
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: radial-gradient(120% 120% at 20% 15%, rgba(255,255,255,0.08), rgba(255,255,255,0)) rgba(8,18,30,0.7);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 22px;
    padding: 2.4rem 2.1rem;
    backdrop-filter: blur(12px) saturate(140%);
    box-shadow: 0 34px 90px rgba(0,0,0,0.38), inset 0 0 0 1px rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
    isolation: isolate;
    max-width: 760px;
    margin: 0 auto;
}

.hero-panel::before {
    content: "";
    position: absolute;
    top: -45%;
    right: -20%;
    width: 320px;
    height: 320px;
    background: radial-gradient(180px 180px at 50% 50%, rgba(215,161,90,0.32), transparent 70%);
    filter: blur(3px);
    opacity: 0.8;
    transform: rotate(8deg);
    z-index: 0;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: -10%;
    background: linear-gradient(120deg, rgba(215,161,90,0.12), rgba(46,111,142,0.18));
    mix-blend-mode: screen;
    opacity: 0.35;
    z-index: 0;
}

.hero-panel > * {
    position: relative;
    z-index: 1;
}

.scroll-cue {
    position: absolute;
    bottom: 2.2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.45);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    gap: 0.2rem;
    background: rgba(12,23,35,0.45);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
    overflow: hidden;
    z-index: 2;
}

.scroll-cue__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary-color);
    opacity: 0.85;
    animation: cue-pulse 1.8s ease-in-out infinite;
}

.scroll-cue__icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    animation: cue-bob 1.8s ease-in-out infinite;
}

.scroll-cue__icon svg {
    width: 100%;
    height: 100%;
    fill: var(--white);
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.scroll-cue:hover {
    transform: translateX(-50%) translateY(-4px);
    border-color: rgba(215,161,90,0.7);
    background: rgba(12,23,35,0.65);
}

.scroll-cue:focus-visible {
    outline: 2px solid rgba(215,161,90,0.8);
    outline-offset: 3px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.15rem;
    margin-bottom: 2rem;
    opacity: 0.85;
    font-weight: 300;
    text-wrap: balance;
}

.subtitle:empty {
    display: none;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-contacts {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    text-align: center;
}

.contact-dropdown {
    width: min(860px, 100%);
    position: relative;
}

.contact-dropdown summary {
    list-style: none;
}

.contact-dropdown summary::-webkit-details-marker {
    display: none;
}

.contact-dropdown summary.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.contact-dropdown summary.btn::after {
    content: "▾";
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.contact-dropdown[open] summary.btn::after {
    transform: rotate(180deg);
}

.contact-dropdown[open] summary.btn {
    background-color: rgba(255,255,255,0.12);
}

.contact-panel {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 0;
    right: 0;
    background: rgba(14,34,54,0.55);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: left;
    backdrop-filter: blur(8px);
    animation: fade-up 0.2s ease-out;
    box-shadow: 0 24px 50px rgba(10,18,28,0.35);
    z-index: 5;
}

.contact-panel::before {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(215,161,90,0.8), transparent);
    opacity: 0.7;
    pointer-events: none;
}

.hero-contacts-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.8);
    margin-bottom: 1rem;
}

.hero-contacts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.hero-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.hero-contact:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.contact-name {
    font-weight: 600;
    color: var(--white);
}

.contact-role {
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
}

.contact-number {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
}

.contact-actions {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.contact-panel .btn-ghost {
    color: var(--white);
    border-color: rgba(255,255,255,0.6);
}

.contact-panel .btn-ghost:hover {
    color: var(--secondary-color);
    border-color: rgba(215,161,90,0.7);
}

/* Key Points */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid transparent;
    background-image:
        linear-gradient(var(--white), var(--white)),
        linear-gradient(135deg, rgba(215,161,90,0.35), rgba(46,111,142,0.22));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(14,34,54,0.04);
    position: relative;
    overflow: hidden;
    animation: fade-up 0.7s ease-out both;
    transition: transform 0.3s, box-shadow 0.3s;
}

.feature-card::after,
.narrative-card::after,
.doc-item::after,
.map-embed::after,
.inquadramento-figure::after {
    content: "";
    position: absolute;
    inset: -40% -30%;
    background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,0.45) 50%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transform: translateX(-40%);
    transition: opacity 0.6s ease, transform 0.9s ease;
    pointer-events: none;
}

.feature-card:hover::after,
.narrative-card:hover::after,
.doc-item:hover::after,
.map-embed:hover::after,
.inquadramento-figure:hover::after {
    opacity: 0.35;
    transform: translateX(40%);
}

.map-embed:hover,
.inquadramento-figure:hover {
    background-image:
        linear-gradient(var(--white), var(--white)),
        linear-gradient(135deg, rgba(215,161,90,0.52), rgba(46,111,142,0.28));
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), rgba(215,161,90,0));
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-deep), inset 0 0 0 1px rgba(14,34,54,0.05);
    background-image:
        linear-gradient(var(--white), var(--white)),
        linear-gradient(135deg, rgba(215,161,90,0.45), rgba(46,111,142,0.3));
}

.feature-card h3 {
    font-size: 1.35rem;
    position: relative;
    padding-left: 1rem;
}

.feature-card h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(215,161,90,0.18);
    transform: translateY(-50%);
}

.feature-card p {
    color: #3a4752;
    line-height: 1.6;
}

.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }

/* Narrative */
.narrative {
    background: linear-gradient(140deg, rgba(215,161,90,0.16) 0%, rgba(46,111,142,0.08) 45%, #ffffff 100%);
    border-top: 1px solid rgba(14,34,54,0.08);
    border-bottom: 1px solid rgba(14,34,54,0.08);
}

.narrative-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 3rem;
    align-items: start;
}

.narrative-text p {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
    color: #2B3944;
}

html:lang(it) .narrative-text p:first-of-type::first-letter,
html:lang(en) .narrative-text p:first-of-type::first-letter,
html:lang(fr) .narrative-text p:first-of-type::first-letter,
html:lang(es) .narrative-text p:first-of-type::first-letter,
html:lang(pt) .narrative-text p:first-of-type::first-letter,
html:lang(de) .narrative-text p:first-of-type::first-letter,
html:lang(ru) .narrative-text p:first-of-type::first-letter,
html:lang(tr) .narrative-text p:first-of-type::first-letter {
    float: left;
    font-family: var(--font-heading);
    font-size: 3.2rem;
    line-height: 0.9;
    padding: 0.15rem 0.5rem 0 0;
    color: var(--primary-color);
    text-shadow: 0 16px 30px rgba(12,34,54,0.2);
}

.narrative-text {
    animation: fade-up 0.7s ease-out both;
}

.narrative-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2.2rem;
    border: 1px solid transparent;
    background-image:
        linear-gradient(var(--white), var(--white)),
        linear-gradient(135deg, rgba(215,161,90,0.3), rgba(46,111,142,0.18));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-soft), inset 0 0 0 1px rgba(14,34,54,0.04);
    animation: fade-up 0.7s ease-out both;
    animation-delay: 0.1s;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.narrative-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-deep), inset 0 0 0 1px rgba(14,34,54,0.05);
}

.narrative-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.narrative-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.narrative-card li {
    margin-bottom: 0.75rem;
    padding-left: 1.2rem;
    position: relative;
}

.narrative-card li::before {
    content: "•";
    color: var(--secondary-color);
    position: absolute;
    left: 0;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.gallery-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius-xl);
    cursor: pointer;
    position: relative;
    background: var(--white);
    box-shadow: var(--shadow-card);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(14,34,54,0.08);
    padding: 0;
    text-align: left;
    width: 100%;
    font: inherit;
    appearance: none;
}

.gallery-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: soft-light;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s, filter 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(14,34,54,0) 45%, rgba(14,34,54,0.45));
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:focus-visible::after {
    opacity: 1;
}

.gallery-item:hover::before,
.gallery-item:focus-visible::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-4px) scale(1.01) rotateX(1.2deg) rotateY(-1deg);
    box-shadow: 0 24px 50px rgba(12,34,54,0.16);
}

.gallery-item:focus-visible {
    outline: 2px solid rgba(215,161,90,0.8);
    outline-offset: 3px;
}

.gallery-item--wide {
    grid-column: span 2;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.2rem;
    color: var(--white);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    z-index: 2;
    background: linear-gradient(180deg, rgba(14,34,54,0) 40%, rgba(14,34,54,0.6) 100%);
    backdrop-filter: blur(2px);
}

.gallery-item:hover .gallery-overlay,
.gallery-item:focus-visible .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-caption {
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 12px 24px rgba(0,0,0,0.35);
}

.gallery-cta {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 0.35rem;
    color: rgba(255,255,255,0.8);
}

/* Documents */
.docs-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 600px;
    margin-top: 1.5rem;
}

.doc-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: var(--white);
    border: 1px solid transparent;
    background-image:
        linear-gradient(var(--white), var(--white)),
        linear-gradient(135deg, rgba(215,161,90,0.32), rgba(46,111,142,0.18));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-radius: var(--border-radius);
    box-shadow: 0 12px 28px rgba(12,34,54,0.08), inset 0 0 0 1px rgba(14,34,54,0.04);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    gap: 1rem;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.doc-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, rgba(215,161,90,0.7), rgba(46,111,142,0.6));
    opacity: 0.55;
    transform: scaleY(0.35);
    transform-origin: top;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.doc-item:hover::before {
    transform: scaleY(1);
    opacity: 0.8;
}

.doc-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 40px rgba(12,34,54,0.14);
    background-image:
        linear-gradient(var(--white), var(--white)),
        linear-gradient(135deg, rgba(215,161,90,0.52), rgba(46,111,142,0.28));
}

.doc-item .icon {
    font-size: 1.35rem;
    margin-right: 0.9rem;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(215,161,90,0.14);
    color: var(--primary-color);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(215,161,90,0.18);
}

.doc-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.doc-name { font-weight: 600; }
.doc-meta { font-size: 0.8rem; color: var(--muted-color); text-transform: uppercase; letter-spacing: 0.5px; }

.doc-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.doc-actions .btn-ghost {
    position: relative;
    overflow: hidden;
}

.doc-actions .btn-ghost::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(215,161,90,0.14), rgba(46,111,142,0.1), rgba(215,161,90,0.14));
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.doc-actions .btn-ghost:hover::after,
.doc-actions .btn-ghost:focus-visible::after {
    opacity: 1;
}

/* Inquadramento */
.inquadramento-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
}

.inquadramento-figure {
    margin: 0;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1rem;
    border: 1px solid rgba(14,34,54,0.08);
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.inquadramento-figure img {
    width: 100%;
    display: block;
    border-radius: calc(var(--radius-xl) - 6px);
}

.inquadramento-figure figcaption {
    margin-top: 0.75rem;
}

/* Dove si trova */
.location-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem;
    align-items: center;
}

.location-line {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
}

.map-actions {
    margin-top: 1.25rem;
}

.map-embed-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.map-embed {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1rem;
    border: 1px solid transparent;
    background-image:
        linear-gradient(var(--white), var(--white)),
        linear-gradient(135deg, rgba(215,161,90,0.32), rgba(46,111,142,0.18));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-card), inset 0 0 0 1px rgba(14,34,54,0.04);
    position: relative;
    overflow: hidden;
}

.map-embed iframe {
    width: 100%;
    height: 380px;
    border: 0;
    border-radius: calc(var(--radius-xl) - 6px);
}

.map-note {
    font-size: 0.85rem;
    margin: 0;
    display: block;
    position: relative;
    padding: 0.45rem 0.8rem 0.45rem 1.8rem;
    border-radius: 999px;
    border: 1px solid rgba(14,34,54,0.08);
    background: rgba(14,34,54,0.04);
}

.map-note::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 0.95em;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(46,111,142,0.14);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin-top: 2rem;
    padding: 2rem;
    border-radius: 22px;
    border: 1px solid rgba(255,255,255,0.14);
    background: rgba(8,18,30,0.55);
    box-shadow: 0 26px 60px rgba(0,0,0,0.35);
    backdrop-filter: blur(8px) saturate(120%);
    position: relative;
    overflow: hidden;
}

.contact-form::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(215,161,90,0.85), rgba(46,111,142,0.65), transparent);
    opacity: 0.8;
    pointer-events: none;
}

.contact-form:focus-within {
    box-shadow: 0 32px 70px rgba(0,0,0,0.4), 0 0 0 1px rgba(215,161,90,0.25);
}

.contact-alt {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.contact-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-left: 0.4rem;
}

.contact-links a {
    color: var(--white);
    font-weight: 600;
    position: relative;
    padding-bottom: 0.1rem;
}

.contact-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(215,161,90,0.7));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease, opacity 0.22s ease;
    opacity: 0.8;
}

.contact-links a:hover {
    color: var(--secondary-color);
}

.contact-links a:hover::after,
.contact-links a:focus-visible::after {
    transform: scaleX(1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
}

input, select, textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.3);
    background: linear-gradient(160deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    color: var(--white);
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}

input::placeholder,
textarea::placeholder {
    color: rgba(255,255,255,0.6);
}

select option {
    color: var(--text-color);
    background: var(--white);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
    box-shadow: 0 0 0 3px rgba(215,161,90,0.24), 0 18px 40px rgba(0,0,0,0.12);
}

/* Checkbox specific styles */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    flex: 1 1 auto;
    min-width: 0;
    margin-bottom: 0;
}

/* Footer / Caveats */
.footer {
    padding: 2.5rem 0;
    border-top: 1px solid rgba(14,34,54,0.08);
    font-size: 0.85rem;
    color: var(--muted-color);
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f7f1e9 100%);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.footer-language {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.85rem;
    padding: 1rem 1.4rem;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(14,34,54,0.08);
    background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(238,244,247,0.85));
    box-shadow: 0 16px 30px rgba(12,34,54,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-language:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 38px rgba(12,34,54,0.14);
}

.footer-language-cta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    text-align: center;
}

.footer-language-cta span {
    font-weight: 600;
    color: var(--primary-color);
}

.footer-language-controls {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-language-controls label {
    font-weight: 600;
    color: var(--muted-color);
}

.footer-select {
    width: auto;
    min-width: 140px;
    padding: 0.45rem 0.9rem;
    border: 1px solid rgba(14,34,54,0.2);
    background: #ffffff;
    color: var(--text-color);
    border-radius: 999px;
    font-size: 0.85rem;
}

.footer-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(215,161,90,0.2);
}

.whatsapp-float {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    background: #25D366;
    color: #0b2211;
    font-weight: 700;
    padding: 0.75rem 1.2rem;
    border-radius: 999px;
    box-shadow: 0 16px 30px rgba(37,211,102,0.35);
    z-index: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.75rem;
    box-shadow:
        0 16px 30px rgba(37,211,102,0.35),
        0 0 0 0 rgba(37,211,102,0.28);
    animation: whatsapp-glow 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 36px rgba(37,211,102,0.45);
}

.whatsapp-float:focus-visible {
    outline: 2px solid rgba(255,255,255,0.8);
    outline-offset: 3px;
}

.caveats {
    background: #fff3cd;
    color: #856404;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.caveats h4 { margin-bottom: 0.5rem; color: #856404; }
.caveats ul { padding-left: 1.2rem; }
.caveats li { margin-bottom: 0.5rem; }

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: rgba(10,18,28,0.92);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
}

.lightbox.is-open {
    display: flex;
    animation: fade-in 0.3s ease-out;
}

.lightbox-body {
    width: min(90vw, 1000px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content {
    display: block;
    width: 100%;
    max-width: 1000px;
    max-height: 75vh;
    object-fit: contain;
    animation-name: zoom;
    animation-duration: 0.3s;
    border-radius: var(--radius-xl);
    box-shadow: 0 28px 70px rgba(0,0,0,0.45);
}

.lightbox-caption {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

#caption {
    font-weight: 600;
    color: var(--white);
}

#lightbox-counter {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: #f8f8f8;
    font-size: 32px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--secondary-color);
    border-color: rgba(215,161,90,0.7);
    background: rgba(255,255,255,0.14);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.08);
    color: var(--white);
    font-size: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-nav:hover,
.lightbox-nav:focus {
    border-color: rgba(215,161,90,0.7);
    background: rgba(255,255,255,0.16);
    color: var(--secondary-color);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes hero-glow {
    0% { transform: translate3d(-2%, -2%, 0); }
    50% { transform: translate3d(2%, 2%, 0); }
    100% { transform: translate3d(-2%, -2%, 0); }
}

@keyframes cue-bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@keyframes cue-pulse {
    0%, 100% { transform: scale(1); opacity: 0.85; }
    50% { transform: scale(1.2); opacity: 0.45; }
}

@keyframes whatsapp-glow {
    0% { box-shadow: 0 16px 30px rgba(37,211,102,0.35), 0 0 0 0 rgba(37,211,102,0.18); }
    50% { box-shadow: 0 18px 34px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0.0); }
    100% { box-shadow: 0 16px 30px rgba(37,211,102,0.35), 0 0 0 0 rgba(37,211,102,0.18); }
}

/* Responsive */
@media (max-width: 768px) {
    .section {
        padding: 3.5rem 0;
    }

    .section::after {
        display: none;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .hero {
        height: auto;
        min-height: 70vh;
        min-height: 70svh;
    }

    .overlay {
        padding: 5.5rem 0 3.5rem;
        align-items: flex-start;
    }

    .hero {
        background-position: center;
    }

    .hero-panel {
        padding: 1.6rem 1.4rem;
        border-radius: 18px;
        transform: none;
    }


    .hero-content {
        max-width: 100%;
    }

    .scroll-cue {
        bottom: 1.4rem;
        width: 40px;
        height: 40px;
    }

    .scroll-cue__icon {
        width: 16px;
        height: 16px;
    }

    .hero h1 { font-size: 2.2rem; }
    .subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .btn { width: 100%; }

    .contact-panel {
        padding: 1.25rem;
        max-height: 70vh;
        overflow-y: auto;
        position: static;
        margin-top: 0.75rem;
    }

    .hero-contacts-grid {
        grid-template-columns: 1fr;
    }

    .hero-contact {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-actions {
        width: 100%;
    }

    .contact-actions .btn {
        flex: 1;
        width: auto;
    }

    .contact-links {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
        margin-left: 0;
    }

    .doc-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .doc-actions {
        width: 100%;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .doc-actions .btn {
        flex: 1;
        width: auto;
    }

    .section-lead {
        margin-top: 0;
        margin-bottom: 1.75rem;
    }

    .feature-card,
    .narrative-card {
        padding: 1.6rem;
    }

    .map-embed {
        min-height: 260px;
        padding: 0.75rem;
    }

    .map-embed iframe {
        height: 280px;
    }

    .whatsapp-float {
        right: 1rem;
        bottom: 1rem;
    }

    .lightbox {
        padding: 1.5rem;
    }

    .lightbox-content {
        max-height: 65vh;
    }

    .lightbox-caption {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
    }

    .lightbox-nav {
        top: auto;
        bottom: 1.5rem;
        transform: none;
    }
}

@media (max-width: 600px) {
    .container {
        width: 92%;
    }

    .section {
        padding: 3rem 0;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .section-title::after {
        width: 60px;
    }

    .btn {
        font-size: 0.78rem;
        letter-spacing: 0.06em;
        padding: 0.75rem 1.3rem;
    }

    .hero h1 {
        font-size: 1.95rem;
    }

    .hero-actions {
        gap: 0.75rem;
    }

    .hero-contacts {
        margin-top: 1.75rem;
    }

    .contact-dropdown summary.btn {
        width: 100%;
        justify-content: center;
    }

    .hero-contacts-title {
        font-size: 0.75rem;
        letter-spacing: 0.16em;
    }

    .narrative-text p {
        font-size: 1rem;
    }

    .section-lead {
        padding-left: 0;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-card h3 {
        padding-left: 0.85rem;
    }

    .feature-card h3::before {
        box-shadow: 0 0 0 3px rgba(215,161,90,0.16);
    }

    .gallery-grid {
        gap: 1rem;
    }

    .inquadramento-figure {
        padding: 0.75rem;
    }

    .doc-item {
        padding: 0.85rem;
    }

    .contact-actions {
        flex-direction: column;
    }

    .contact-actions .btn,
    .doc-actions .btn {
        width: 100%;
    }

    html:lang(it) .narrative-text p:first-of-type::first-letter,
    html:lang(en) .narrative-text p:first-of-type::first-letter,
    html:lang(fr) .narrative-text p:first-of-type::first-letter,
    html:lang(es) .narrative-text p:first-of-type::first-letter,
    html:lang(pt) .narrative-text p:first-of-type::first-letter,
    html:lang(de) .narrative-text p:first-of-type::first-letter,
    html:lang(ru) .narrative-text p:first-of-type::first-letter,
    html:lang(tr) .narrative-text p:first-of-type::first-letter {
        font-size: 2.6rem;
    }

    .map-embed iframe {
        height: 260px;
    }

    .map-note {
        border-radius: 16px;
        padding-left: 1.6rem;
    }

    .map-note::before {
        left: 0.65rem;
    }

    .whatsapp-float {
        font-size: 0.65rem;
        padding: 0.6rem 1rem;
    }
}

@media (max-width: 960px) {
    .narrative-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item--wide {
        grid-column: span 1;
    }

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

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

@media (min-width: 1024px) {
    .hero {
        background-attachment: fixed;
    }
}

@media (max-width: 1024px) and (max-height: 700px) {
    .hero {
        height: auto;
        min-height: 440px;
    }

    .overlay {
        padding: 4rem 0 3rem;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-content,
    .feature-card,
    .narrative-text,
    .narrative-card,
    .contact-panel,
    .lightbox,
    .lightbox-content {
        animation: none;
    }

    .hero::before {
        animation: none;
    }

    .feature-card::after,
    .narrative-card::after,
    .doc-item::after,
    .map-embed::after,
    .inquadramento-figure::after,
    .gallery-overlay,
    .scroll-cue__dot,
    .scroll-cue__icon,
    .whatsapp-float {
        transition: none;
    }

    .scroll-progress__bar {
        transition: none;
    }

    .section::after {
        transition: none;
        transform: none;
    }

    .scroll-cue {
        animation: none;
        transform: translateX(-50%);
    }

    .scroll-cue__dot,
    .scroll-cue__icon,
    .whatsapp-float {
        animation: none;
    }

    .js-enabled .reveal {
        transition: none;
        transform: none;
        opacity: 1;
    }
}
