/* ==========================================================
   Creo Kitchens Store – Mola di Bari  |  V&M Italia SRLS
   Palette: #022B4E (blu), #000000 (nero), #1f2428 (antracite), #ffffff
   Font: Montserrat
   ========================================================== */

/* Montserrat variabile (pesi 100-900), ospitato sul sito: nessuna richiesta a Google Fonts.
   Licenza SIL OFL 1.1 in assets/fonts/OFL-LICENSE.txt */
@font-face {
    font-family: "Montserrat";
    font-style: normal;
    font-weight: 100 900;
    font-display: swap;
    src: url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"),
         url("../fonts/montserrat-latin-wght-normal.woff2") format("woff2");
}

:root {
    --blue: #022B4E;
    --blue-soft: #0a3c69;
    --black: #000000;
    --ink: #1f2428;
    --white: #ffffff;
    --light: #f3f5f7;
    --line: rgba(255, 255, 255, .22);
    --radius: 24px;
    --shadow: 0 18px 40px rgba(2, 43, 78, .18);
    --gutter: clamp(1rem, 4vw, 2rem);
    --section-y: clamp(3.5rem, 9vw, 7rem);
    --font: "Montserrat", "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: var(--font);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink);
    background: var(--white);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bannerCreo{
   display: flex;
   justify-content: center ;
   height: 150px;

}

h1,
h2,
h3,
p {
    margin: 0 0 1rem;
}

h1,
h2,
h3 {
    line-height: 1.2;
    font-weight: 700;
}

h1 {
    font-size: clamp(1.9rem, 5vw, 3.3rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.6rem, 3.6vw, 2.5rem);
}

h3,
.h3 {
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
}

h1,
h2,
h3,
.h3,
.btn,
.site-nav,
.eyebrow,
.legal-bar,
.cookie-banner,
.contact-form label,
.check-list li,
.info-row strong,
.legal-page h1,
.legal-page h2 {
    font-family: var(--font);
}

address {
    font-style: normal;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1.25rem 0;
}

:focus-visible {
    outline: 3px solid #4da3ff;
    outline-offset: 3px;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    flex: none;
    fill: currentColor;
}

.text-center {
    text-align: center;
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 1000;
    background: var(--white);
    color: var(--blue);
    padding: .6rem 1rem;
    border-radius: 8px;
    font-weight: 600;
}

.skip-link:focus {
    top: 1rem;
}

/* ---------- Layout helpers ---------- */
.container-wide {
    width: min(1180px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.container-narrow {
    width: min(780px, 100% - 2 * var(--gutter));
    margin-inline: auto;
}

.section--blue {
    background: var(--blue);
    color: var(--white);
}

.section--black {
    background: var(--black);
    color: var(--white);
}

.section--white {
    background: var(--white);
    color: var(--ink);
}

.section--light {
    background: var(--light);
    color: var(--ink);
}

main>section {
    padding-block: var(--section-y);
}

section[id],
footer[id] {
    scroll-margin-top: 6rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--blue-soft);
    margin-bottom: .6rem;
}

.eyebrow--light {
    color: #9fc2e6;
}

.lead {
    font-size: 1.1rem;
    max-width: 62ch;
    margin-inline: auto;
}

.section-head {
    margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 2rem;
    border-radius: 10px;
    border: 2px solid transparent;
    font: 700 .95rem/1 var(--font);
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .25);
}

.btn--light {
    background: var(--white);
    color: var(--blue);
}

.btn--light:hover {
    background: #e7eef5;
}

.btn--dark {
    background: var(--blue);
    color: var(--white);
}

.btn--dark:hover {
    background: var(--blue-soft);
}

.btn .icon {
    width: 1.2rem;
    height: 1.2rem;
}

.btn--wa {
    background: #25d366;
    color: #063b1c;
}

.btn--wa:hover {
    background: #1ebe5d;
}

/* ---------- Header ---------- */
.site-header {
    background: var(--white);
    color: var(--ink);
    border-bottom: 1px solid #e3e7ea;
}

.lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
    border: 1.5px solid var(--blue);
    color: var(--blue);
    border-radius: 999px;
    padding: .35rem .9rem;
    font: 700 .85rem var(--font);
    cursor: pointer;
}

a.lang-toggle {
    text-decoration: none;
}

/* lingua non attiva più chiara, ma con contrasto sufficiente (almeno 4.5:1) */
.lang-toggle__opt {
    opacity: .7;
    transition: opacity .2s;
}

