/* =========================================================
   f.lli bassani srl — Design system + Homepage
   ========================================================= */

:root {
    --color-primary: #0867d5;
    --color-primary-dark: #034b9b;
    --color-navy: #061426;
    --color-navy-soft: #0b213b;
    --color-black: #090b0f;
    --color-white: #ffffff;
    --color-light: #f5f7fa;
    --color-border: #dce2e9;
    --color-text: #111827;
    --color-muted: #657080;

    --container-width: 1320px;
    --section-space: 110px;
    --section-space-mobile: 70px;
    --header-height: 88px;
    --header-height-compact: 70px;
    --radius: 4px;
    --transition: 0.28s ease;

    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Bollino immagini AI (assets/img/ai-generated.png = 600x68) */
    --ai-badge-aspect-ratio: 600 / 68;

    /* Alias pagine interne */
    --primary: var(--color-primary);
    --primary-light: #3d86d9;
    --primary-soft: #e8f1fb;
    --primary-dark: var(--color-primary-dark);
    --text: var(--color-text);
    --text-muted: var(--color-muted);
    --bg-light: var(--color-light);
    --white: var(--color-white);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--color-text);
    line-height: 1.65;
    background: var(--color-white);
    font-size: 1rem;
    font-weight: 400;
}

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

a {
    color: var(--color-primary);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.16em;
}

a:hover {
    color: var(--color-primary-dark);
}

:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
}

.text-accent {
    color: var(--color-primary);
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -120px;
    z-index: 3000;
    background: var(--color-white);
    color: var(--color-black);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    font-weight: 600;
}

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

.container-fluid.content-wide,
.site-header__inner,
.site-footer__inner,
.home-hero__inner,
.internal-hero__inner {
    width: 100%;
    max-width: var(--container-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1rem, 3vw, 2.25rem);
    padding-right: clamp(1rem, 3vw, 2.25rem);
}

.section-block {
    padding: var(--section-space) 0;
    position: relative;
}

.section-block--flush-bottom {
    padding-bottom: 0;
}

@media (max-width: 767.98px) {
    .section-block {
        padding: var(--section-space-mobile) 0;
    }
}

.section-watermark {
    position: absolute;
    left: clamp(1rem, 3vw, 2.25rem);
    top: 0.2rem;
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: rgba(6, 20, 38, 0.045);
    pointer-events: none;
    user-select: none;
    text-transform: uppercase;
    z-index: 0;
}

.home-eyebrow {
    margin: 0 0 0.85rem;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-eyebrow--light {
    color: rgba(255, 255, 255, 0.78);
}

.home-section-title {
    margin: 0 0 1.1rem;
    color: var(--color-black);
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.home-section-title--light {
    color: var(--color-white);
}

.home-section-lead {
    margin: 0;
    max-width: 40rem;
    color: var(--color-muted);
    font-size: 1.05rem;
}

/* =========================================================
   Header
   ========================================================= */

.site-header {
    z-index: 1100;
    transition: background-color var(--transition), box-shadow var(--transition), min-height var(--transition);
}

.site-header--solid {
    position: sticky;
    top: 0;
    background: var(--color-white);
    box-shadow: 0 1px 0 var(--color-border);
}

.site-header--transparent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
}

.site-header--transparent::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 140px;
    background: linear-gradient(to bottom, rgba(6, 20, 38, 0.78) 0%, rgba(6, 20, 38, 0.28) 55%, rgba(6, 20, 38, 0) 100%);
    pointer-events: none;
    z-index: 0;
}

