/**
 * Platform TecnoFutura
 *
 * @package tecnofutura
 * @file assets/css/tecnofutura.css
 * @version 1.0.0
 * @date 2026-10-13
 *
 * Copyright (c) 2026 massimo.gerardi@gmail.com - Tutti i diritti riservati.
 * La copia non autorizzata di questo file, tramite qualsiasi mezzo,
 * e' severamente vietata.
 *
 * Correzioni dello stile pubblico TecnoFutura. Questo file resta separato
 * dallo stile del manager e contiene solo le regole della navigazione
 * pubblica, per non mescolare le due interfacce.
 */

:root {
    --tf-green: #7cb342;
    --tf-green-dark: #537d22;
    --tf-dark: #1a1f2e;
    --tf-text: #243044;
    --tf-border: #dce4d8;
}

/* Include padding e bordi nella larghezza: campi e pulsanti restano allineati. */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id] {
    scroll-margin-top: 92px;
}

body {
    /* Rimuove i margini esterni predefiniti del browser sui quattro lati. */
    margin: 0;
    font-family: 'Inter', Arial, sans-serif;
    color: var(--tf-text);
    overflow-x: hidden;
}

/* Barra principale: logo e menu hanno un'altezza fissa e coerente. */
#navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid var(--tf-border);
    box-shadow: 0 3px 18px rgba(26, 31, 46, .08);
}

.nav-container {
    width: min(1180px, calc(100% - 40px));
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 32px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-logo-img {
    display: block;
    width: auto;
    height: 56px;
    max-width: 280px;
    object-fit: contain;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex: 1 1 auto;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 7px;
    color: #354052;
    font-size: .91rem;
    font-weight: 600;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--tf-green-dark);
    background: #eff6e8;
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--tf-border);
    border-radius: 50%;
    color: var(--tf-green-dark);
    background: #fff;
    text-decoration: none;
    transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.contact-btn:hover,
.contact-btn.active {
    color: #fff;
    background: var(--tf-green);
    border-color: var(--tf-green);
}

.contact-btn svg,
.hamburger svg {
    width: 19px;
    height: 19px;
    stroke-width: 2;
}

.hamburger {
    display: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--tf-border);
    border-radius: 7px;
    color: var(--tf-green-dark);
    background: #fff;
}

.hamburger-icon-close {
    display: none;
}

.hamburger[aria-expanded="true"] .hamburger-icon-menu {
    display: none;
}

.hamburger[aria-expanded="true"] .hamburger-icon-close {
    display: block;
}

@media (max-width: 900px) {
    .nav-container {
        width: min(100% - 28px, 680px);
        min-height: 68px;
        gap: 12px;
    }

    .site-logo-img {
        height: 44px;
        max-width: 200px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        padding: 12px 14px 16px;
        border-bottom: 1px solid var(--tf-border);
        background: #fff;
        box-shadow: 0 12px 20px rgba(26, 31, 46, .10);
        flex-direction: column;
        align-items: stretch;
        gap: 3px;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        width: 100%;
        justify-content: center;
    }

    .nav-contact {
        margin-left: auto;
    }

    .hamburger {
        display: inline-flex;
    }
}

@media (max-width: 480px) {
    .nav-container {
        width: calc(100% - 24px);
    }

    .site-logo-img {
        height: 40px;
        max-width: 180px;
    }

    .contact-phone {
        display: none;
    }
}