/* testo letto dai lettori di schermo ma non mostrato */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.lang-toggle__opt.is-active {
    opacity: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lang-toggle:hover {
    background: var(--blue);
    color: var(--white);
}

.lang-toggle--sticky {
    position: fixed;
    z-index: 850;
    left: 1rem;
    bottom: 1rem;
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .24);
}

.lang-toggle--sticky:hover {
    background: #e7eef5;
    color: var(--blue);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn--outline:hover {
    background: var(--white);
    color: var(--black);
}

.custom .btn--outline {
    background: var(--white);
    color: var(--blue);
    border-color: var(--white);
}

.custom .btn--outline:hover {
    background: #e7eef5;
    border-color: #e7eef5;
}

.whatsapp-float {
    position: fixed;
    z-index: 850;
    right: 1rem;
    bottom: 1rem;
    display: grid;
    width: 4.25rem;
    height: 4.25rem;
    place-items: center;
    border-radius: 50%;
    background: #25d366;
    color: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .24);
    transition: transform .2s, background .2s;
}

.whatsapp-float .icon {
    width: 2rem;
    height: 2rem;
}

.whatsapp-float:hover {
    background: #1ebe5d;
    color: var(--white);
    transform: translateY(-2px);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 800;
    transition: box-shadow .3s;
}

/* ombra quando la pagina scorre (classe aggiunta da main.js) */
.site-header.is-scrolled {
    box-shadow: 0 8px 24px -16px rgba(2, 43, 78, .45);
}

.site-header__bar {
    display: flex;
    align-items: center;
    gap: 1rem 2rem;
    min-height: 80px;
    padding-block: .5rem;
}

.site-nav {
    flex: 1;
    font-family: var(--font);
}

.nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: .25rem 2rem;
}

.nav-list a {
    display: block;
    padding: .7rem .2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: .92rem;
    border-bottom: 2px solid transparent;
    transition: border-color .2s, color .2s;
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a.is-active {
    color: var(--blue);
    border-color: var(--blue);
}

.nav-toggle {
    display: none;
}

/* ---------- Hero (foto dello showroom sotto una velatura #022B4E) ---------- */
main>section.hero-section {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding-block: clamp(4.5rem, 11vw, 8.5rem) clamp(6rem, 12vw, 9rem);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.06);
    animation: hero-zoom 18s ease-out forwards;
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(2, 43, 78, .9) 0%, rgba(2, 43, 78, .78) 55%, rgba(2, 43, 78, .96) 100%);
}

@keyframes hero-zoom {
    to {
        transform: scale(1);
    }
}

.hero-inner {
    max-width: 1000px;
    text-align: center;
}

.hero-logo {
    width: clamp(110px, 14vw, 150px);
    height: auto;
    margin: 0 auto 2rem;
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
}

.hero-inner h1 {
    font-size: clamp(1.9rem, 4.4vw, 3.1rem);
    font-weight: 800;
}

.hero-lead {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    max-width: 40rem;
    margin: 0 auto 2rem;
    color: #dbe6f1;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: .9rem;
    justify-content: center;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: center;
    margin: 1.8rem 0 0;
    font-size: .88rem;
    color: #b9cde0;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.hero-meta .icon {
    width: 1rem;
    height: 1rem;
}

/* ---------- Punti di forza (sovrapposti al fondo della hero) ---------- */
.trust {
    position: relative;
    z-index: 2;
    margin-top: -3.5rem;
}

.trust__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border-radius: 18px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.trust__item {
    display: flex;
    gap: .9rem;
    align-items: center;
    padding: 1.6rem 1.4rem;
    line-height: 1.3;
}

.trust__item+.trust__item {
    border-left: 1px solid #e3e7ec;
}

.trust__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 12px;
    background: #e8eef4;
    color: var(--blue);
}

.trust__item strong {
    display: block;
    font-size: .98rem;
}

.trust__item small {
    display: block;
    margin-top: .2rem;
    font-size: .8rem;
    color: #5b6670;
}

/* ---------- Mission ---------- */
.mission h2 {
    margin-bottom: 1rem;
}

.mission__desc {
    max-width: 68ch;
    margin: 1.5rem auto 0;
    font-size: .95rem;
    color: #5b6670;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-top: clamp(2.2rem, 5vw, 3rem);
    text-align: left;
}