.site-header .navbar {
    position: relative;
    z-index: 1;
    min-height: var(--header-height);
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.site-header .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-header .navbar-brand__logo {
    display: block;
    width: auto;
    height: 42px;
    flex-shrink: 0;
    border-radius: 2px;
}

.site-header .navbar-brand__text {
    line-height: 1.15;
}

.site-header--solid .navbar-brand {
    color: var(--color-navy) !important;
}

.site-header--transparent .navbar-brand {
    color: var(--color-white) !important;
}

.site-header .navbar-nav {
    gap: clamp(0.65rem, 1.15vw, 1.35rem);
}

.site-header .nav-link {
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.085em;
    text-transform: uppercase;
    padding: 0.55rem 0.35rem !important;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.site-header--solid .nav-link {
    color: var(--color-text) !important;
}

.site-header--solid .nav-link:hover,
.site-header--solid .nav-link.active {
    color: var(--color-primary) !important;
}

.site-header--transparent .nav-link {
    color: rgba(255, 255, 255, 0.92) !important;
}

.site-header--transparent .nav-link:hover {
    color: var(--color-white) !important;
}

.site-header--transparent .nav-link.active {
    color: #6eb0ff !important;
}

.site-header .nav-cta {
    margin-left: 0.15rem;
    border-radius: var(--radius);
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-size: 0.76rem;
    padding-left: 0.95rem !important;
    padding-right: 0.95rem !important;
}

.site-header--solid .nav-cta {
    background: var(--color-primary);
    color: var(--color-white) !important;
}

.site-header--solid .nav-cta:hover {
    background: var(--color-primary-dark);
    color: var(--color-white) !important;
}

.site-header--transparent .nav-cta {
    background: var(--color-primary);
    color: var(--color-white) !important;
}

.site-header--transparent .nav-cta:hover {
    background: var(--color-primary-dark);
    color: var(--color-white) !important;
}

.site-header.is-scrolled.site-header--transparent {
    position: fixed;
    background: rgba(6, 20, 38, 0.96);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.site-header.is-scrolled.site-header--transparent::before {
    display: none;
}

.site-header.is-scrolled .navbar {
    min-height: var(--header-height-compact);
}

.site-header--transparent .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.4);
    padding: 0.45rem 0.55rem;
}

.site-header--transparent .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.95%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-header--solid .navbar-toggler {
    border-color: rgba(17, 24, 39, 0.2);
}

@media (max-width: 991.98px) {
    .site-header--transparent .navbar-collapse,
    .site-header--solid .navbar-collapse {
        margin-top: 0.75rem;
        padding: 0.85rem;
        border-radius: var(--radius);
    }

    .site-header--transparent .navbar-collapse {
        background: rgba(6, 20, 38, 0.98);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    .site-header--solid .navbar-collapse {
        background: var(--color-white);
        border: 1px solid var(--color-border);
    }

    .site-header .navbar-nav {
        gap: 0.2rem;
    }

    .site-header .nav-link {
        width: 100%;
        letter-spacing: 0.06em;
        white-space: normal;
        padding-top: 0.65rem !important;
        padding-bottom: 0.65rem !important;
    }

    .site-header .nav-cta {
        margin: 0.55rem 0 0;
        justify-content: center;
        width: 100%;
        letter-spacing: 0.055em;
    }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn-home-primary,
.btn-home-secondary,
.btn-home-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.35rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

.btn-home-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-home-primary:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

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

.btn-home-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn-home-ghost {
    background: transparent;
    color: var(--color-primary);
    border-color: rgba(8, 103, 213, 0.35);
    margin-top: 0.75rem;
}

.btn-home-ghost:hover {
    background: rgba(8, 103, 213, 0.06);
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
}

/* =========================================================
   Hero
   ========================================================= */

.home-hero {
    position: relative;
    color: var(--color-white);
    --hero-progress-height: 6px;
    --hero-controls-bottom: calc(var(--hero-progress-height) + clamp(1.25rem, 2.8vw, 2.25rem));
}

.home-hero .hero-swiper,
.home-hero .swiper-slide {
    height: clamp(700px, 82vh, 850px);
}

.home-hero__media,
.home-hero__media picture {
    position: absolute;
    inset: 0;
}

.home-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-hero__overlay,
.internal-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(6, 20, 38, 0.82) 0%, rgba(6, 20, 38, 0.48) 46%, rgba(6, 20, 38, 0.22) 100%),
        linear-gradient(180deg, rgba(6, 20, 38, 0.58) 0%, rgba(6, 20, 38, 0.12) 38%, rgba(6, 20, 38, 0.5) 100%);
    pointer-events: none;
}

.home-hero__content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: var(--hero-controls-bottom);
}

.home-hero__inner,
.internal-hero__inner {
    max-width: 680px;
    margin-left: 0;
    margin-right: auto;
}

.home-hero__title,
.internal-hero__title {
    margin: 0 0 1rem;
    font-size: clamp(2.15rem, 4.6vw, 3.55rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.035em;
    color: var(--color-white);
}

.home-hero__title .text-accent {
    color: #6eb0ff;
}

.home-hero__text,
.internal-hero__text {
    margin: 0 0 1.6rem;
    max-width: 34rem;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.9);
}

