/* RESET */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* FONT PRINCIPALE DEL SITO */
body, 
.nav-center a,
.hero-content,
.studio-text,
.chi-sinistra,
.storia-container,
.servizi-section,
.servizio-card,
.contatti-section {
    font-family: "Lora", serif !important;
}

body {
    margin: 0;
    font-family: "Montserrat", system-ui, sans-serif;
    background-color: #050814;
    color: #fff;
    line-height: 1.6;
}

/* ========================= */
/* NAVBAR */
/* ========================= */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(5, 8, 20, 0.9);
    backdrop-filter: blur(14px);
    z-index: 1000;
    border-bottom: 1px solid rgba(200,164,92,0.25);
}

.navbar-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #C8A45C;
    text-transform: uppercase;
    font-family: "Georgia", serif;
    transform: translateX(-14px);
}

.nav-center {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-center a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: 0.3s;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
}

.nav-center a:hover {
    color: #C8A45C;
    border-bottom-color: rgba(200,164,92,0.5);
}

.nav-center a.active {
    color: #C8A45C;
    font-weight: 600;
    border-bottom-color: #C8A45C;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 3px;
    background: #C8A45C;
    border-radius: 2px;
}

/* ========================= */
/* HERO */
/* ========================= */

.hero {
    min-height: 100vh;
    background: url('img/milano1.png') center center / cover no-repeat;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 24px;
    filter: brightness(1.35) contrast(1.15);
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.20),
        rgba(0,0,0,0.85)
    );
    backdrop-filter: brightness(1.12) blur(2px);
}

.hero-content {
    position: relative;
    max-width: 900px;
    margin-top: 120px;
    text-align: center;
}

.hero-content * {
    opacity: 0;
    animation: fadeUp 1.2s ease-out forwards;
    animation-delay: 0.2s;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 18px;
    letter-spacing: 0.30em;
    color: #C8A45C;
    text-transform: uppercase;
    margin-bottom: 24px;
    font-family: "Lora", serif;
}

.hero-title {
    font-size: 54px;
    line-height: 1.2;
    margin-bottom: 34px;
    font-family: "Lora", serif;
    font-weight: 700;
}

.hero-text {
    font-size: 21px;
    line-height: 1.85;
    margin-bottom: 100px;
    font-family: "Lora", serif;
}

/* ========================= */
/* BOTTONI SERI */
/* ========================= */

.btn-primary,
.btn-secondary,
.contatti-btn {
    padding: 16px 42px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 17px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: 0.25s ease;
    transform: translateY(0);
    font-family: "Georgia", serif;
    color: #C8A45C;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(200,164,92,0.45);
    backdrop-filter: blur(4px);
}

.btn-primary:hover,
.btn-secondary:hover,
.contatti-btn:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.12);
    box-shadow: 0 10px 26px rgba(0,0,0,0.45);
}

.scroll-indicator {
    margin-top: 120px;
    font-size: 24px;
    letter-spacing: 0.40em;
    color: #C8A45C;
    opacity: 1;
    font-weight: 700;
}

.scroll-indicator:hover {
    color: #C8A45C;
}

/* ========================= */
/* STUDIO */
/* ========================= */

.studio-section {
    padding: 130px 24px 80px;
    background: #050814;
}

.studio-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 40px;
    align-items: flex-end; /* allinea in basso foto grande e blocco testo+mini-foto */
}

.studio-photo img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    border: 3px solid #C8A45C;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    /* content: url('img/benvenuto.jpeg');  RIMOSSO */
}