.card {
    background: var(--white);
    border: 1px solid #e3e7ec;
    border-radius: 18px;
    padding: 1.8rem 1.6rem;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.card__icon {
    display: grid;
    place-items: center;
    width: 3.25rem;
    height: 3.25rem;
    margin-bottom: 1.1rem;
    border-radius: 14px;
    background: var(--blue);
    color: var(--white);
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: .5rem;
}

.card p {
    margin: 0;
    font-size: .95rem;
    color: #5b6670;
}

/* ---------- Split layout ---------- */
.split {
    display: grid;
    gap: clamp(1.75rem, 5vw, 4rem);
    align-items: center;
}

.split__text>*:last-child {
    margin-bottom: 0;
}

.check-list {
    list-style: none;
    margin: 1.5rem 0 2rem;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-weight: 500;
}

.check-list .icon {
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    color: inherit;
    /* stesso colore scuro del testo */
}

/* ---------- Media ---------- */
.media {
    margin: 0;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #c9d4de, #e9eef2);
    aspect-ratio: 4 / 3;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media img.img-missing {
    visibility: hidden;
}

.media--asym {
    aspect-ratio: 5 / 4;
    border-radius: 0 50px;
}

.media--tr {
    aspect-ratio: 4 / 3;
    box-shadow: none;
    border-radius: 0 50px;
}

/* volantino dello showroom ritagliato sulla foto del tavolo (le scritte sono riportate nel testo accanto) */
.media--flyer {
    aspect-ratio: 2 / 1;
    border-radius: 18px 90px 18px 18px;
    background: #0a3c69;
    box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .6);
}

.media--flyer img {
    object-position: 50% 50%;
}

/* ---------- Showroom ---------- */
.tag {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .35rem .8rem;
    border-radius: 999px;
    background: var(--white);
    color: var(--blue);
    font: 800 .75rem var(--font);
    letter-spacing: .1em;
    text-transform: uppercase;
}

.showroom__text {
    color: #c9d8e6;
}

.features {
    margin: 1.5rem 0 0;
}

.features li {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: .9rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.features li:last-child {
    border-bottom: 0;
}

.features strong {
    font-weight: 700;
}

.feature__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .5);
}

.showroom__note {
    margin: 1.2rem 0 1.6rem;
    font-size: .82rem;
    color: #9fb6cc;
}

/* angoli arrotondati asimmetrici */
.media--card {
    border-radius: 0px 50px 0px 50px;
    box-shadow: var(--shadow);
}

/* ---------- Slider ---------- */
.slider-foto h2 {
    margin-bottom: 2.25rem;
}

.carousel {
    position: relative;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.carousel__viewport {
    overflow: hidden;
    flex: 1;
    touch-action: pan-y;
    cursor: grab;
    border-radius: 0;
}

.carousel__viewport.is-dragging {
    cursor: grabbing;
}

.carousel__track {
    display: flex;
    transition: transform .35s cubic-bezier(.22, .8, .3, 1);
    will-change: transform;
}

.carousel__track.no-anim {
    transition: none;
}

.carousel__slide {
    flex: 0 0 calc(100% / var(--pv, 1));
    padding-inline: .5rem;
    user-select: none;
}

.carousel__slide .media {
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    box-shadow: 0 14px 30px -18px rgba(2, 43, 78, .5);
    overflow: hidden;
}

/* pulsante "ingrandisci" su tutta la foto */
.carousel__zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: .8rem;
    border: 0;
    background: none;
    color: var(--white);
    cursor: zoom-in;
}

.carousel__zoom .icon {
    width: 2.4rem;
    height: 2.4rem;
    padding: .55rem;
    border-radius: 50%;
    background: rgba(2, 43, 78, .85);
    opacity: 0;
    transition: opacity .25s;
}

.carousel__zoom:hover .icon,
.carousel__zoom:focus-visible .icon {
    opacity: 1;
}

.carousel__viewport.is-dragging .carousel__zoom {
    cursor: grabbing;
}