.internal-hero__text {
    margin-bottom: 0;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.home-hero__controls {
    position: absolute;
    right: clamp(1rem, 3vw, 2.25rem);
    bottom: var(--hero-controls-bottom);
    z-index: 5;
    width: min(220px, calc(100% - 2rem));
}

.home-hero__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.home-hero__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--color-white);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: opacity var(--transition), color var(--transition);
}

.home-hero__nav-btn:hover,
.home-hero__nav-btn:focus-visible {
    color: #6eb0ff;
}

.home-hero__fraction {
    margin: 0;
    flex: 1 1 auto;
    text-align: center;
    color: var(--color-white);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
}

.home-hero__fraction-sep {
    margin: 0 0.25rem;
    opacity: 0.7;
}

.home-hero__progress {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 5;
    width: 100%;
    height: var(--hero-progress-height);
    background: rgba(255, 255, 255, 0.28);
    overflow: hidden;
}

.home-hero__progress-bar {
    display: block;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: var(--color-primary);
    will-change: transform;
}

@media (max-width: 991.98px) {
    .home-hero .hero-swiper,
    .home-hero .swiper-slide {
        height: clamp(620px, 78vh, 760px);
    }
}

@media (max-width: 767.98px) {
    .home-hero .hero-swiper,
    .home-hero .swiper-slide {
        height: clamp(560px, 76vh, 700px);
    }

    .home-hero__controls {
        width: min(200px, calc(100% - 2rem));
    }
}

/* =========================================================
   Intro + numeri
   ========================================================= */

.home-intro {
    background: var(--color-white);
    overflow: hidden;
}

.home-intro__wrap {
    position: relative;
}

.home-intro__layout {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: stretch;
    gap: clamp(2rem, 5vw, 4.75rem);
}

.home-intro__copy {
    flex: 1 1 56%;
    max-width: 640px;
}

.home-intro__text {
    margin: 0 0 1rem;
    color: var(--color-muted);
    font-size: 1.05rem;
}

.home-intro__numbers {
    flex: 1 1 38%;
    display: flex;
    align-items: stretch;
    border-left: 1px solid var(--color-border);
}

.home-stat {
    flex: 1 1 50%;
    padding: 0.35rem 0 0.35rem 1.75rem;
}

.home-stat + .home-stat {
    border-left: 1px solid var(--color-border);
}

.home-stat__value {
    font-size: clamp(2.6rem, 4.4vw, 3.75rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
    color: var(--color-primary);
}

.home-stat__label {
    margin-top: 0.85rem;
    color: var(--color-muted);
    font-size: 0.95rem;
    max-width: 9.5rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    font-size: 0.78rem;
}

@media (max-width: 991.98px) {
    .home-intro__layout {
        flex-direction: column;
    }

    .home-intro__numbers {
        border-left: 0;
        border-top: 1px solid var(--color-border);
        padding-top: 1.5rem;
    }

    .home-stat {
        padding-left: 0;
        padding-right: 1.25rem;
    }
}

@media (max-width: 420px) {
    .home-intro__numbers {
        flex-direction: column;
        gap: 1.15rem;
    }

    .home-stat + .home-stat {
        border-left: 0;
        border-top: 1px solid var(--color-border);
        padding-top: 1.15rem;
    }
}

/* =========================================================
   Servizi mosaico (Flexbox) — rif. mosaico 5 elementi
   ========================================================= */

.home-services {
    background: var(--color-white);
    overflow: hidden;
}

.home-services__header {
    position: relative;
    margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}

.home-services__header .home-eyebrow,
.home-services__header .home-section-title,
.home-services__header .home-section-lead {
    position: relative;
    z-index: 1;
}

.service-mosaic {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    background: var(--color-white);
}

.service-mosaic__item {
    position: relative;
    display: block;
    flex: 0 0 var(--mosaic-width, 33.333%);
    width: var(--mosaic-width, 33.333%);
    max-width: var(--mosaic-width, 33.333%);
    min-height: 300px;
    overflow: hidden;
    color: var(--color-white);
    text-decoration: none;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.service-mosaic__item.service-mosaic-xl,
.service-mosaic__item.service-mosaic-lg {
    min-height: 380px;
}

.service-mosaic__item picture,
.service-mosaic__image {
    width: 100%;
    height: 100%;
}

.service-mosaic__image {
    object-fit: cover;
    transition: transform 0.65s ease;
}

.service-mosaic__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6, 20, 38, 0.12) 0%, rgba(6, 20, 38, 0.82) 100%);
    transition: background var(--transition);
}