.studio-text h2 {
    color: #C8A45C;
    letter-spacing: 3px;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.studio-text h1 {
    font-size: 30px;
    margin-bottom: 18px;
}

.studio-text p {
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 12px;
}

.studio-values {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.studio-values span {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(200,164,92,0.4);
    color: #C8A45C;
    font-size: 13px;
}

/* MINI GALLERY SOTTO I VALORI / SOTTO IL TESTO */
.studio-mini-gallery {
    margin-top: 40px;
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}

.mini-photo {
    width: 240px;
    height: 160px;
    overflow: hidden;
    border-radius: 14px;
    border: 3px solid #C8A45C;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.mini-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ========================= */
/* CHI SIAMO */
/* ========================= */

.chi-siamo-section {
    padding: 130px 24px 80px;
    background: #050814;
}

.chi-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

.chi-sinistra h2,
.storia-container h2 {
    color: #C8A45C;
    letter-spacing: 3px;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.chi-sinistra h1,
.storia-container h1 {
    font-size: 28px;
    margin-bottom: 18px;
}

.soci-container {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

/* FOTO SOCI PROFESSIONALI */
.socio-card img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    object-position: center;
    border-radius: 14px;
    border: 3px solid #C8A45C;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
}

.socio-card h3 {
    font-size: 16px;
    margin-bottom: 4px;
}

.socio-card p {
    font-size: 14px;
    color: #cfd3e6;
}

.storia-container p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.timeline-item {
    margin-bottom: 22px;
}

.timeline-item h3 {
    color: #C8A45C;
    font-size: 16px;
    margin-bottom: 6px;
}

.timeline-item p {
    font-size: 14px;
    line-height: 1.6;
}

/* ========================= */
/* SERVIZI */
/* ========================= */

.servizi-section {
    padding: 130px 24px 80px;
    background: #050814;
    text-align: center;
}

.servizi-section h2 {
    color: #C8A45C;
    letter-spacing: 3px;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.servizi-section h1 {
    font-size: 28px;
    margin-bottom: 20px;
}

.servizi-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 15px;
    line-height: 1.7;
    color: #cfd3e6;
}

.servizi-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.servizio-card {
    background: rgba(255,255,255,0.03);
    border-radius: 10px;
    border: 1px solid rgba(200,164,92,0.35);
    padding: 18px 16px;
    text-align: left;
    transition: 0.25s;
}

.servizio-card h3 {
    color: #C8A45C;
    font-size: 15px;
    margin-bottom: 8px;
}

.servizio-card p {
    font-size: 14px;
    line-height: 1.6;
    color: #cfd3e6;
}

.servizio-card:hover {
    background: rgba(255,255,255,0.06);
    transform: translateY(-3px);
}

.servizi-cta {
    margin-top: 40px;
}

/* ========================= */
/* CONTATTI */
/* ========================= */

.contatti-section {
    padding: 140px 40px 120px;
    background: #f4f1e8;
    color: #0a0f1a;
}

.contatti-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
}

.contatti-info h2 {
    letter-spacing: 3px;
    font-size: 18px;
    margin-bottom: 10px;
    color: #C8A45C;
}

.contatti-blocco h3 {
    font-size: 16px;
    color: #C8A45C;
    margin-bottom: 6px;
}

.contatti-btn {
    margin-top: 20px;
    display: inline-block;
}

/* TASTO TORNA SU (sotto la mappa, centrato) */
.torna-su-wrap {
    text-align: center;
    margin-top: 40px;
}

.torna-su {
    color: #0a0f1a;
    background: rgba(10, 15, 26, 0.04);
    border: 1px solid rgba(200, 164, 92, 0.75);
}

.torna-su:hover {
    color: #C8A45C;
    background: #0a0f1a;
    border-color: #C8A45C;
    box-shadow: 0 10px 26px rgba(10, 15, 26, 0.25);
}

/* FINESTRA "CHIAMA" (fallback su PC senza app telefonica) */
.call-popup {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 20, 0.72);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
}

.call-popup.show {
    display: flex;
}

.call-popup-box {
    position: relative;
    background: #0a0f1a;
    color: #fff;
    border: 1px solid rgba(200, 164, 92, 0.55);
    border-radius: 12px;
    padding: 40px 36px 30px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.call-popup-box h3 {
    color: #C8A45C;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 16px;
    margin-bottom: 14px;
}

.call-popup-number {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 22px;
}

.call-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.call-popup-copy,
.call-popup-cancel {
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s ease;
}

.call-popup-copy {
    color: #0a0f1a;
    background: #C8A45C;
    border: 1px solid #C8A45C;
}

.call-popup-copy:hover {
    background: #dcbd74;
}

.call-popup-cancel {
    color: #C8A45C;
    background: transparent;
    border: 1px solid rgba(200, 164, 92, 0.55);
}

.call-popup-cancel:hover {
    background: rgba(200, 164, 92, 0.12);
}

.call-popup-close {
    position: absolute;
    top: 8px;
    right: 14px;
    background: none;
    border: none;
    color: #cfd3e6;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.call-popup-close:hover {
    color: #C8A45C;
}

.call-popup-note {
    margin-top: 18px;
    font-size: 13px;
    color: #9aa1bd;
}

/* MAPPA */
.contatti-mappa {
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #e8e4d9;
}

.contatti-mappa iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.mappa-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    color: #0a0f1a;
}

.mappa-placeholder p {
    max-width: 360px;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 16px;
}

.mappa-carica {
    font-family: "Georgia", serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0a0f1a;
    background: #C8A45C;
    border: 1px solid #C8A45C;
    border-radius: 8px;
    padding: 12px 24px;
    cursor: pointer;
    transition: 0.25s ease;
}

.mappa-carica:hover {
    background: #dcbd74;
}

/* ========================= */
/* FOOTER */
/* ========================= */

.footer {
    background: #0a0f1a;
    color: #fff;
    padding: 60px 40px 30px;
}

.footer-layout {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.footer-col h3 {
    color: #C8A45C;
    margin-bottom: 12px;
    font-size: 18px;
}

.footer-col p {
    font-size: 14px;
    color: #d7d9e6;
    margin-bottom: 6px;
}

.footer-col a {
    display: block;
    color: #fff;
    text-decoration: none;
    margin-bottom: 8px;
    font-size: 15px;
}

.footer-col a:hover {
    color: #C8A45C;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    color: #cfcfcf;
}

.footer-legal {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #cfcfcf;
    line-height: 1.6;
}

/* ========================= */
/* RESPONSIVE */
/* ========================= */

@media (max-width: 1024px) {
    .studio-layout,
    .chi-layout {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 900px) {
    .hamburger {
        display: flex;
    }

    .nav-center {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        background: rgba(5, 8, 20, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 16px 0;
        gap: 12px;
        display: none;
    }

    .nav-center.show {
        display: flex;
    }

    .contatti-layout {
        grid-template-columns: 1fr;
    }

    .footer-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-content {
        margin-top: 130px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-text {
        font-size: 16px;
    }

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

/* NAVBAR BASE */
.navbar {
    width: 100%;
    background: #0d0d0d;
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    letter-spacing: 0.5px;
    padding-bottom: 4px;
    transition: 0.3s ease;
}

.navbar a:hover {
    color: #d4af37;
}

/* 🔥 EVIDENZIAZIONE PAGINA ATTIVA */
body.home-page .navbar a[href="index.html"],
body.studio-page .navbar a[href="studio.html"],
body.contatti-page .navbar a[href="contatti.html"] {
    color: #d4af37;
    font-weight: 600;
    border-bottom: 2px solid #d4af37;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .navbar ul {
        flex-direction: column;
        gap: 20px;
    }
}

/* Evidenziazione navbar corretta */
.nav-item.active {
    color: #C8A45C !important;
    border-bottom: 2px solid #C8A45C;
    font-weight: 600;
}

.storia-container {
    flex: 2;                 /* OCCUPA PIÙ SPAZIO */
    min-width: 400px;
}

.chi-sinistra {
    flex: 1;                 /* OCCUPA MENO SPAZIO */
    min-width: 350px;
}

/* ========================= */
/* BOTTONI HERO MOBILE */
/* ========================= */

@media (max-width: 768px) {

    .hero-content a,
    .btn-primary,
    .btn-secondary {
        display: block;
        width: 100%;
        max-width: 340px;
        margin: 0 auto 18px auto;
        text-align: center;
    }

    .btn-primary:last-child,
    .btn-secondary:last-child {
        margin-bottom: 0;
    }

}

/* ========================= */
/* MODULO CONTATTI */
/* ========================= */

.modulo-contatti {
    max-width: 1200px;
    margin: 70px auto 0;
    scroll-margin-top: 110px;
    background: #ffffff;
    border: 1px solid rgba(200, 164, 92, 0.45);
    border-radius: 14px;
    padding: 44px 40px;
    box-shadow: 0 14px 40px rgba(10, 15, 26, 0.10);
}

.modulo-testo h2 {
    letter-spacing: 3px;
    font-size: 18px;
    margin-bottom: 10px;
    color: #C8A45C;
}

.modulo-testo h1 {
    font-size: 28px;
    color: #0a0f1a;
    margin-bottom: 12px;
}

.modulo-desc {
    max-width: 700px;
    font-size: 15px;
    line-height: 1.7;
    color: #4a5169;
    margin-bottom: 30px;
}

.modulo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.campo-full {
    grid-column: 1 / -1;
}

.campo label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #0a0f1a;
}

.campo input,
.campo textarea {
    font-family: inherit;
    font-size: 16px;
    color: #0a0f1a;
    background: #fbfaf6;
    border: 1px solid rgba(200, 164, 92, 0.55);
    border-radius: 8px;
    padding: 13px 16px;
    transition: 0.25s ease;
    width: 100%;
}

.campo textarea {
    resize: vertical;
    min-height: 140px;
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: #9aa1bd;
}

.campo input:focus,
.campo textarea:focus {
    outline: none;
    background: #fff;
    border-color: #C8A45C;
    box-shadow: 0 0 0 3px rgba(200, 164, 92, 0.25);
}

.campo input.invalid,
.campo textarea.invalid {
    border-color: #c0392b;
    background: #fdf3f2;
}

.campo-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.campo-checkbox input[type="checkbox"] {
    width: auto;
    margin-top: 4px;
    accent-color: #C8A45C;
    cursor: pointer;
}

.campo-checkbox label {
    font-size: 14px;
    font-weight: 400;
    color: #0a0f1a;
    line-height: 1.5;
    cursor: pointer;
}

.campo-checkbox label a {
    color: #C8A45C;
    text-decoration: underline;
}

.campo-checkbox input[type="checkbox"].invalid {
    outline: 2px solid #c0392b;
    outline-offset: 2px;
}

.modulo-azioni {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.modulo-invia {
    font-family: "Georgia", serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0a0f1a;
    background: #C8A45C;
    border: 1px solid #C8A45C;
    border-radius: 8px;
    padding: 16px 42px;
    cursor: pointer;
    transition: 0.25s ease;
}

.modulo-invia:hover {
    transform: translateY(-4px);
    background: #dcbd74;
    box-shadow: 0 10px 26px rgba(10, 15, 26, 0.25);
}

.modulo-invia:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.modulo-nota {
    font-size: 13px;
    color: #6b7290;
}

.modulo-status {
    display: none;
    margin-top: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.modulo-status.show {
    display: block;
}

.modulo-status.ok {
    color: #14653a;
    background: #e6f6ec;
    border: 1px solid #9fd8b6;
}

.modulo-status.errore {
    color: #8f2b1f;
    background: #fdecea;
    border: 1px solid #f0b3ad;
}

.modulo-status.info {
    color: #6b5016;
    background: #fdf6e6;
    border: 1px solid #e6cd8f;
}

/* RESPONSIVE MODULO */
@media (max-width: 900px) {
    .modulo-grid {
        grid-template-columns: 1fr;
    }

    .modulo-contatti {
        padding: 32px 22px;
        margin-top: 50px;
    }

    .modulo-invia {
        width: 100%;
    }
}

/* ========================= */
/* PAGINA GRAZIE (grazie.html) */
/* ========================= */

.grazie-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 150px 24px 80px;
    background: #050814;
}

.grazie-card {
    max-width: 720px;
    width: 100%;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 164, 92, 0.45);
    border-radius: 16px;
    padding: 54px 44px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.grazie-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    border-radius: 50%;
    background: #C8A45C;
    color: #0a0f1a;
    font-size: 38px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.grazie-card h2 {
    color: #C8A45C;
    letter-spacing: 3px;
    font-size: 16px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.grazie-card h1.etichetta {
    color: #C8A45C;
    letter-spacing: 3px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-top: 0.83em;
    margin-bottom: 10px;
}

.grazie-testo {
    font-size: 16px;
    line-height: 1.75;
    color: #cfd3e6;
    margin-bottom: 32px;
}

.grazie-azioni {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.grazie-nota {
    font-size: 14px;
    line-height: 1.6;
    color: #9aa1bd;
}

.grazie-nota a {
    color: #C8A45C;
}

@media (max-width: 600px) {
    .grazie-card {
        padding: 38px 22px;
    }

    .grazie-azioni {
        flex-direction: column;
        align-items: stretch;
    }

    .grazie-azioni a {
        text-align: center;
    }
}

/* ========================= */
/* TITOLI SEZIONE: h2 class="titolo"
   (gerarchia HTML5 corretta h2 -> h3, aspect invariato rispetto agli h1) */
/* ========================= */

.chi-sinistra h2.titolo,
.storia-container h2.titolo {
    font-size: 28px;
    font-weight: 700;
    margin-top: 0.67em;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: normal;
    text-transform: none;
}

.servizi-section h2.titolo {
    font-size: 28px;
    font-weight: 700;
    margin-top: 0.67em;
    margin-bottom: 20px;
    color: #fff;
    letter-spacing: normal;
    text-transform: none;
}

.contatti-info h2.titolo {
    font-size: 32px;
    font-weight: 700;
    margin-top: 0.67em;
    margin-bottom: 0.67em;
    color: #0a0f1a;
    letter-spacing: normal;
    text-transform: none;
}

.modulo-testo h2.titolo {
    font-size: 28px;
    font-weight: 700;
    margin-top: 0.67em;
    margin-bottom: 12px;
    color: #0a0f1a;
    letter-spacing: normal;
    text-transform: none;
}

.grazie-card h2.titolo {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 0.67em;
    margin-bottom: 18px;
    color: #fff;
    letter-spacing: normal;
    text-transform: none;
}

@media (max-width: 600px) {
    .grazie-card h2.titolo {
        font-size: 24px;
    }
}

/* MAPPA: dimensioni via CSS (l'attributo width/height dell'iframe accetta solo cifre) */
.contatti-mappa iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================= */
/* FOOTER A 4 COLONNE (colonna "Legale") */
/* ========================= */

.footer-layout {
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

@media (max-width: 900px) {
    .footer-layout {
        grid-template-columns: 1fr;
    }
}

/* ========================= */
/* PAGINE LEGALI (privacy.html, cookie.html) */
/* ========================= */

.legal-section {
    min-height: 100vh;
    padding: 150px 24px 80px;
    background: #050814;
}

.legal-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(200, 164, 92, 0.45);
    border-radius: 16px;
    padding: 54px 48px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    font-family: "Lora", serif;
}

.legal-card h1.etichetta {
    color: #C8A45C;
    letter-spacing: 3px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.legal-card h2.titolo {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin-bottom: 14px;
}

.legal-update {
    font-size: 14px;
    color: #9aa1bd;
    margin-bottom: 30px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(200, 164, 92, 0.25);
}

.legal-card h3 {
    color: #C8A45C;
    font-size: 18px;
    margin: 34px 0 10px;
}

.legal-card p,
.legal-card li {
    font-size: 15px;
    line-height: 1.75;
    color: #cfd3e6;
}

.legal-card p {
    margin-bottom: 14px;
}

.legal-card ul {
    margin: 0 0 16px 22px;
}

.legal-card li {
    margin-bottom: 6px;
}

.legal-card strong {
    color: #fff;
}

.legal-card a {
    color: #C8A45C;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-card a:hover {
    color: #dcbd74;
}

.legal-box {
    background: rgba(200, 164, 92, 0.07);
    border: 1px solid rgba(200, 164, 92, 0.35);
    border-radius: 10px;
    padding: 18px 22px;
    margin: 16px 0 18px;
}

.legal-box p {
    margin-bottom: 4px;
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 14px 0 18px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.legal-table th,
.legal-table td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.6;
    color: #cfd3e6;
    border: 1px solid rgba(200, 164, 92, 0.3);
}

.legal-table th {
    color: #C8A45C;
    background: rgba(200, 164, 92, 0.08);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.legal-azioni {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(200, 164, 92, 0.25);
}

.legal-azioni .btn-primary,
.legal-azioni .btn-secondary {
    text-decoration: none;
}

@media (max-width: 600px) {
    .legal-section {
        padding: 120px 16px 60px;
    }

    .legal-card {
        padding: 34px 20px;
    }

    .legal-card h2.titolo {
        font-size: 24px;
    }

    .legal-azioni {
        flex-direction: column;
        align-items: stretch;
    }

    .legal-azioni a {
        text-align: center;
    }
}

/* ========================= */
/* COOKIE BANNER */
/* ========================= */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 40px);
    max-width: 1160px;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 10000;
    background: #0a0f1a;
    color: #fff;
    border: 1px solid rgba(200, 164, 92, 0.55);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    font-family: "Lora", serif;
    font-size: 14px;
    line-height: 1.6;
}

.cookie-banner[hidden] {
    display: none;
}

.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
}

.cookie-banner-text {
    flex: 1 1 55%;
}

.cookie-banner-text p {
    margin: 0;
    color: #cfd3e6;
}

.cookie-banner-text a {
    color: #C8A45C;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cookie-banner-text a:hover {
    color: #dcbd74;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.cookie-btn {
    font-family: "Georgia", serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 9px 14px;
    border-radius: 8px;
    border: 1px solid rgba(200, 164, 92, 0.55);
    cursor: pointer;
    transition: 0.25s ease;
    background: transparent;
    color: #C8A45C;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: #C8A45C;
    color: #0a0f1a;
    border-color: #C8A45C;
}

.cookie-btn-primary:hover {
    background: #dcbd74;
}

.cookie-btn-secondary:hover,
.cookie-btn-text:hover {
    background: rgba(200, 164, 92, 0.12);
}

.cookie-preferences {
    width: 100%;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(200, 164, 92, 0.25);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.cookie-preferences[hidden] {
    display: none;
}

.cookie-pref-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #cfd3e6;
    cursor: pointer;
}

.cookie-pref-item input[type="checkbox"] {
    accent-color: #C8A45C;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.cookie-pref-item input[type="checkbox"]:disabled {
    cursor: default;
    opacity: 0.6;
}

@media (max-width: 900px) {
    .cookie-banner {
        bottom: 10px;
        width: calc(100% - 20px);
        padding: 18px;
    }

    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-banner-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .cookie-btn {
        font-size: 12px;
        padding: 9px 12px;
    }

    .cookie-preferences {
        flex-direction: column;
        align-items: flex-start;
    }
}