/* Home pubblica TecnoFutura. */
.hero {
    position: relative;
    min-height: 660px;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(125deg, #111b27 0%, #20382a 55%, #547a2e 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    opacity: .62;
    background-image: linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 44px 44px;
}

.hero-grid,
.hex-pattern,
.circuit,
.node,
.data-line,
.shape,
.glow {
    position: absolute;
}

.circuit-h {
    right: 0;
    left: 0;
    height: 1px;
    background: rgba(192, 233, 151, .38);
}

.circuit-v {
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(192, 233, 151, .28);
}

.node {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b7e580;
    box-shadow: 0 0 16px #b7e580;
}

.data-line {
    height: 2px;
    background: linear-gradient(90deg, transparent, #b7e580, transparent);
}

.glow {
    border-radius: 50%;
    background: rgba(124, 179, 66, .18);
    filter: blur(20px);
}


/* Posizioni delle decorazioni originali dell'hero, gestite solo nel CSS. */
.hero-bg { pointer-events: none; }
.circuit-h-20 { top: 20%; }
.circuit-h-60 { top: 60%; }
.circuit-h-80 { top: 80%; }
.circuit-v-15 { left: 15%; }
.circuit-v-75 { left: 75%; }
.circuit-v-90 { left: 90%; }
.node { transform: translate(-50%, -50%); animation: hero-node-pulse 4s ease-in-out infinite; }
.node-1 { top: 20%; left: 15%; }
.node-2 { top: 20%; left: 75%; }
.node-3 { top: 60%; left: 15%; }
.node-4 { top: 60%; left: 90%; }
.node-5 { top: 80%; left: 75%; }
.node-6 { top: 80%; left: 90%; }
.node-7 { top: 40%; left: 50%; animation-delay: .5s; }
.node-8 { top: 70%; left: 30%; animation-delay: 1s; }
.data-line { animation: hero-data-flow 9s linear infinite; }
.data-line-1 { top: 20%; width: 200px; }
.data-line-2 { top: 60%; width: 300px; animation-delay: -1.5s; }
.data-line-3 { top: 80%; width: 250px; animation-delay: -2.5s; }
.shape { width: 24px; height: 24px; border: 1px solid rgba(192, 233, 151, .55); animation: hero-shape-float 8s ease-in-out infinite; }
.shape-circle { border-radius: 50%; }
.shape-diamond { rotate: 45deg; }
.shape-1 { top: 15%; left: 85%; }
.shape-2 { top: 70%; left: 10%; animation-delay: -2s; }
.shape-3 { top: 30%; left: 5%; animation-delay: -4s; }
.shape-4 { top: 85%; left: 60%; animation-delay: -6s; }
.shape-5 { top: 10%; left: 40%; animation-delay: -8s; }
.glow-1 { width: 400px; height: 400px; top: -100px; right: -100px; }
.glow-2 { width: 300px; height: 300px; bottom: -100px; left: -50px; }
@keyframes hero-node-pulse {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}
@keyframes hero-data-flow {
    from { left: -300px; }
    to { left: 100%; }
}
@keyframes hero-shape-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-bg .node, .hero-bg .data-line, .hero-bg .shape { animation: none; }
    .hero-bg .data-line { left: 70%; }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 80px 0 76px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
}

.hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35));
}

.section-tag {
    width: 190px;
    max-width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid #9abc72;
    border-radius: 999px;
    color: #1c2e1a;
    background: #e8f4da;
    font-size: .74rem;
    font-weight: 700;
}


.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border: 1px solid rgba(124, 179, 66, .55);
    border-radius: 999px;
    color: #d7f1bd;
    background: rgba(124, 179, 66, .12);
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero-badge .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b7e580;
}

.hero h1 {
    max-width: 780px;
    margin: 22px 0;
    color: #fff;
    font-family: 'Inter', Arial, sans-serif;
    font-size: clamp(2.5rem, 4.2vw, 4.6rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.055em;
    text-transform: none;
}

.hero h1 .highlight {
    color: #b7e580;
}

.hero-text > p {
    max-width: 650px;
    margin: 0 0 30px;
    color: rgba(255, 255, 255, .82);
    font-size: 1.08rem;
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn-primary,
.btn-secondary,
.service-link,
.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

.btn-primary,
.submit-btn {
    color: #172414;
    background: #b7e580;
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .55);
}

.hero-stats {
    display: flex;
    gap: 42px;
    margin-top: 68px;
}

.stat-item {
    padding-left: 16px;
    border-left: 2px solid #b7e580;
}

.stat-number {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 800;
}

.stat-label {
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
}

section:not(.hero) {
    padding: 42px 0;
}

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

.section-header {
    max-width: 720px;
    margin-bottom: 28px;
}

.section-header h2,
.sector-copy h2 {
    margin: 8px 0 10px;
    color: var(--tf-dark);
    font-family: 'Inter', Arial, sans-serif;
    font-size: clamp(1.9rem, 3vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.04em;
    text-transform: none;
}

.section-header p,
.sector-lead {
    color: #647082;
    line-height: 1.7;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.about-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    border: 1px solid #e4ebe0;
    border-radius: 12px;
    background: #fff;
}

.about-icon,
.contact-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 9px;
    color: var(--tf-green-dark);
    background: #eff6e8;
}

.about-card h3,
.contact-info h3,
.contact-details h4 {
    margin: 0 0 7px;
    color: var(--tf-dark);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1rem;
    text-transform: none;
}

.about-icon svg,
.contact-icon svg {
    width: 34px;
    height: 34px;
    stroke-width: 1.45;
}

.about-card p,
.contact-details p {
    margin: 0;
    color: #647082;
    font-size: .92rem;
    line-height: 1.6;
}

.sectors-intro {
    padding-bottom: 8px !important;
    background: #f5f8f2;
}

.sector-section {
    background: #f5f8f2;
}

.sector-section + .sector-section {
    padding-top: 18px;
}

.sector-shell {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
}

.sector-shell-reverse .sector-visual {
    order: 2;
}

.sector-visual {
    position: relative;
    min-height: 330px;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(140deg, #20372a, #608b35);
}

.sector-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 32px 32px;
}

.sector-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 96px;
    height: 96px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    transform: translate(-50%, -50%);
}