/* ---------- Foto a schermo intero ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 950;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(0, 10, 20, .92);
}

.lightbox[hidden] {
    display: none;
}

.lightbox img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    border-radius: 12px;
}

.lightbox__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.9rem;
    height: 2.9rem;
    border: 0;
    border-radius: 50%;
    background: var(--white);
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox__arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 3rem;
    height: 3rem;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: var(--white);
    cursor: pointer;
    transform: translateY(-50%);
    transition: background .2s;
}

.lightbox__arrow:hover {
    background: rgba(255, 255, 255, .3);
}

.lightbox__arrow--prev {
    left: 1rem;
}

.lightbox__arrow--prev .icon {
    transform: rotate(180deg);
}

.lightbox__arrow--next {
    right: 1rem;
}

.carousel__slide img {
    pointer-events: none;
    -webkit-user-drag: none;
    transition: transform .5s cubic-bezier(.22, .8, .3, 1);
}

.carousel__arrow {
    flex: none;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 2px solid var(--blue);
    cursor: pointer;
    background: var(--white);
    color: var(--blue);
    display: grid;
    place-items: center;
    transition: background .2s, color .2s;
}

.carousel__arrow .icon {
    width: 1.2rem;
    height: 1.2rem;
}

.carousel__arrow:hover {
    background: var(--blue);
    color: var(--white);
}

.carousel__arrow--prev .icon {
    transform: rotate(180deg);
}

.carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-top: 1rem;
}

/* area cliccabile di 24 × 24 px (minimo consigliato per il tocco); il pallino visibile resta piccolo */
.carousel__dot {
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    border: 0;
    padding: 0;
    cursor: pointer;
    background: none;
}

.carousel__dot::before {
    content: "";
    width: .6rem;
    height: .6rem;
    border-radius: 50%;
    background: #bcd7ee;
    transition: background .2s, transform .2s;
}

.carousel__dot[aria-current="true"]::before {
    background: #1c6fb5;
    transform: scale(1.2);
}

@media (hover: hover) {
    .carousel__slide:hover img {
        transform: scale(1.08);
    }
}

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

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    .carousel__slide img {
        transition: none;
    }
}

/* ---------- Why ---------- */
.why__row+.why__row {
    margin-top: clamp(3rem, 7vw, 5.5rem);
}

.why h3 {
    color: var(--blue);
}

.why__num {
    display: block;
    margin-bottom: .3rem;
    font: 800 4rem/1 var(--font);
    color: var(--blue);
    opacity: .12;
}

/* ---------- Invito alla consulenza + modulo ---------- */
.contact-grid {
    display: grid;
    gap: clamp(2rem, 5vw, 3.75rem);
    align-items: start;
}

.contact-intro p {
    color: #c9d8e6;
}

.contact-quick {
    display: grid;
    gap: .8rem;
    margin-top: 1.6rem;
}

.contact-quick a,
.contact-quick div {
    display: flex;
    gap: .9rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, .12);
    background: rgba(255, 255, 255, .07);
    text-decoration: none;
    transition: background .2s;
}

.contact-quick a:hover {
    background: rgba(255, 255, 255, .14);
}

.contact-quick small {
    display: block;
    font-size: .78rem;
    color: #9fb6cc;
}

.form-row {
    display: grid;
    gap: 0 1rem;
}

/* ---------- Footer & contatti ---------- */
.site-footer {
    padding-top: var(--section-y);
}

.site-footer h2 {
    margin-bottom: 2.5rem;
    text-align: left;
}

.contacts-info {
    max-width: 680px;
}