.service-mosaic__content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 1.45rem 1.5rem 1.55rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.service-mosaic__title {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.service-mosaic__text {
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.95rem;
}

.service-mosaic__link {
    margin-top: 0.3rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    color: rgba(255, 255, 255, 0.92);
}

.service-mosaic__item:hover,
.service-mosaic__item:focus-visible {
    color: var(--color-white);
}

.service-mosaic__item:hover .service-mosaic__image,
.service-mosaic__item:focus-visible .service-mosaic__image {
    transform: scale(1.035);
}

.service-mosaic__item:hover .service-mosaic__overlay,
.service-mosaic__item:focus-visible .service-mosaic__overlay {
    background: linear-gradient(180deg, rgba(6, 20, 38, 0.2) 0%, rgba(6, 20, 38, 0.9) 100%);
}

@media (max-width: 1199.98px) {
    .service-mosaic__item {
        flex: 0 0 50%;
        width: 50%;
        max-width: 50%;
        min-height: 280px;
    }

    .service-mosaic__item.service-mosaic-xl,
    .service-mosaic__item.service-mosaic-lg {
        min-height: 320px;
    }
}

@media (max-width: 767.98px) {
    .service-mosaic__item {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
        min-height: 250px;
    }
}

/* =========================================================
   Sistema Hotel — banner stile mockup devices + features
   ========================================================= */

.home-hotel-system {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: var(--color-white);
    background:
        radial-gradient(circle at 12% 45%, rgba(0, 140, 255, 0.28), transparent 42%),
        radial-gradient(circle at 92% 20%, rgba(8, 103, 213, 0.18), transparent 30%),
        linear-gradient(120deg, #020b1d 0%, #061426 48%, #071a33 100%);
}

.hotel-system-banner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(1.25rem, 3.5vw, 3rem);
    padding: 0;
    background: none;
    color: inherit;
    overflow: visible;
}

.hotel-system-banner__glow {
    position: absolute;
    left: -8%;
    top: 10%;
    z-index: 0;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 170, 255, 0.35), rgba(8, 103, 213, 0.08) 45%, transparent 70%);
    pointer-events: none;
}

.hotel-system-banner__network {
    position: absolute;
    right: -40px;
    top: 0;
    bottom: 0;
    z-index: 0;
    width: 48%;
    pointer-events: none;
    opacity: 0.45;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(90, 190, 255, 0.55) 0 1.5px, transparent 2px),
        radial-gradient(circle at 45% 55%, rgba(90, 190, 255, 0.45) 0 1.5px, transparent 2px),
        radial-gradient(circle at 70% 25%, rgba(90, 190, 255, 0.4) 0 1.5px, transparent 2px),
        radial-gradient(circle at 82% 70%, rgba(90, 190, 255, 0.5) 0 1.5px, transparent 2px),
        radial-gradient(circle at 55% 80%, rgba(90, 190, 255, 0.35) 0 1.5px, transparent 2px),
        linear-gradient(125deg, transparent 0 46%, rgba(90, 190, 255, 0.18) 46% 46.4%, transparent 46.4%),
        linear-gradient(35deg, transparent 0 52%, rgba(90, 190, 255, 0.14) 52% 52.35%, transparent 52.35%),
        linear-gradient(160deg, transparent 0 40%, rgba(90, 190, 255, 0.12) 40% 40.3%, transparent 40.3%);
    background-size: 100% 100%;
}

.hotel-system-banner__media,
.hotel-system-banner__copy {
    position: relative;
    z-index: 1;
}