.sector-symbol svg {
    width: 40px;
    height: 40px;
}

.visual-label {
    position: absolute;
    padding: 8px 10px;
    border-radius: 6px;
    color: #1c2e1a;
    background: #e8f4da;
    font-size: .74rem;
    font-weight: 700;
}

.visual-label-a { top: 16%; left: 10%; }
.visual-label-b { right: 8%; bottom: 17%; }
.visual-label-c { right: 12%; top: 14%; }

.sector-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin: 22px 0;
}

.sector-service {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #435340;
    font-size: .88rem;
}

.sector-service svg {
    width: 17px;
    color: var(--tf-green-dark);
}

.service-link {
    min-height: 40px;
    padding: 0;
    color: var(--tf-green-dark);
}

#contatti {
    padding: 0 !important;
    background: transparent;
}

/* Il form è richiamato dal modal: nessuna sezione Contatti visibile in pagina. */
.contact-cta .section-header,
.contact-cta .contact-info {
    display: none;
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr);
    gap: 48px;
}

.contact-cta {
    padding-bottom: 0 !important;
}

.contact-cta-button {
    margin-top: 10px;
    border: 0;
    cursor: pointer;
}

.contact-info {
    display: none;
}

.contact-grid {
    display: block;
}

.contact-item {
    display: flex;
    gap: 13px;
    margin-top: 21px;
}

.contact-form {
    padding: 28px;
    border: 1px solid #e4ebe0;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 16px 35px rgba(26, 31, 46, .07);
}

/* Il form è accessibile solo nella finestra modal. */
.contact-form {
    display: none;
}

.contact-form.is-open {
    position: fixed;
    z-index: 1100;
    top: 50%;
    left: 50%;
    display: block;
    width: min(520px, calc(100% - 28px));
    max-height: none;
    margin: 0;
    overflow: hidden;
    transform: translate(-50%, -50%);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.contact-form.is-open::before {
    position: fixed;
    z-index: -1;
    inset: -100vmax;
    content: '';
    background: rgba(255, 255, 255, .96);
}

.contact-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: -28px -28px 22px;
    padding: 20px 24px;
    border-bottom: 1px solid #e4ebe0;
}

.contact-modal-kicker {
    margin: 0 0 4px;
    color: var(--tf-green-dark);
    font-size: .73rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.contact-modal-header h3 {
    margin: 0;
    color: var(--tf-dark);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 1.35rem;
    text-transform: none;
}

.contact-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid #d7e0d1;
    border-radius: 7px;
    color: var(--tf-dark);
    background: #fff;
    cursor: pointer;
}

body.contact-modal-open {
    overflow: hidden;
}

.form-group {
    margin-bottom: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: .86rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 11px;
    border: 1px solid #d7e0d1;
    border-radius: 7px;
    font: inherit;
}

.form-group textarea {
    min-height: 78px;
    resize: none;
}

.privacy-consent {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    margin: 10px 0;
    font-size: .84rem;
}

.privacy-inline-link {
    padding: 0;
    border: 0;
    color: var(--tf-green-dark);
    background: transparent;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

/* QCaptcha: istruzione a sinistra, marchio a destra. */
.contact-security {
    margin: 10px 0;
}

.qcaptcha-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    padding: 10px 13px;
    border: 1px solid #d7e0d1 !important;
    border-radius: 8px !important;
    background: #fff;
    cursor: pointer;
}