.info-row {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.info-row .icon {
    margin-top: .2rem;
    color: #9cc7f2;
}

.icon--lg {
    width: 2.2rem;
    height: 2.2rem;
}

.social-link {
    display: inline-flex;
    color: var(--white);
}

.social-link:hover {
    color: #9cc7f2;
}

.info-row--social {
    margin-top: 1.5rem;
}

.info-row strong {
    display: block;
}

.info-row p {
    margin: 0;
}

.site-footer a {
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.site-footer a:hover {
    color: #9cc7f2;
}

.contacts-info a,
.contacts-info a:hover,
.contacts-info a:focus-visible {
    text-decoration: none;
}

.contacts-info a:hover {
    color: #9cc7f2;
}

.contacts-info .icon {
    color: var(--white);
}

.contacts-info .info-row:first-child p {
    color: #8a94a0;
}

.contacts-info .info-row:first-child strong {
    font-weight: 400;
}

/* modulo: scheda bianca sul blu */
.contact-form {
    background: var(--white);
    color: var(--ink);
    border-radius: var(--radius);
    padding: clamp(1.4rem, 4vw, 2.5rem);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}

.contact-form h2,
.contact-form h3 {
    margin-bottom: 1.25rem;
    color: var(--blue);
}

.contact-form .field input[type="text"],
.contact-form .field input[type="tel"],
.contact-form .field input[type="email"],
.contact-form .field textarea {
    border: 1.5px solid #dfe5ea;
    background: #f8fafc;
}

.contact-form .field input:focus,
.contact-form .field textarea:focus {
    border-color: var(--blue);
    background: var(--white);
}

.contact-form .field.has-error input,
.contact-form .field.has-error textarea {
    border-color: #c0392b;
}

.contact-form .field__error,
.contact-form .form-status.is-err {
    color: #b42318;
}

.contact-form .form-status.is-ok {
    color: #1e7a3c;
}

.contact-form .field--check input {
    accent-color: var(--blue);
}

.contact-form .btn {
    width: 100%;
}

.field {
    margin-bottom: 1rem;
}

.field label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .3rem;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field textarea {
    width: 100%;
    padding: .8rem 1rem;
    border-radius: 12px;
    border: 2px solid transparent;
    background: var(--white);
    color: var(--ink);
    font: inherit;
}

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

.field input:focus,
.field textarea:focus {
    border-color: #4da3ff;
    outline: 0;
}

.field.has-error input,
.field.has-error textarea {
    border-color: #ff8a8a;
}

.field__error {
    display: block;
    min-height: 1.1em;
    color: #ffb4b4;
    font-size: .82rem;
    margin-top: .25rem;
}

.field--check {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 .7rem;
    align-items: start;
}

.field--check input {
    width: 1.2rem;
    height: 1.2rem;
    margin-top: .2rem;
    accent-color: #9cc7f2;
}

.field--check label {
    font-weight: 400;
    margin: 0;
}

.field--check .field__error {
    grid-column: 1 / -1;
}

.form-status {
    margin: 1rem 0 0;
    font-weight: 600;
    min-height: 1.4em;
}

.form-status.is-ok {
    color: #9be7b1;
}

.form-status.is-err {
    color: #ffb4b4;
}

.contact-form .btn:disabled {
    opacity: .6;
    cursor: wait;
    transform: none;
    box-shadow: none;
}

.map-box {
    position: relative;
    margin: clamp(2.5rem, 6vw, 4rem) auto 0;
    max-width: 1000px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    overflow: hidden;
    background: #0a3c69;
}

.map-box iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-consent {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .8rem;
    text-align: center;
    padding: 1.5rem;
}

.map-consent p {
    margin: 0;
    max-width: 46ch;
}

.map-box.is-loaded .map-consent {
    display: none;
}

.legal-bar {
    margin-top: clamp(2.5rem, 6vw, 4rem);
    border-top: 1px solid var(--line);
    padding-block: 1.25rem;
    font-size: .82rem;
    background: var(--black);
    color: var(--white);
}

.legal-bar__inner {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    align-items: center;
    text-align: center;
}

.legal-bar p {
    margin: 0;
}

.legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.4rem;
    justify-content: center;
}

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: inherit;
    font: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.link-btn:hover {
    color: #9cc7f2;
}

/* ---------- Banner cookie ---------- */
.cookie-banner {
    position: fixed;
    z-index: 900;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 680px;
    margin-inline: auto;
    background: var(--white);
    color: var(--ink);
    border-radius: 20px;
    padding: 1.4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
    border: 1px solid #dfe5ea;
}

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

.cookie-banner h2 {
    font-size: 1.1rem;
    margin-bottom: .5rem;
    padding-right: 2rem;
}

.cookie-close {
    position: absolute;
    top: .6rem;
    right: .7rem;
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.cookie-close:hover {
    background: var(--light);
}

.cookie-banner p {
    font-size: .88rem;
    line-height: 1.55;
    margin-bottom: .9rem;
}

.cookie-banner a {
    color: var(--blue);
    font-weight: 600;
}

.cookie-prefs {
    display: grid;
    gap: .6rem;
    margin-bottom: 1rem;
    padding: .9rem;
    background: var(--light);
    border-radius: 12px;
}

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

.cookie-prefs label {
    display: flex;
    gap: .6rem;
    align-items: flex-start;
    font-size: .85rem;
}

.cookie-prefs input {
    margin-top: .25rem;
    accent-color: var(--blue);
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.cookie-actions .btn {
    padding: .7rem 1.2rem;
    font-size: .78rem;
    flex: 1 1 auto;
}

.btn--ghost {
    background: transparent;
    color: var(--blue);
    border-color: var(--blue);
}

.btn--ghost:hover {
    background: #e7eef5;
}

/* ---------- Pagine legali ---------- */
.legal-page {
    padding-block: clamp(2.5rem, 7vw, 5rem);
}

.legal-page h1 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    color: var(--blue);
}

.legal-page h2 {
    font-size: 1.3rem;
    margin-top: 2rem;
    color: var(--blue);
}

.legal-page ul {
    list-style: disc;
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}

.back-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--blue);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
    margin-bottom: 1rem;
}