.hotel-system-banner__media {
    flex: 1 1 46%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-system-banner__media-frame {
    width: 100%;
}

.hotel-system-banner__media-frame.ai-image-badge {
    max-width: 560px;
    margin-inline: auto;
}

.hotel-system-banner__media img {
    width: 100%;
    max-width: 560px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
    border: 0;
    box-shadow: none;
    max-height: none;
    margin: 0 auto;
}

/* Ritaglio del solo lato devices dal banner mockup completo */
.hotel-system-banner__media--devices-crop .hotel-system-banner__media-frame {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    aspect-ratio: 5 / 4;
    overflow: hidden;
}

.hotel-system-banner__media--devices-crop img {
    position: absolute;
    left: 0;
    top: 50%;
    width: 210%;
    max-width: none;
    height: auto;
    transform: translateY(-50%);
    filter: none;
}

.hotel-system-banner__copy {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 560px;
}

.hotel-system-banner__eyebrow {
    margin: 0 0 0.85rem;
    color: rgba(150, 210, 255, 0.92);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hotel-system-banner__title {
    margin: 0 0 1rem;
    color: var(--color-white);
    font-size: clamp(1.85rem, 3.2vw, 2.65rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.hotel-system-banner__title .text-accent {
    color: #4db3ff;
}

.hotel-system-banner__text {
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
    max-width: 34rem;
}

.hotel-system-banner__features {
    display: flex;
    flex-wrap: wrap;
    margin: 0 0 1.75rem;
    padding: 0;
    list-style: none;
    gap: 0.95rem 1.25rem;
}

.hotel-system-banner__features li {
    position: static;
    flex: 0 0 calc(50% - 0.65rem);
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
    border: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: 0.92rem;
    line-height: 1.35;
}

.hotel-system-banner__features li:last-child {
    border: 0;
}

.hotel-system-banner__features li::before {
    display: none;
    content: none;
}

.hotel-system-banner__icon {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 0.1rem;
    color: #5cbcff;
}

.hotel-system-banner__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hotel-system-banner__feature-label {
    flex: 1 1 auto;
}

.btn-hotel-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-height: 46px;
    padding: 0.7rem 1.25rem;
    border: 1px solid rgba(120, 190, 255, 0.75);
    border-radius: 4px;
    background: transparent;
    color: var(--color-white);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background-color var(--transition), border-color var(--transition), color var(--transition);
}

.btn-hotel-ghost:hover {
    background: rgba(77, 179, 255, 0.12);
    border-color: #4db3ff;
    color: var(--color-white);
}

@media (max-width: 991.98px) {
    .hotel-system-banner {
        flex-direction: column;
        align-items: stretch;
    }

    .hotel-system-banner__media img {
        max-width: 420px;
        margin: 0 auto;
    }

    .hotel-system-banner__copy {
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .hotel-system-banner__features li {
        flex: 0 0 100%;
    }

    .btn-hotel-ghost {
        width: 100%;
    }
}

/* =========================================================
   Settori — pannello full width (griglia 6 + immagine laterale)
   Struttura ispirata a Bridge demo (50/50 + padding ampio)
   ========================================================= */

.home-sectors {
    width: 100%;
    background: var(--color-black);
}

.sectors-panel {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: clamp(560px, 72vh, 780px);
}

.sectors-panel__main {
    position: relative;
    flex: 0 0 75%;
    width: 75%;
    max-width: 75%;
    min-width: 0;
    display: flex;
    align-items: stretch;
    overflow: hidden;
}

.sectors-panel__bg {
    position: absolute;
    inset: 0;
}

.sectors-panel__bg picture,
.sectors-panel__bg img {
    width: 100%;
    height: 100%;
}

.sectors-panel__bg img {
    object-fit: cover;
    filter: grayscale(0.35) contrast(1.05);
}

.sectors-panel__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 12, 22, 0.50);
}

.sectors-panel__content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: clamp(3rem, 7vw, 6.5rem) clamp(8rem, 9vw, 10rem);
}

.sectors-panel__accent {
    width: 100%;
    height: 2px;
    margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
    background: var(--color-primary);
}

.sectors-panel__grid {
    display: flex;
    flex-wrap: wrap;
    flex: 0 1 auto;
    align-content: flex-start;
    column-gap: clamp(2rem, 4vw, 3.5rem);
    row-gap: clamp(2.75rem, 5vw, 4.75rem);
}

.sectors-panel__item {
    flex: 0 0 calc(33.333% - 2.35rem);
    max-width: calc(33.333% - 2.35rem);
    color: var(--color-white);
    text-decoration: none;
    transition: opacity var(--transition);
}

.sectors-panel__item:hover,
.sectors-panel__item:focus-visible {
    color: var(--color-white);
    opacity: 0.88;
}

.sectors-panel__item-head {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    margin-bottom: 1.15rem;
}

.sectors-panel__number {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}

.sectors-panel__item-title {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.25;
}

.sectors-panel__item-text {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 20rem;
}

.sectors-panel__side {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.sectors-panel__side picture,
.sectors-panel__side img {
    width: 100%;
    height: 100%;
    display: block;
}

.sectors-panel__side img {
    object-fit: cover;
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1199.98px) {
    .sectors-panel__item {
        flex: 0 0 calc(50% - 1.25rem);
        max-width: calc(50% - 1.25rem);
    }

    .sectors-panel__content {
        padding: clamp(2.5rem, 5vw, 4rem) clamp(4rem, 6vw, 8rem);
    }
}

@media (max-width: 991.98px) {
    .sectors-panel {
        flex-direction: column;
        min-height: 0;
    }

    .sectors-panel__main {
        flex: 1 1 auto;
        width: 100%;
        max-width: none;
        min-height: 560px;
    }

    .sectors-panel__content {
        padding: 3rem 2.5rem;
    }

    .sectors-panel__side {
        flex: 0 0 auto;
        width: 100%;
        max-width: none;
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .sectors-panel__item {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .sectors-panel__content {
        padding: 2.25rem 1.5rem 2.75rem;
    }

    .sectors-panel__accent {
        margin-bottom: 2rem;
    }

    .sectors-panel__grid {
        row-gap: 2rem;
    }

    .sectors-panel__side {
        height: 240px;
    }
}

/* =========================================================
   CTA
   ========================================================= */

.home-cta {
    background:
        linear-gradient(135deg, rgba(6, 20, 38, 0.96), rgba(8, 103, 213, 0.78)),
        var(--color-navy);
    color: var(--color-white);
    padding: clamp(2.75rem, 5vw, 3.75rem) 0;
}

.home-cta__layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2.5rem;
}

.home-cta__copy {
    max-width: 42rem;
}

.home-cta__title {
    margin: 0 0 0.55rem;
    font-size: clamp(1.65rem, 2.8vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-cta__text {
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.02rem;
}

.home-cta .btn-home-primary {
    background: var(--color-white);
    color: var(--color-navy);
    white-space: nowrap;
}

.home-cta .btn-home-primary:hover {
    background: var(--color-light);
    color: var(--color-navy);
}

@media (max-width: 767.98px) {
    .home-cta__layout {
        flex-direction: column;
        align-items: flex-start;
    }

    .home-cta__action,
    .home-cta__action .btn-home-primary {
        width: 100%;
    }
}

/* =========================================================
   Contatti + mappa
   ========================================================= */

.home-contacts {
    background: var(--color-white);
}

.home-contacts__layout {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: stretch;
}

.home-contacts__info {
    flex: 0 1 34%;
}

.home-contacts__text,
.home-contacts__note {
    color: var(--color-muted);
    margin: 0 0 1.25rem;
}

.home-contacts__list {
    margin: 0 0 1.5rem;
}

.home-contacts__list > div {
    padding: 0.85rem 0;
    border-top: 1px solid var(--color-border);
}

.home-contacts__list > div:last-child {
    border-bottom: 1px solid var(--color-border);
}

.home-contacts__list dt {
    margin: 0 0 0.2rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--color-muted);
}

.home-contacts__list dd {
    margin: 0;
    color: var(--color-text);
    font-size: 1.05rem;
}

.home-contacts__list a {
    color: var(--color-text);
    text-decoration: none;
}

.home-contacts__list a:hover {
    color: var(--color-primary);
}

.home-contacts__directions {
    display: inline-block;
    margin-top: 0.75rem;
    font-weight: 600;
}

.home-contacts__map {
    flex: 1 1 66%;
    min-height: 380px;
    background: var(--color-light);
    border: 1px solid var(--color-border);
}

.home-contacts__map .google-map-wrapper {
    min-height: 380px;
    height: 100%;
}

.home-contacts__map .google-map-placeholder {
    min-height: 380px;
    border: 0;
}

.home-contacts__map iframe,
.home-contacts__map .google-map-iframe {
    width: 100%;
    height: 100%;
    min-height: 380px;
    border: 0;
    display: block;
}

.home-map-placeholder {
    height: 100%;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1.75rem;
    background:
        linear-gradient(135deg, rgba(8, 103, 213, 0.08), rgba(6, 20, 38, 0.03)),
        repeating-linear-gradient(
            -45deg,
            rgba(6, 20, 38, 0.03),
            rgba(6, 20, 38, 0.03) 8px,
            transparent 8px,
            transparent 16px
        );
}

.home-map-placeholder__title {
    margin: 0 0 0.4rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-black);
}

.home-map-placeholder__text {
    margin: 0;
    color: var(--color-muted);
    max-width: 28rem;
}

@media (max-width: 991.98px) {
    .home-contacts__layout {
        flex-direction: column;
    }

    .home-contacts__info,
    .home-contacts__map {
        flex-basis: auto;
        width: 100%;
    }
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: var(--color-navy);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.95rem;
}

.site-footer__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem 1.5rem;
    padding: 3rem 0 1.75rem;
}

.site-footer__brand {
    flex: 1 1 220px;
    max-width: 280px;
}

.site-footer__col {
    flex: 1 1 140px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 700;
    font-size: 1.12rem;
    color: var(--color-white);
}

.footer-brand__logo {
    display: block;
    width: auto;
    height: 40px;
    flex-shrink: 0;
    border-radius: 2px;
}

.footer-brand__text {
    line-height: 1.15;
}

.footer-brand-lines {
    margin: 0.75rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    line-height: 1.45;
}

.footer-brand-lines div + div {
    margin-top: 0.15rem;
}

.footer-tagline {
    margin: 0.65rem 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.footer-title {
    margin: 0 0 0.85rem;
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.4rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1rem 0 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 0;
    max-width: 100%;
}

.footer-bottom__copy {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.5;
}

.footer-legal-data {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    line-height: 1.6;
}

.footer-legal {
    color: rgba(255, 255, 255, 0.62);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-legal:hover {
    color: var(--color-white);
}

.footer-legal-sep {
    margin: 0 0.45rem;
    color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 767.98px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* =========================================================
   Pagine interne — compatibilità
   ========================================================= */

.section {
    padding: 4rem 0;
}

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

.section-title {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.page-hero {
    background: linear-gradient(135deg, var(--primary-soft) 0%, rgba(255, 255, 255, 0.98) 100%);
    padding: 3.5rem 0 2.5rem;
}

.page-hero .page-title {
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.page-hero .page-lead {
    color: var(--color-muted);
    font-size: 1.1rem;
    max-width: 640px;
    margin: 0 auto;
}

.page-content .section,
.page-content .section-alt {
    padding: 2.5rem 0;
}

.page-content .content-block {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.page-content .img-wrap {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(6, 20, 38, 0.08);
}

.page-content .img-wrap img {
    width: 100%;
    height: auto;
}

.page-content h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-text);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.page-content h2:first-child {
    margin-top: 0;
}

.page-content p,
.page-content ul {
    color: var(--color-muted);
    margin-bottom: 1rem;
}

.page-content ul {
    padding-left: 1.25rem;
}

/* =========================================================
   Pagine interne — hero fotografico + sezioni alternate
   (riutilizzabile: Servizi, Settori, Referenze, Contatti)
   ========================================================= */

.internal-hero {
    position: relative;
    color: var(--color-white);
    height: clamp(680px, 78vh, 780px);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    margin: 0;
    padding: 0;
    border-radius: 0;
}

.internal-hero__media,
.internal-hero__media picture {
    position: absolute;
    inset: 0;
}

.internal-hero__image {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
}

.internal-hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-top: var(--header-height);
    padding-bottom: clamp(3.25rem, 7vw, 5.5rem);
}

.internal-feature-row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: clamp(440px, 48vw, 620px);
}

.internal-feature-row--reverse {
    flex-direction: row-reverse;
}

.internal-feature-row--white .internal-feature-row__content {
    background: #ffffff;
}

.internal-feature-row--light .internal-feature-row__content {
    background: linear-gradient(135deg, #f6f9fd 0%, #edf4fb 100%);
}

.internal-feature-row__media {
    flex: 0 0 40%;
    min-width: 0;
    position: relative;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.internal-feature-row__media picture,
.internal-feature-row__media img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.internal-feature-row__media picture {
    position: absolute;
    inset: 0;
}

.internal-feature-row__media img {
    max-width: none;
    object-fit: cover;
}

.internal-feature-row__content {
    flex: 0 0 60%;
    min-width: 0;
    display: flex;
    align-items: center;
    padding: clamp(70px, 8vw, 140px) clamp(40px, 7vw, 120px);
}

.internal-feature-row__body {
    width: 100%;
    max-width: 680px;
}

.internal-feature-row__eyebrow {
    margin: 0 0 0.85rem;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.internal-feature-row__title {
    margin: 0 0 1.25rem;
    color: var(--color-navy);
    font-size: clamp(1.65rem, 2.6vw, 2.35rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.internal-feature-row__text {
    margin: 0 0 1.05rem;
    color: var(--color-text);
    font-size: 1.02rem;
    line-height: 1.75;
}

.internal-feature-row__text:last-child {
    margin-bottom: 0;
}

.internal-feature-row__text strong {
    color: var(--color-navy);
    font-weight: 600;
}

.internal-feature-row__list {
    list-style: none;
    margin: 0.35rem 0 0;
    padding: 0;
}

.internal-feature-row__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 0 0.9rem;
    color: var(--color-text);
    font-size: 1.02rem;
    line-height: 1.55;
}

.internal-feature-row__list li:last-child {
    margin-bottom: 0;
}

.internal-feature-row__list .bi {
    flex: 0 0 auto;
    margin-top: 0.18rem;
    color: var(--color-primary);
    font-size: 1.05rem;
    line-height: 1;
}

.internal-feature-row__cta {
    margin: 1.5rem 0 0;
}

.internal-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.75rem;
}

.internal-contact-actions .btn {
    min-width: 11.5rem;
}

.internal-contact-actions .btn-home-secondary {
    color: var(--color-primary);
    border-color: rgba(8, 103, 213, 0.35);
    background: transparent;
}

.internal-contact-actions .btn-home-secondary:hover {
    color: var(--color-primary-dark);
    border-color: var(--color-primary);
    background: rgba(8, 103, 213, 0.06);
}

.internal-feature-row__link {
    font-weight: 600;
    text-decoration: none;
}

.internal-feature-row__link:hover {
    text-decoration: underline;
}

.internal-feature-row__body--wide {
    max-width: 720px;
}

.internal-feature-row__map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.internal-feature-row__media .google-map-wrapper {
    position: absolute;
    inset: 0;
    min-height: 0;
}

.internal-feature-row__media .google-map-placeholder {
    position: absolute;
    inset: 0;
    min-height: 0;
    border: 0;
}

.internal-feature-row__media .google-map-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
}

.internal-feature-row__form {
    margin-top: 0.75rem;
}

.internal-feature-row__form .form-label {
    font-weight: 500;
    color: var(--color-text);
}

.internal-feature-row--form .internal-feature-row__content {
    align-items: flex-start;
}

.footer-contact-list__address {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .footer-contact-list__address {
        white-space: normal;
    }

    .internal-contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .internal-contact-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .internal-hero {
        height: clamp(600px, 72vh, 680px);
    }

    .internal-feature-row,
    .internal-feature-row--reverse {
        flex-direction: column;
        min-height: 0;
    }

    .internal-feature-row__media,
    .internal-feature-row__content {
        flex: none;
        width: 100%;
        max-width: 100%;
    }

    .internal-feature-row__media {
        position: relative;
        height: clamp(320px, 48vw, 420px);
        min-height: 320px;
        order: 1;
    }

    .internal-feature-row__content {
        order: 2;
        padding: clamp(48px, 8vw, 80px) clamp(1.25rem, 5vw, 2.5rem);
    }
}

@media (max-width: 767.98px) {
    .internal-hero {
        height: clamp(520px, 78vh, 620px);
    }

    .internal-hero__content {
        padding-bottom: 2.75rem;
    }

    .internal-feature-row__media {
        height: clamp(300px, 62vw, 380px);
        min-height: 300px;
    }

    .internal-feature-row__content {
        padding: 2.75rem 1.15rem 3.25rem;
    }

    .internal-feature-row__title {
        font-size: clamp(1.45rem, 6.5vw, 1.85rem);
    }
}

@media (max-width: 575.98px) {
    .internal-feature-row__media {
        height: 300px;
        min-height: 300px;
    }
}

.contact-form-page .form-control {
    border-radius: var(--radius);
    border: 1px solid rgba(8, 103, 213, 0.2);
}

.contact-form-page .form-control:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(8, 103, 213, 0.12);
}

.contact-form-page .btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    border-radius: var(--radius);
    font-weight: 600;
}

.contact-form-page .btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.text-primary-custom {
    color: var(--color-primary) !important;
}

.service-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    border: 1px solid var(--color-border);
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================================
   Bollino immagini generate con AI
   ========================================================= */

.ai-image-badge {
    position: relative;
}

/* Gli hero usano già position:absolute: non degradarli a relative. */
.home-hero__media.ai-image-badge,
.internal-hero__media.ai-image-badge {
    position: absolute;
}

.ai-image-badge::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 5px;
    width: 80px;
    aspect-ratio: var(--ai-badge-aspect-ratio);
    background-image: url("../img/ai-generated.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    z-index: 20;opacity:0.40;
}

/* =========================================================
   Reduced motion
   ========================================================= */

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .service-mosaic__item:hover .service-mosaic__image,
    .service-mosaic__item:focus-visible .service-mosaic__image {
        transform: none;
    }
}