.qcaptcha-left,
.qcaptcha-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.qcaptcha-label,
.qcaptcha-brand {
    color: var(--tf-green-dark) !important;
    font-size: .85rem !important;
    font-weight: 700 !important;
}

.qcaptcha-icon-wrap,
.qcaptcha-brand svg {
    color: var(--tf-green-dark) !important;
}

.qcaptcha-icon-wrap {
    display: inline-flex;
    flex: 0 0 24px;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.qcaptcha-icon-wrap .icon,
.qcaptcha-brand .icon {
    display: block;
    width: 24px !important;
    height: 24px !important;
}

.submit-btn {
    width: 100%;
    border: 0;
    cursor: pointer;
}

footer {
    padding: 60px 0 0;
    color: #dce6d7;
    background: var(--tf-dark);
}

.footer-content,
.footer-bottom {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 34px;
}

.footer-logo-img {
    width: auto;
    height: 48px;
    max-width: 240px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-brand p,
.footer-col li,
.footer-contact-list a,
.footer-contact-list span {
    color: #b9c7b4;
    font-size: .88rem;
    line-height: 1.65;
}

.footer-col h4 {
    margin: 0 0 13px;
    color: #fff;
    font-size: .95rem;
}

.footer-col ul,
.footer-contact-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col li + li,
.footer-contact-list li + li {
    margin-top: 7px;
}

footer a,
.footer-contact-button {
    color: #b9c7b4;
    text-decoration: none;
    transition: color .2s ease;
}

footer a:hover,
.footer-contact-button:hover {
    color: #d9f5bf;
}

.footer-contact-button {
    padding: 0;
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.footer-contact-list li {
    display: flex;
    gap: 8px;
}

.footer-contact-list svg {
    flex: 0 0 auto;
    width: 16px;
    color: #b7e580;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
    color: #9fae9a;
    font-size: .78rem;
}

.footer-legal-left,
.footer-legal-right {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.footer-legal-link {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    cursor: pointer;
}

/* Modal dei documenti legali: condiviso da footer e form privacy. */
.legal-modal {
    position: fixed;
    z-index: 1100;
    inset: 0;
    display: none;
}

.legal-modal.is-open {
    display: block;
}

.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 26, 22, .68);
}

.legal-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(780px, calc(100% - 32px));
    max-height: calc(100vh - 48px);
    margin: 24px auto;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.legal-modal-header,
.legal-modal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e4ebe0;
}

.legal-modal-header h2 {
    margin: 0;
    font-size: 1.2rem;
}

.legal-modal-body {
    max-height: calc(100vh - 190px);
    padding: 20px;
    overflow: auto;
    color: #465166;
    line-height: 1.65;
}

.legal-modal-footer {
    justify-content: flex-end;
    border-top: 1px solid #e4ebe0;
    border-bottom: 0;
}

.legal-modal-close,
.legal-modal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #d7e0d1;
    border-radius: 7px;
    color: var(--tf-dark);
    background: #fff;
    font: inherit;
    cursor: pointer;
}

.legal-modal-close {
    width: 36px;
    padding: 0;
}

.legal-modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .hero {
        min-height: auto;
    }

    .hero-content {
        width: calc(100% - 32px);
        padding: 78px 0 64px;
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero-visual {
        order: 2;
        max-width: 520px;
        margin: 0 auto;
    }

    .hero-stats {
        gap: 17px;
        margin-top: 42px;
    }

    .stat-number {
        font-size: 1.35rem;
    }

    section:not(.hero) {
        padding: 42px 0;
    }

    .container,
    .footer-content,
    .footer-bottom {
        width: calc(100% - 32px);
    }

    .about-grid,
    .sector-shell,
    .contact-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .sector-shell-reverse .sector-visual {
        order: initial;
    }

    .sector-visual {
        min-height: 245px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-wrap: wrap;
    }

    .sector-services {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 20px;
    }

    .contact-form.is-open {
        width: min(520px, calc(100% - 20px));
        max-height: none;
        overflow: hidden;
    }

    .contact-modal-header {
        margin: -20px -20px 18px;
        padding: 16px 20px;
    }
}

/* Spazio per la testata fissa nelle pagine legali aperte direttamente. */
.legal-page {
    padding-top: 110px;
    padding-bottom: 42px;
}