.legal-table th,
.legal-table td {
    border: 1px solid #d6dde3;
    padding: .6rem .7rem;
    text-align: left;
    vertical-align: top;
}

.legal-table th {
    background: var(--light);
}

.bannerCreo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem; /* Spaziatura elegante tra le tre immagini */
    background-color: var(--blue); /* Colore di sfondo ai lati (blu corporate #022B4E) */
    width: 100%;
    padding: 0.75rem 1rem;
    overflow: hidden;
}

.bannerCreo img {
    height: 75px; /* Altezza comune controllata per mantenere le proporzioni corrette */
    width: auto;  /* La larghezza si adatta in automatico senza distorsioni */
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Adattamento ottimizzato per smartphone */
@media (max-width: 759px) {
    .bannerCreo {
        gap: 0.75rem;
        padding: 0.5rem;
    }
    .bannerCreo img {
        height: 45px; /* Leggermente più piccole su schermi piccoli per starci comodamente */
    }
}


@media (max-width: 759px) {
    .legal-table {
        display: block;
        overflow-x: auto;
        font-size: .82rem;
    }

    .legal-table th,
    .legal-table td {
        min-width: 8rem;
    }
}

/* ---------- Barra contatti su mobile ---------- */
.mobile-bar {
    display: none;
}

/* ---------- Comparsa delle sezioni allo scorrimento ----------
   Solo con JS attivo (classe .js su <html>); main.js aggiunge .is-in quando l'elemento entra nello schermo */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .65s ease-out, transform .65s ease-out;
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-bg {
        transform: none;
    }
}

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
    .split {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        grid-template-columns: 1fr 1fr;
    }

    .split--reverse .split__media {
        order: -1;
    }

    .legal-bar__inner {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }
}

@media (min-width: 980px) {
    .split {
        gap: 5rem;
    }

    .contact-grid {
        grid-template-columns: .9fr 1.1fr;
    }
}

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

    .trust__item:nth-child(3) {
        border-left: 0;
    }

    .trust__item:nth-child(n+3) {
        border-top: 1px solid #e3e7ec;
    }

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




@media (max-width: 759px) {
    .media--asym {
        aspect-ratio: 4 / 3;
        border-radius: 0 50px;
    }
 

    .media--card {
        border-radius: 18px 56px 18px 56px;
    }

    .carousel__arrow {
        width: 2.5rem;
        height: 2.5rem;
    }

    .carousel {
        gap: .35rem;
    }

    .carousel__slide {
        padding-inline: .3rem;
    }

    /* menu a tendina su mobile */
    .site-header__bar {
        min-height: 68px;
        gap: .75rem;
    }

    .site-nav {
        flex: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        align-items: center;
        width: 2.75rem;
        height: 2.75rem;
        background: none;
        border: 0;
        cursor: pointer;
    }

    .nav-toggle span {
        display: block;
        width: 26px;
        height: 3px;
        background: var(--blue);
        border-radius: 2px;
        transition: transform .25s, opacity .25s;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle[aria-expanded="true"] span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding-bottom: .75rem;
        background: var(--white);
        border-bottom: 1px solid #e3e7ea;
        box-shadow: 0 12px 24px rgba(2, 43, 78, .12);
    }

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

    .site-footer h2 {
        text-align: center;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .trust {
        margin-top: -2.5rem;
    }

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

    .trust__item+.trust__item {
        border-left: 0;
        border-top: 1px solid #e3e7ec;
    }

    .why__num {
        font-size: 3rem;
    }

    /* il pulsante WhatsApp tondo lascia il posto alla barra fissa in basso */
    body {
        padding-bottom: 3.6rem;
    }

    .whatsapp-float {
        display: none;
    }

    .lang-toggle--sticky {
        bottom: 4.6rem;
    }

    .mobile-bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: fixed;
        z-index: 840;
        left: 0;
        right: 0;
        bottom: 0;
        box-shadow: 0 -8px 20px -10px rgba(0, 0, 0, .35);
    }

    .mobile-bar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .5rem;
        padding: 1.05rem .6rem;
        font: 700 .95rem var(--font);
        text-decoration: none;
    }

    .mobile-bar a:first-child {
        background: var(--blue);
        color: var(--white);
    }

    .mobile-bar a:last-child {
        background: #25d366;
        color: #063b1c;
    }

    .mobile-bar .icon {
        width: 1.2rem;
        height: 1.2rem;
    }
}

