/* ============================================================
   AffittoBox.bz — Self Storage Bolzano
   Design System (white / red / yellow / black)
   Inspired by the legacy site, multi-page SEO architecture
   ============================================================ */

/* ----------------------------------------------------------------
   FONT FACES
---------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

@font-face {
    font-family: 'PL Brazilia seven';
    src: url('/assets/PL_Brazilia_seven/Brazilia/Web Fonts/c8380b3fa81518f4793820fda5bfc38e.woff2') format('woff2'),
         url('/assets/PL_Brazilia_seven/Brazilia/Web Fonts/c8380b3fa81518f4793820fda5bfc38e.woff') format('woff'),
         url('/assets/PL_Brazilia_seven/Brazilia/Brazilia.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ----------------------------------------------------------------
   1. CSS VARIABLES
---------------------------------------------------------------- */
:root {
    --white: #FFFFFF;
    --off-white: #FAFAFA;
    --bg-light: #F7F7F7;
    --bg-subtle: #F0F0F0;
    --bg-dark: #1A1A1A;
    --bg-dark-card: #222222;
    --bg-dark-elevated: #2A2A2A;

    --red: #EE1E23;
    --red-dark: #C8191D;
    --red-deep: #AA1418;
    --red-light: rgba(238, 30, 35, 0.8);
    --red-glow: rgba(238, 30, 35, 0.15);
    --red-subtle: rgba(238, 30, 35, 0.06);
    --red-border: rgba(238, 30, 35, 0.20);

    --yellow: #FFFF00;
    --yellow-soft: rgba(255, 255, 0, 0.85);
    --yellow-subtle: rgba(255, 255, 0, 0.12);
    --yellow-border: rgba(255, 255, 0, 0.30);

    --green: #22c55e;
    --green-dark: #16a34a;
    --green-glow: rgba(34, 197, 94, 0.15);
    --green-subtle: rgba(34, 197, 94, 0.06);
    --green-border: rgba(34, 197, 94, 0.20);

    --text-dark: #111111;
    --text-body: #333333;
    --text-muted: #666666;
    --text-light: #999999;
    --text-on-dark: #F2F2F2;
    --text-on-dark-muted: #AAAAAA;

    --border: rgba(0, 0, 0, 0.10);
    --border-dark: rgba(255, 255, 255, 0.12);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.10);
    --shadow-red: 0 8px 30px rgba(238, 30, 35, 0.20);

    --container: 1200px;
    --container-narrow: 980px;

    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Inter', sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);

    /* Hover micro-interactions: Material-standard curve.
       Even acceleration & deceleration = naturally smooth, no "snap". */
    --hover-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --hover-duration: 0.35s;
    --hover-duration-fast: 0.2s;

    /* Pre-composed transition lists for hover-animated cards/buttons.
       Replaces `transition: all` (which forces the browser to watch every
       property and is a major source of jank) with only the properties
       actually used by hover states. Keeps animations smooth and scoped.

       NOTE: values are hardcoded (no nested var() calls) on purpose — nested
       custom-property resolution inside the transition shorthand has known
       quirks in some browsers and we want this to be 100% bullet-proof.

       NOTE 2: `opacity` is intentionally NOT in this list. Opacity is owned
       by the @keyframes `revealEntry` entry animation; including it in the
       transition would create two competing effects on the same property
       and on some browsers the transition wins, killing the entry fade. */
    --transition-card: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-card-fast: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);

    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --header-height: 72px;
}

/* ----------------------------------------------------------------
   PRELOADER
---------------------------------------------------------------- */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-box {
  width: 60px;
  height: 48px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--red);
  border-radius: 4px;
}

.preloader-door {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: var(--red);
  animation: doorOpen 1.5s ease-in-out infinite;
}

.preloader-door.left { left: 0; transform-origin: left; }
.preloader-door.right { right: 0; transform-origin: right; }

@keyframes doorOpen {
  0%, 100% { transform: scaleX(1); }
  50% { transform: scaleX(0); }
}

.preloader-text {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--red);
  font-weight: 600;
}

.preloader-sub {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
}

/* ----------------------------------------------------------------
   2. RESET & BASE
---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color var(--hover-duration-fast) var(--hover-ease); }
img, svg, video { max-width: 100%; display: block; height: auto; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--red); color: var(--white); }

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    padding: 0.75rem 1.25rem;
    background: var(--red);
    color: var(--white);
    z-index: 10000;
    border-radius: 0 0 var(--radius-sm) 0;
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ----------------------------------------------------------------
   3. LAYOUT & UTILITIES
---------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.container-narrow { max-width: var(--container-narrow); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-accent { color: var(--red); font-style: italic; }
.text-accent-yellow { color: var(--yellow); }
.text-accent-green { color: var(--green); }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.bg-gray { background: var(--bg-light); }
.bg-dark { background: var(--bg-dark); color: var(--text-on-dark); }

/* ----------------------------------------------------------------
   4. TYPOGRAPHY
---------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.05rem, 1.6vw, 1.2rem); }

p { margin: 0 0 1rem; font-family: 'PL Brazilia seven', var(--font-body); letter-spacing: 0.04em; }

.text-lead {
    font-size: 1.15rem;
    color: var(--text-body);
    line-height: 1.75;
    font-weight: 400;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.4rem);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--text-body);
    max-width: 640px;
    margin: 0 auto 3rem;
    line-height: 1.75;
    font-weight: 400;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.section-label::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
}

.section-label.centered {
    justify-content: center;
}

/* HERO section labels should be yellow */
.hero .section-label {
    color: var(--yellow);
}

.hero .section-label::before {
    background: var(--yellow);
}

/* ----------------------------------------------------------------
   5. HEADER / NAV
---------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.85rem 0;
    /* Only transition cheap-to-animate properties.
       backdrop-filter is intentionally NOT transitioned (re-rasterising the
       blur every frame is the single biggest source of scroll jank). */
    transition:
        background-color 0.35s var(--ease-smooth),
        box-shadow 0.35s var(--ease-smooth),
        padding 0.35s var(--ease-smooth);
    background-color: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    /* Keep the header on its own compositor layer to avoid promotion
       hitches on the first scroll. */
    will-change: background-color, padding, box-shadow;
    contain: layout style;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border);
    padding: 0.55rem 0;
    box-shadow: var(--shadow-sm);
    /* blur stays at 14px from base — no re-rasterisation on state change */
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-dark);
    letter-spacing: -0.02em;
    line-height: 1;
}

.logo-text span {
    color: var(--red);
}

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

@media (min-width: 769px) {
    .nav-list > li:nth-child(1) {
        order: 1;
    }

    .nav-list > li:nth-child(2) {
        order: 2;
    }

    .nav-list > li:nth-child(3) {
        order: 4;
    }

    .nav-list > li:nth-child(4) {
        order: 3;
    }

    .nav-list > li:nth-child(5) {
        order: 5;
    }

    .nav-list > li:nth-child(6) {
        order: 6;
    }

    .nav-list > li:nth-child(7) {
        order: 7;
    }

    .nav-list > li:nth-child(8) {
        order: 8;
    }
}

.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-body);
    border-radius: 100px;
    transition: color var(--hover-duration-fast) var(--hover-ease), background var(--hover-duration-fast) var(--hover-ease);
    white-space: nowrap;
}

.nav-link:hover {
    color: var(--red);
    background: var(--red-subtle);
}

.nav-link.active {
    color: var(--red);
    font-weight: 600;
    background: var(--red-subtle);
}

.nav-cta {
    padding: 0.65rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--white);
    background: var(--red);
    border-radius: 100px;
    transition: var(--transition-card-fast);
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(238, 30, 35, 0.25);
}

.nav-cta:hover {
    background: var(--red-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(238, 30, 35, 0.35);
    color: var(--white);
}

/* Language switcher pill: white text on flag-colored pill (visible on
   both desktop and mobile menus). The lang attribute on the link drives
   the flag colors: lang="de" -> German flag (black/red/gold),
   lang="it" -> Italian flag (green/white/red). A subtle text-shadow keeps
   the white label readable on every stripe (especially white/gold). */
.nav-link.nav-lang,
.nav-list.active .nav-link.nav-lang {
    color: var(--white);
    font-weight: 800;
    letter-spacing: 0.06em;
    /* Layered dark outline keeps the white text readable across every
       flag stripe (especially the white stripe of the Italian flag and
       the gold stripe of the German flag). */
    text-shadow:
        -1px -1px 0 rgba(0, 0, 0, 0.85),
         1px -1px 0 rgba(0, 0, 0, 0.85),
        -1px  1px 0 rgba(0, 0, 0, 0.85),
         1px  1px 0 rgba(0, 0, 0, 0.85),
         0 1px 3px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.18);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
    justify-content: center;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.nav-link.nav-lang[lang="de"],
.nav-list.active .nav-link.nav-lang[lang="de"] {
    background-image: linear-gradient(
        to right,
        #000000 0%, #000000 33.33%,
        #DD0000 33.33%, #DD0000 66.66%,
        #FFCE00 66.66%, #FFCE00 100%
    );
}

.nav-link.nav-lang[lang="it"],
.nav-list.active .nav-link.nav-lang[lang="it"] {
    background-image: linear-gradient(
        to right,
        #009246 0%, #009246 33.33%,
        #FFFFFF 33.33%, #FFFFFF 66.66%,
        #CE2B37 66.66%, #CE2B37 100%
    );
}

.nav-link.nav-lang:hover,
.nav-list.active .nav-link.nav-lang:hover {
    color: var(--white);
    background-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.18);
}

.mobile-lang-flag {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: 14px;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
    position: relative;
    overflow: hidden;
    font-size: 0;
    color: transparent;
}

.mobile-lang-flag[lang="de"] {
    background-image: linear-gradient(
        to bottom,
        #000000 0%, #000000 33.33%,
        #DD0000 33.33%, #DD0000 66.66%,
        #FFCE00 66.66%, #FFCE00 100%
    );
}

.mobile-lang-flag[lang="it"] {
    background-image: linear-gradient(
        to right,
        #009246 0%, #009246 33.33%,
        #FFFFFF 33.33%, #FFFFFF 66.66%,
        #CE2B37 66.66%, #CE2B37 100%
    );
}

.mobile-lang-flag::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-repeat: no-repeat;
    background-size: 100% 100%;
}

.mobile-lang-flag[lang="de"]::before {
    background-image: linear-gradient(
        to bottom,
        #000000 0%, #000000 33.33%,
        #DD0000 33.33%, #DD0000 66.66%,
        #FFCE00 66.66%, #FFCE00 100%
    );
}

.mobile-lang-flag[lang="it"]::before {
    background-image: linear-gradient(
        to right,
        #009246 0%, #009246 33.33%,
        #FFFFFF 33.33%, #FFFFFF 66.66%,
        #CE2B37 66.66%, #CE2B37 100%
    );
}

.mobile-lang-flag:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 14px;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    transition: background 0.25s var(--ease-smooth), border-color 0.25s var(--ease-smooth), box-shadow 0.25s var(--ease-smooth);
    position: relative;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-dark);
    transition: all 0.3s ease;
    display: block;
    border-radius: 1px;
}

.mobile-menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu-btn.active {
    background: var(--red-subtle);
    border-color: rgba(238, 30, 35, 0.22);
    box-shadow: 0 10px 28px rgba(238, 30, 35, 0.14);
}

/* ----------------------------------------------------------------
   6. BUTTONS
---------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.8rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    border-radius: 100px;
    transition: var(--transition-card-fast);
    letter-spacing: 0.01em;
    position: relative;
    text-align: center;
    justify-content: center;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(238, 30, 35, 0.25);
}

.btn-primary:hover {
    background: var(--red-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(238, 30, 35, 0.35);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
    padding: 0.78rem 1.8rem;
}

.btn-outline:hover {
    border-color: var(--yellow);
    color: var(--yellow);
    background: rgba(255, 255, 0, 0.1);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--yellow);
    color: var(--text-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
    background: #FFF06A;
    color: var(--text-dark);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--white);
    color: var(--red);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.btn-light:hover {
    background: var(--off-white);
    color: var(--red-dark);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 0.78rem 1.8rem;
}

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

.btn-lg {
    padding: 1rem 2.2rem;
    font-size: 1rem;
}

.btn-block { width: 100%; }

.btn i { font-size: 0.95em; }

/* ----------------------------------------------------------------
   7. SECTIONS
---------------------------------------------------------------- */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-sm { padding: 3rem 0; }

.section-features {
    padding-top: 4rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.section-services-cta {
    background: var(--red);
    padding: 2rem 0;
    text-align: center;
}

.services-cta-inner {
    max-width: 800px;
    margin: 0 auto;
}

.services-cta-title {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.services-cta-text {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.section-service-cards {
    padding: clamp(3.5rem, 7vw, 6rem) 0;
    background:
        radial-gradient(circle at top left, rgba(238, 30, 35, 0.08), transparent 32rem),
        linear-gradient(180deg, var(--white) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2rem);
    align-items: stretch;
}

.section-service-cards .service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 0;
    text-decoration: none;
    background: linear-gradient(180deg, var(--white) 0%, #fffafa 100%);
    border: 1px solid rgba(238, 30, 35, 0.14);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 60px rgba(17, 17, 17, 0.08);
    transition: var(--transition-card);
    position: relative;
    contain: layout paint;
    isolation: isolate;
}

.section-service-cards .service-card::after {
    content: '';
    position: absolute;
    right: 1.5rem;
    bottom: 0;
    left: 1.5rem;
    height: 4px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    border-radius: 4px 4px 0 0;
    transform: scaleX(0.45);
    transform-origin: center;
    transition: transform var(--hover-duration) var(--hover-ease);
}

.section-service-cards .service-card:hover {
    transform: translateY(-6px);
    border-color: var(--red-border);
    box-shadow: 0 26px 75px rgba(17, 17, 17, 0.13);
}

.section-service-cards .service-card:hover::after {
    transform: scaleX(1);
}

.service-card-image-wrap {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.service-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.5s var(--ease-smooth);
}

.service-cards-grid .service-card:first-child .service-card-image {
    object-position: center top;
}

.section-service-cards .service-card:hover .service-card-image {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.10) 0%, rgba(0, 0, 0, 0.18) 35%, rgba(0, 0, 0, 0.72) 100%),
        linear-gradient(135deg, rgba(238, 30, 35, 0.32), transparent 55%);
    pointer-events: none;
}

.service-card-title {
    position: absolute;
    bottom: 50%;
    left: 2rem;
    right: 2rem;
    transform: translateY(50%);
    font-family: var(--font-display);
    font-size: clamp(1.55rem, 2.8vw, 2.35rem);
    font-weight: 800;
    color: var(--white);
    margin: 0;
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.service-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    padding: 1.5rem 2rem 1.8rem;
    text-align: center;
}

.service-card-text {
    max-width: 34rem;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
    font-weight: 650;
    color: var(--text-body);
    line-height: 1.6;
    margin: 0;
}

.service-card-text-small {
    font-size: clamp(0.85rem, 1.2vw, 0.95rem);
}

.section-about {
    padding-bottom: 20px;
}
.section-lg { padding: 7rem 0; }

.section-header {
    margin-bottom: 0;
    text-align: center;
}

.section-header.text-left {
    text-align: left;
    max-width: 720px;
    margin-left: 0;
    margin-right: auto;
}

/* ----------------------------------------------------------------
   8. PAGE HEADER (used on inner pages)
---------------------------------------------------------------- */
.page-header {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-header.page-header-split {
    padding: 0;
}

.page-header.page-header-services .page-title {
    font-size: clamp(1.3rem, 3.2vw, 2.5rem);
}

.page-header-bg {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 50%;
    max-width: 50%;
    z-index: 1;
}

.page-header-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.page-header.page-header-split .container {
    padding: 0;
    max-width: none;
}

.page-header-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    width: 100%;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(0, 0, 0, 0.18) 0%, transparent 55%);
    pointer-events: none;
}

.page-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-header-centered {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-header-centered .breadcrumb {
    justify-content: center;
    width: 100%;
}

.page-header-centered .section-label {
    color: var(--red);
    white-space: nowrap;
}

.page-header-centered .page-title {
    text-align: center;
}

.page-header-centered .page-subtitle {
    text-align: center;
}

.page-header-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    max-width: 1200px;
    margin-left: 0;
    position: relative;
}

.page-header-left {
    order: 1;
}

.page-header-right {
    order: 2;
    position: relative;
    z-index: 2;
    padding-left: 3rem;
}

.page-header-image {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.page-header-image--rectangular {
    border-radius: var(--radius-lg);
    aspect-ratio: 1/0.67;
    object-fit: cover;
    object-position: top center;
}

@media (max-width: 968px) {
    .page-header {
        padding: var(--header-height) 0 2.5rem;
    }

    .page-header-bg {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        width: 100%;
        max-width: none;
        height: 260px;
    }

    .page-header-split {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .page-header-left {
        display: none;
    }

    .page-header-right {
        order: 1;
        padding-left: 0;
    }

    .page-header .section-label {
        color: var(--yellow);
    }

    .page-header .section-label::before {
        background: var(--yellow);
    }
}

.page-header .section-label {
    color: var(--yellow);
    font-size: 1.35rem;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0.02em;
}

.page-header .section-label::before {
    display: none;
}

.page-header .btn-primary {
    background: var(--white);
    color: var(--text-dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    padding: 1rem 2.2rem;
}

.page-header .btn-primary:hover {
    background: var(--off-white);
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.page-header .page-title,
.page-header .page-title em,
.page-header .page-title-accent {
    color: var(--white);
}

.page-header .page-subtitle {
    color: rgba(255, 255, 255, 0.92);
}

.page-header .breadcrumb,
.page-header .breadcrumb a {
    color: rgba(255, 255, 255, 0.85);
}

.page-header .breadcrumb a:hover { color: var(--white); }

.page-header .breadcrumb-sep {
    color: rgba(255, 255, 255, 0.45);
}

.page-header .breadcrumb-current {
    color: var(--white);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.page-title em,
.page-title-accent {
    color: var(--red);
    font-style: italic;
}

#contact-hero-title {
    font-size: clamp(2rem, 4.8vw, 3.25rem);
}

.page-subtitle {
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
    color: var(--text-on-dark-muted);
    line-height: 1.7;
    max-width: 700px;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 0.6rem;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 0.82rem;
    color: var(--text-on-dark-muted);
    list-style: none;
}

.breadcrumb a {
    color: var(--text-on-dark-muted);
    transition: color 0.2s ease;
}

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

.breadcrumb-sep {
    color: rgba(255, 255, 255, 0.3);
}

.breadcrumb-current {
    color: var(--white);
    font-weight: 500;
}

/* ----------------------------------------------------------------
   9. HERO (homepage)
---------------------------------------------------------------- */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: var(--white);
    padding-top: var(--header-height);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url('/assets/images/Foto/affittobox_hero.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.hero-dark-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(238, 30, 35, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 20% 80%, rgba(238, 30, 35, 0.05) 0%, transparent 50%);
}

.hero-inner {
    position: relative;
    z-index: 10;
    max-width: var(--container);
    margin: 0 auto;
    padding: 3rem 1.5rem 4rem;
    width: 100%;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content { max-width: 640px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 1.1rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    margin-bottom: 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--white);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1rem, 2.5vw, 2rem);
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
    color: var(--white);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero-title em,
.hero-title-accent {
    color: var(--white);
    font-style: italic;
}

.hero-text,
.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--white);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.hero-text-large {
    font-family: var(--font-display);
    font-size: clamp(0.9rem, 1.8vw, 1.3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    max-width: 560px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-cta,
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.hero-cta .btn-primary {
    background: var(--yellow);
    color: var(--text-dark);
    box-shadow: 0 4px 14px rgba(255, 255, 0, 0.3);
}

.hero-cta .btn-primary:hover {
    background: #FFF06A;
    color: var(--text-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 0, 0.4);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.hero-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    white-space: nowrap;
}

.stat-number {
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    display: inline;
    letter-spacing: -0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.stat-row {
    display: flex;
    align-items: baseline;
    gap: 0;
}

.stat-suffix {
    font-family: var(--font-mono);
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    font-weight: 800;
    color: var(--yellow);
}

.stat-label {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.hero-stat-divider {
    width: 1px;
    height: 36px;
    background: rgba(255, 255, 255, 0.2);
}

/* Hero visual side card */
.hero-visual {
    position: relative;
}

.hero-features-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.hero-features-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--red-glow), transparent 60%);
    border-radius: calc(var(--radius-lg) + 2px);
    z-index: -1;
}

.hero-features-card h2,
.hero-features-card .h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-dark);
    line-height: 1.4;
}

.hero-features-card h2 strong,
.hero-features-card .h4 strong {
    color: var(--red);
    font-weight: 700;
}

.hero-features-card .feature-icon {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    font-size: 0.9rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.hero-features-card .feature-icon i {
    font-size: 0.9rem;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.feature-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.feature-item > div {
    flex: 1;
    min-width: 0;
}

.feature-item .step-number-ring {
    width: 36px;
    height: 36px;
    border: 2px solid var(--red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--red);
    background: var(--white);
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.feature-item strong {
    display: block;
    color: var(--text-dark);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    letter-spacing: 0.02em;
}

.feature-item p {
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ----------------------------------------------------------------
   10. MARQUEE
---------------------------------------------------------------- */
.marquee-section {
    background: var(--red);
    padding: 0.85rem 0;
    overflow: hidden;
    position: relative;
    border-top: 4px solid var(--red);
    border-bottom: 4px solid var(--red);
}

.marquee-track {
    display: flex;
    width: max-content;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 0;
    animation: marqueeScroll 40s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--white);
    padding: 0 1.5rem;
    text-transform: uppercase;
}

.marquee-dot {
    width: 6px;
    height: 6px;
    background: var(--yellow);
    border-radius: 50%;
    flex-shrink: 0;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ----------------------------------------------------------------
   11. ABOUT SECTION
---------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-text {
    font-size: 1.02rem;
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-highlights {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 2rem;
}

.highlight {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.highlight-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-subtle);
    border: 1px solid var(--red-border);
    border-radius: 12px;
    color: var(--red);
}

.highlight-icon i { font-size: 1.05rem; }

.highlight h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    color: var(--text-dark);
}

.highlight p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin-bottom: 0;
}

/* About Visual cards */
.about-visual {
    position: relative;
    height: 460px;
}

.visual-card {
    position: absolute;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    transition: transform var(--hover-duration) var(--hover-ease), box-shadow var(--hover-duration) var(--hover-ease);
}

.visual-card-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

.visual-card-inner i {
    font-size: 2rem;
    color: var(--red);
}

.visual-card-inner span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.02em;
}

.card-1 {
    top: 0;
    left: 8%;
    transform: rotate(-3deg);
}

.card-1:hover {
    transform: rotate(-3deg) translateY(-8px);
}

.card-2 {
    top: 35%;
    right: 0;
    transform: rotate(2deg);
}

.card-2:hover {
    transform: rotate(2deg) translateY(-8px);
}

.card-3 {
    bottom: 0;
    left: 18%;
    transform: rotate(-1deg);
}

.card-3:hover {
    transform: rotate(-1deg) translateY(-8px);
}

.visual-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--red-glow), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ----------------------------------------------------------------
   12. STORAGE SIZES (boxes)
---------------------------------------------------------------- */
.section-sizes {
    background: var(--bg-light);
    overflow: hidden;
}

.sizes-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.sizes-pattern {
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, var(--red-subtle) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--red-subtle) 0%, transparent 50%);
}

.sizes-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

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

.sizes-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.size-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.6rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition-card);
    display: flex;
    flex-direction: column;
    contain: layout paint;
}

.size-card-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--hover-duration) var(--hover-ease);
    pointer-events: none;
}

.size-card:hover .size-card-glow { opacity: 1; }

.size-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--red-border);
}

.size-card.featured {
    border-color: var(--red);
    background: var(--white);
    box-shadow: 0 0 0 1px var(--red), var(--shadow-lg);
}

.featured-tag {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    padding: 0.3rem 0.85rem;
    background: var(--red);
    color: var(--white);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 100px;
    z-index: 3;
}

.size-badge {
    font-family: var(--font-mono);
    font-size: 2.6rem;
    font-weight: 800;
    color: var(--red);
    opacity: 0.10;
    position: absolute;
    top: 1.2rem;
    left: 1.5rem;
    line-height: 1;
}

.size-card.featured .size-badge { opacity: 0.15; }

.size-visual {
    display: flex;
    justify-content: center;
    padding: 1.5rem 0 1rem;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.15));
    transition: filter var(--hover-duration) var(--hover-ease);
}

.size-image {
    width: 100%;
    max-width: 320px;
    height: 280px;
    object-fit: contain;
    transition: transform var(--hover-duration) var(--hover-ease);
    transform: translateZ(0);
    backface-visibility: hidden;
}

.size-card:hover .size-image {
    transform: scale(1.08) translateY(-4px);
}

.size-card.featured .size-visual {
    filter: drop-shadow(0 14px 30px rgba(238, 30, 35, 0.20));
}

.size-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
    position: relative;
    z-index: 1;
}

.size-dimensions {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 0.85rem;
    letter-spacing: 0.04em;
    position: relative;
    z-index: 1;
}

.size-desc {
    font-size: 0.88rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.size-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    flex: 1;
}

.size-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-body);
}

.size-features li i,
.size-features li svg {
    color: var(--red);
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    font-size: 0.75rem;
}

.size-card .btn {
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* ----------------------------------------------------------------
   12b. STORAGE SIZES — HORIZONTAL ROWS (legacy-inspired layout)
---------------------------------------------------------------- */
.box-rows {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.box-row {
    display: grid;
    grid-template-columns: minmax(260px, 34%) 1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2rem 2.25rem;
    background: var(--white);
    transition: background-color var(--hover-duration-fast) var(--hover-ease);
}

.box-row + .box-row {
    border-top: 1px solid var(--border);
}

.box-row:nth-child(odd) {
    background: var(--bg-light);
}

.box-row-image {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.box-row-image--box-499 {
    background-image: url('/assets/images/Foto/foto_porta-box_499.jpg');
    background-size: cover;
    background-position: center center;
    background-color: var(--red);
}

.box-row-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.box-row-image--box-499 img {
    min-height: 100%;
    object-position: center center;
    opacity: 1;
    visibility: visible;
}

.box-row:hover .box-row-image img {
    transform: scale(1.04);
}

.box-row-content {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.box-row-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 800;
    color: var(--red);
    line-height: 1.2;
    margin: 0;
}

.box-row-tagline {
    font-size: 1rem;
    color: var(--text-body);
    margin: 0;
    line-height: 1.55;
}

.box-row-tagline strong {
    color: var(--text-dark);
    font-weight: 700;
}

.box-row-desc {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.65;
    margin: 0;
}

.box-row-cta {
    margin-top: 0.75rem;
    align-self: flex-start;
}

@media (max-width: 768px) {
    .box-row {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 1.5rem;
    }
    .box-row-image { aspect-ratio: 16 / 10; }
    .box-row-cta { width: 100%; }
}

/* ----------------------------------------------------------------
   13. FEATURES GRID
---------------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.features-grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.feature-card {
    padding: 2rem 1.75rem;
    background: var(--white);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: var(--transition-card);
    contain: layout paint;
    text-align: center;
}

.feature-card:hover {
    background: var(--white);
    border-color: var(--red);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--hover-duration) var(--hover-ease);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-number {
    display: none;
}

.feature-icon {
    width: 96px;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--text-dark);
    margin: 0 auto;
    transition: var(--transition-card-fast);
    font-size: 2.2rem;
}

/* Buttons inside the feature-cards (used in the German "Warum
   AffittoBox.bz" section) should be solid red with white text and
   stay readable on the white card background. */
.feature-card .btn-outline,
.feature-card .feature-cta {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(238, 30, 35, 0.25);
    margin-top: 20px;
}

.feature-card .btn-outline:hover,
.feature-card .feature-cta:hover {
    background: var(--red-dark, #c8181c);
    border-color: var(--red-dark, #c8181c);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(238, 30, 35, 0.35);
}

.feature-card:hover .feature-icon {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

.feature-icon i { font-size: 2.2rem; }

.feature-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    color: var(--red);
}

.feature-text {
    font-size: 0.92rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ----------------------------------------------------------------
   14. STEPS / HOW IT WORKS
---------------------------------------------------------------- */
.section-how {
    background: var(--white);
    color: var(--text-dark);
    padding: 0;
}

.section-how .section-title { color: var(--text-dark); }

.section-features .section-title {
    color: var(--red);
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
}

.how-grid {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.how-left {
    display: flex;
    align-items: center;
    justify-content: center;
}

.how-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.how-right {
    display: flex;
    flex-direction: column;
}

@media (max-width: 968px) {
    .how-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .how-left {
        order: -1;
    }

    .how-logo {
        max-width: 150px;
    }
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.steps-grid-4 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.step-card {
    text-align: center;
    position: relative;
    padding: 0 0.5rem;
}

.steps-grid-4 .step-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
    padding: 0.5rem 0;
}

.steps-grid-4 .step-number-ring {
    margin: 0;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.step-content {
    display: flex;
    flex-direction: column;
}

.steps-grid-4 .step-connector {
    display: none;
}

.step-connector {
    position: absolute;
    top: 198px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: linear-gradient(90deg, var(--red), rgba(255, 255, 255, 0.1));
    z-index: 0;
}

.step-card:last-child .step-connector { display: none; }

.step-number-ring {
    width: 40px;
    height: 40px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    border: 2px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    background: var(--red);
    transition: background var(--hover-duration) var(--hover-ease), box-shadow var(--hover-duration) var(--hover-ease);
}

.step-card:hover .step-number-ring {
    background: var(--red-dark);
    box-shadow: 0 0 24px rgba(238, 30, 35, 0.4);
}

.step-number-ring span,
.step-number {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    transition: color var(--hover-duration-fast) var(--hover-ease);
}

.step-card:hover .step-number-ring span { color: var(--white); }

.step-image-wrapper {
    width: 166px;
    height: 166px;
    margin: 0 auto 0.75rem;
    flex-shrink: 0;
}

.step-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--white);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.step-text {
    font-size: 0.9rem;
    color: var(--text-body);
    line-height: 1.65;
    margin-bottom: 0;
}

/* Full-width steps layout */
.steps-fullwidth {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 0;
}

.step-full {
    position: relative;
    width: 100%;
    height: 720px;
    margin: 0;
    overflow: hidden;
}

.step-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.step-full .step-content {
    position: absolute;
    bottom: 3rem;
    left: 2rem;
    right: 2rem;
    z-index: 2;
    max-width: 500px;
}

.step-number-yellow {
    font-family: var(--font-display);
    font-size: 6rem;
    font-weight: 900;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 2rem;
    display: block;
    position: relative;
}

.step-number-yellow::after {
    content: '';
    position: absolute;
    bottom: -1.25rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--white);
}

.step-full .step-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.step-full .step-text {
    font-size: 1.1rem;
    color: var(--white);
    line-height: 1.6;
    margin-bottom: 0;
}

.step-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .steps-fullwidth {
        grid-template-columns: 1fr;
    }

    .step-full {
        height: 600px;
    }

    .step-full .step-content {
        bottom: 2rem;
        left: 1.5rem;
        right: 1.5rem;
        max-width: none;
    }

    .step-number-yellow {
        font-size: 4rem;
    }

    .step-full .step-title {
        font-size: 1.5rem;
    }

    .step-full .step-text {
        font-size: 1rem;
    }
}

.section-how-inline {
    padding: 3rem 0;
}

.section-how-inline .container {
    max-width: 1100px;
}

.section-how-inline .how-grid {
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.1fr);
    gap: 3.5rem;
    margin-top: 0;
    align-items: center;
}

.section-how-inline .how-left {
    justify-content: flex-end;
}

.section-how-inline .how-logo {
    max-width: 430px;
}

.section-how-inline .section-header {
    margin-bottom: 1.5rem;
}

.section-how-inline .section-label {
    display: none;
}

.section-how-inline .section-title {
    font-size: clamp(2rem, 3vw, 2.8rem);
    line-height: 1.12;
    margin-bottom: 2rem;
}

.section-how-inline .steps-grid {
    margin-top: 0;
}

.section-how-inline .steps-grid-4 {
    gap: 0.55rem;
}

.section-how-inline .steps-grid-4 .step-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    text-align: left;
    padding: 1rem 0;
}

.section-how-inline .steps-grid-4 .step-connector {
    display: none;
}

.section-how-inline .step-number-ring {
    width: 32px;
    height: 32px;
    border: 2px solid var(--red);
    margin: 0;
    background: var(--red);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-how-inline .step-number-ring span {
    font-size: 1rem;
}

.section-how-inline .step-title {
    display: none;
}

.section-how-inline .step-content {
    position: static;
    bottom: auto;
    left: auto;
    right: auto;
    z-index: auto;
    max-width: none;
    padding-top: 0;
    padding-left: 0;
    flex: 1;
    align-self: flex-start;
}

.section-how-inline .step-text {
    color: var(--text-dark);
    font-size: 0.9rem;
    line-height: 1.3;
    margin: 0;
}

.section-how-inline .step-link {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--hover-duration) var(--hover-ease);
}

.section-how-inline .step-link:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

.section-how-inline .how-cta {
    text-align: center;
    margin-top: 2rem;
}

.section-how-inline .how-btn {
    padding: 0.95rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    box-shadow: none;
}

.section-how-inline .how-btn i {
    display: none;
}

@media (max-width: 968px) {
    .section-how-inline .how-grid {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }

    .section-how-inline .how-left {
        justify-content: center;
    }

    .section-how-inline .how-logo {
        max-width: 280px;
    }

    .section-how-inline .section-header,
    .section-how-inline .how-cta {
        text-align: center;
    }

    .section-how-inline .steps-grid-4 .step-card {
        max-width: 560px;
        margin: 0 auto;
    }
}

@media (max-width: 640px) {
    .section-how-inline {
        padding: 2.5rem 0;
    }

    .section-how-inline .section-title {
        font-size: 1.7rem;
    }

    .section-how-inline .how-logo {
        max-width: 240px;
    }
}

/* Fix for light background sections (bg-gray) */
.bg-gray .step-title {
    color: var(--text-dark);
}

.bg-gray .step-text {
    color: var(--text-body);
}

.bg-gray .step-number-ring {
    background: var(--bg-light);
}

/* ----------------------------------------------------------------
   15. SERVICES
---------------------------------------------------------------- */
.section-services {
    background: var(--bg-light);
}

.services-simple-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.service-column {
    padding: 0;
}

.service-column .service-icon-wrap {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 1rem;
}

.service-column .service-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 1rem;
    text-align: center;
}

.service-column .service-text:first-of-type {
    text-align: center;
}

.service-column .service-text {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 0.75rem;
    text-align: left;
}

.service-column .service-text i {
    color: var(--red);
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .services-simple-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.services-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    transition: var(--transition-card);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    contain: layout paint;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--red-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--hover-duration) var(--hover-ease);
}

.service-card:hover::after { transform: scaleX(1); }

.service-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--red-border);
    transform: translateY(-4px);
}

.service-card-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.5rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(238, 30, 35, 0.02) 100%);
}

.service-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-subtle);
    border: 1px solid var(--red-border);
    border-radius: 16px;
    color: var(--red);
    margin-bottom: 1.25rem;
    transition: var(--transition-card);
    flex-shrink: 0;
}

.service-icon-wrap i { font-size: 1.4rem; }

.service-card-large .service-icon-wrap {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    margin-bottom: 0;
}

.service-card-large .service-icon-wrap i { font-size: 1.8rem; }

.service-card:hover .service-icon-wrap {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
    transform: scale(1.05);
}

.service-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.service-text {
    font-size: 0.93rem;
    color: var(--text-body);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.service-tag {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background: var(--red-subtle);
    border: 1px solid var(--red-border);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--red);
    letter-spacing: 0.02em;
}

.service-list {
    list-style: none;
    margin: 0 0 1.5rem;
}

.service-list li {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-body);
}

.service-list li:last-child { border-bottom: none; }

.service-list li i {
    color: var(--red);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ----------------------------------------------------------------
   16. NUMBERS / STATS
---------------------------------------------------------------- */
.section-numbers {
    background: var(--bg-dark);
    padding: 5rem 0;
}

.numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.number-item { padding: 1rem 0.5rem; }

.number-value {
    font-family: var(--font-mono);
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1;
    display: block;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.number-value::after {
    content: attr(data-suffix);
    color: var(--yellow);
    font-size: 0.6em;
}

.number-label {
    font-size: 0.75rem;
    color: var(--text-on-dark-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ----------------------------------------------------------------
   17. SUSTAINABILITY
---------------------------------------------------------------- */
.section-sustainability {
    background: var(--bg-dark);
    color: var(--text-on-dark);
    position: relative;
    overflow: hidden;
}

.section-sustainability .section-title { color: var(--text-on-dark); }
.section-sustainability .section-subtitle { color: var(--text-on-dark-muted); }
.section-sustainability .section-label { color: var(--green); }
.section-sustainability .section-label::before { background: var(--green); }

.sustainability-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 1;
}

.sustainability-card {
    background: var(--bg-dark-card);
    border: 1px solid var(--green-border);
    border-radius: var(--radius-lg);
    padding: 2.25rem 1.75rem;
    text-align: center;
    transition: var(--transition-card);
    position: relative;
    overflow: hidden;
    contain: layout paint;
}

.sustainability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--green), transparent);
    opacity: 0;
    transition: opacity var(--hover-duration) var(--hover-ease);
}

.sustainability-card:hover {
    transform: translateY(-4px);
    border-color: var(--green);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.1);
}

.sustainability-card:hover::before { opacity: 1; }

.sustainability-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--green-subtle);
    border-radius: 50%;
    color: var(--green);
    font-size: 1.3rem;
}

.sustainability-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-on-dark);
    margin-bottom: 0.7rem;
}

.sustainability-text {
    font-size: 0.9rem;
    color: var(--text-on-dark-muted);
    line-height: 1.65;
    margin-bottom: 1.25rem;
}

.sustainability-stat {
    padding-top: 1.1rem;
    border-top: 1px solid var(--border-dark);
}

.sustainability-stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--yellow);
    line-height: 1;
    margin-bottom: 0.3rem;
}

.sustainability-stat-label {
    font-size: 0.72rem;
    color: var(--text-on-dark-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ----------------------------------------------------------------
   18. TESTIMONIALS
---------------------------------------------------------------- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--bg-light);
    border: 1px solid transparent;
    border-radius: var(--radius-xl);
    padding: 2rem 1.75rem;
    transition: var(--transition-card);
    position: relative;
    contain: layout paint;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
    font-family: Georgia, serif;
    font-size: 4.5rem;
    line-height: 1;
    color: var(--red);
    opacity: 0.15;
    pointer-events: none;
}

.testimonial-card:hover {
    border-color: var(--red-border);
    box-shadow: var(--shadow-sm);
    transform: translateY(-4px);
}

.testimonial-stars {
    display: flex;
    gap: 0.2rem;
    margin-bottom: 1.25rem;
    color: var(--red);
}

.testimonial-stars i { font-size: 0.85rem; }

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.author-name {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-dark);
}

.author-role {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ----------------------------------------------------------------
   20. CONTACT (simple white form)
---------------------------------------------------------------- */
.section-contact-simple {
    background: var(--white);
    color: var(--text-dark);
    border-top: 4px solid var(--red);
}

.contact-simple-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: start;
}

.contact-simple-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
    margin-bottom: 0.5rem;
}

.contact-simple-desc {
    font-size: 1rem;
    color: var(--text-body);
    margin-bottom: 1.75rem;
    line-height: 1.6;
}

.contact-simple-details {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-simple-row {
    display: flex;
    gap: 0.6rem;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-dark);
}

.contact-simple-row strong {
    min-width: 110px;
    flex-shrink: 0;
    color: var(--text-dark);
}

.contact-simple-row a {
    color: var(--red);
    text-decoration: underline;
    font-weight: 600;
}

.contact-simple-row a:hover { color: var(--red-dark); }

.contact-simple-form-wrap {
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
}

.contact-simple-form-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.25rem;
}

/* Variant with bottom image (image inside left info column,
   flush to section bottom edge on desktop) */
.section-contact-simple--with-image {
    padding-bottom: 0;
    overflow: hidden;
}

.section-contact-simple--with-image .contact-simple-layout {
    align-items: stretch;
}

.section-contact-simple--with-image .contact-simple-info {
    display: flex;
    flex-direction: column;
}

/* Keep the form column at its natural height (don't stretch to section bottom) */
.section-contact-simple--with-image .contact-simple-form-wrap {
    align-self: start;
}

.contact-simple-image {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    line-height: 0;
    font-size: 0;
    transform: translateX(-60px);
}

.contact-simple-image img {
    width: auto;
    height: auto;
    max-width: 340px;
    max-height: 320px;
    display: block;
    margin: 0;
}

@media (max-width: 1024px) {
    /* Single-column stack: restore section bottom padding so the form
       isn't glued to the section edge, image flows under the text. */
    .section-contact-simple--with-image {
        padding-bottom: 5rem;
    }
    .section-contact-simple--with-image .contact-simple-info {
        display: flex;
        flex-direction: column;
        position: relative;
    }
    .contact-simple-image {
        margin-top: auto;
        padding-top: 0;
        transform: none;
        margin-bottom: -5rem;
    }
    .contact-simple-image img {
        max-width: 280px;
        max-height: 280px;
    }
}

@media (max-width: 768px) {
    .contact-simple-image img {
        max-width: 240px;
        max-height: 240px;
    }

    .section-contact-simple--with-image .contact-simple-info {
        display: flex;
        flex-direction: column;
        position: relative;
    }

    .contact-simple-image {
        order: 2;
        margin-top: auto;
        padding-top: 0;
        margin-bottom: -5rem;
    }

    .section-tour::before,
    .section-tour::after {
        opacity: 0;
    }
}

/* Contact cards (icon-based, dark) */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
    margin-bottom: 3rem;
}

.contact-card-mini {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.75rem 1.25rem;
    background: var(--bg-dark-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: var(--transition-card);
    contain: layout paint;
}

.contact-card-mini:hover {
    border-color: var(--red-border);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(238, 30, 35, 0.1);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--red-subtle);
    border-radius: 50%;
    color: var(--red);
}

.contact-card-icon i { font-size: 1rem; }

.contact-card-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-on-dark-muted);
    font-weight: 500;
}

.contact-card-value {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-on-dark);
}

/* Contact info card (light) */
.contact-info-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition-card);
    contain: layout paint;
}

.contact-info-card:hover {
    border-color: var(--red-border);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.contact-info-card .feature-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.contact-info-card h3 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
    color: var(--text-dark);
}

.contact-info-card a {
    color: var(--red);
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-info-card a:hover { color: var(--red-dark); }

.contact-info-card p {
    margin-bottom: 0;
    color: var(--text-body);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* ----------------------------------------------------------------
   21. FORMS
---------------------------------------------------------------- */
.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

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

.form-label,
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0;
}

.form-input,
.form-textarea,
.form-select,
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(238, 30, 35, 0.10);
}

.form-input::placeholder,
.form-textarea::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-light);
}

.form-textarea,
.form-group textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.5;
}

.form-select,
.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-input.is-invalid,
.form-textarea.is-invalid,
.form-select.is-invalid,
.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
    border-color: var(--red);
    background-color: rgba(238, 30, 35, 0.04);
}

.form-info-note {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 1rem 0 1.25rem;
    padding: 0.85rem 1rem;
    background: var(--red-subtle);
    border: 1px solid var(--red-border);
    border-radius: var(--radius-md);
    color: var(--text-dark);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
}

.form-info-note i {
    color: var(--red);
    font-size: 1.05rem;
    flex-shrink: 0;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: var(--text-body);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 2px;
    accent-color: var(--red);
    cursor: pointer;
}

.form-consent label { cursor: pointer; }

.form-consent a {
    color: var(--red);
    text-decoration: underline;
    font-weight: 500;
}

.form-submit-btn {
    width: 100%;
    padding: 0.95rem 2rem;
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 100px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-card-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 14px rgba(238, 30, 35, 0.25);
}

.form-submit-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(238, 30, 35, 0.35);
}

/* Box Selection Grid */
.box-selection-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.box-selection-item {
    cursor: pointer;
    position: relative;
}

.box-selection-item input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.box-selection-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition-card-fast);
}

.box-selection-item input[type="radio"]:checked + .box-selection-content {
    border-color: var(--red);
    background: var(--red-subtle);
    box-shadow: 0 0 0 3px rgba(238, 30, 35, 0.10);
}

.box-selection-content img {
    width: 80px;
    height: 70px;
    object-fit: contain;
    margin: 0;
}

.box-selection-content span {
    font-size: 0.75rem;
    color: var(--text-dark);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
}

.box-selection-content span::before {
    content: attr(data-box-name);
    font-weight: 700;
    font-size: 0.9rem;
}

.box-selection-content span::after {
    content: attr(data-box-size);
    font-weight: 400;
    color: var(--text-muted);
}

.box-selection-item:hover .box-selection-content {
    border-color: var(--red-border);
}

@media (max-width: 768px) {
    .box-selection-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-submit-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ----------------------------------------------------------------
   21b. CONTACT CTA (full-width with background image)
---------------------------------------------------------------- */
.section-contact-cta {
    position: relative;
    overflow: hidden;
    padding: 10rem 0;
    color: var(--white);
    isolation: isolate;
}

.section-contact-cta .container {
    margin: 0;
    padding-left: 3rem;
}

.contact-cta-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.contact-cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.05);
}

.contact-cta-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}

.contact-cta-inner {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 720px;
    margin: 0;
}

.contact-cta-inner .section-label {
    color: var(--red);
    margin-bottom: 1rem;
}

.contact-cta-inner .section-label::before,
.contact-cta-inner .section-label::after {
    background: var(--red);
}

.contact-cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

.contact-cta-title .text-accent {
    color: var(--red-light);
}

.contact-cta-text {
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
    margin-bottom: 2.25rem;
    font-weight: 600;
    text-align: left;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.7);
}

.contact-cta-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
    align-items: flex-start;
}

@media (max-width: 640px) {
    .section-contact-cta { padding: 4rem 0; }
    .contact-cta-actions .btn { width: 100%; }
}

/* ----------------------------------------------------------------
   22. CTA BANNER (red)
---------------------------------------------------------------- */
.cta-banner {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    padding: 3.5rem 0;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.cta-banner-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    z-index: 1;
}

.cta-banner-text { flex: 1; }

.cta-banner-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 3vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.4rem;
    line-height: 1.2;
}

.cta-banner-desc {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-bottom: 0;
    line-height: 1.5;
}

.cta-banner-actions {
    display: flex;
    gap: 0.85rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}

/* CTA section centered (page-level) */
.section.cta {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.section.cta.contact-call-cta {
    background: var(--red) !important;
    padding-top: 7rem;
}

.section.cta.contact-call-cta::before {
    display: none;
}

.cta-title {
    color: var(--black) !important;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.cta-text {
    font-size: 1.1rem;
    color: var(--black);
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ----------------------------------------------------------------
   23. CARDS (generic)
---------------------------------------------------------------- */
.card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-card);
    display: flex;
    flex-direction: column;
    contain: layout paint;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--red-border);
}

.card-image-wrap {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-subtle) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 3.5rem;
    overflow: hidden;
    position: relative;
}

.card-image-wrap.card-image-red {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    color: rgba(255, 255, 255, 0.92);
}

.card-image-wrap.card-image-yellow {
    background: linear-gradient(135deg, var(--yellow) 0%, #FFE600 100%);
    color: var(--text-dark);
}

.card-content {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.card-badge {
    display: inline-block;
    background: var(--red);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

/* ----------------------------------------------------------------
   24. FOOTER
---------------------------------------------------------------- */
.footer {
    background: var(--red);
    padding: 4rem 1rem 1.5rem;
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    border-bottom: 1px solid var(--border-dark);
    align-items: end;
}

.footer-right-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 2.5rem;
}

.footer-left-image {
    position: sticky;
    top: 2rem;
}

.footer-image {
    max-width: 260px;
    height: auto;
}

.footer-right-content {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo-img {
    width: 220px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-brand .logo-text {
    color: var(--white);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-brand .logo-text span { color: var(--black); }

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--white);
    max-width: 320px;
    margin-bottom: 1rem;
}

.footer-certifications {
    display: flex;
    gap: 0.4rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
}

.footer-cert {
    display: inline-block;
    padding: 0.25rem 0.7rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

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

.footer-links a,
.footer-col a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.86rem;
    color: var(--white);
    transition: color 0.2s ease;
}

.footer-links a:hover,
.footer-col a:hover { color: var(--black); }

.footer-contact-item {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.86rem;
    color: var(--white);
}

.footer-contact-item i {
    color: var(--black);
    width: 14px;
    text-align: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

.footer-contact-item a {
    color: var(--white);
    transition: color 0.2s ease;
}

.footer-contact-item a:hover { color: var(--black); }

.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.75rem;
    color: var(--white);
}

.footer-legal-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: var(--white);
    transition: color 0.2s ease;
}

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

/* ----------------------------------------------------------------
   25. THANK YOU + 404 PAGES
---------------------------------------------------------------- */
.center-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--header-height) + 3rem) 1.5rem 3rem;
}

.center-page-inner {
    max-width: 600px;
    margin: 0 auto;
}

.success-icon,
.error-icon {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 3rem;
    color: var(--white);
}

.success-icon {
    background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.3);
}

.error-icon {
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    box-shadow: 0 14px 30px rgba(238, 30, 35, 0.3);
}

.error-code {
    font-family: var(--font-mono);
    font-size: clamp(5rem, 14vw, 8rem);
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -0.04em;
}

.center-page h1 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.center-page-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

/* ----------------------------------------------------------------
   26. LEGAL CONTENT
---------------------------------------------------------------- */
.legal-content {
    max-width: 820px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
}

.legal-content h2 {
    font-size: 1.35rem;
    margin: 2rem 0 0.85rem;
    color: var(--text-dark);
}

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

.legal-content h3 {
    font-size: 1.1rem;
    margin: 1.25rem 0 0.5rem;
    color: var(--text-dark);
}

.legal-content p {
    color: var(--text-body);
    line-height: 1.75;
}

.legal-content ul,
.legal-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--text-body);
}

.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }

.legal-content li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
    list-style: inherit;
}

.legal-content a {
    color: var(--red);
    text-decoration: underline;
    font-weight: 500;
}

.legal-meta {
    background: var(--bg-light);
    padding: 0.85rem 1.2rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
    display: inline-block;
}

/* ----------------------------------------------------------------
   27. ANIMATIONS
   IMPORTANT: Reveal effects use CSS @keyframes animation (NOT transitions)
   so that `transition` on cards (.size-card, .feature-card, .service-card, etc.)
   is not overridden by .anim-reveal. This keeps hover transitions smooth and
   fully composable with the entry animation.
---------------------------------------------------------------- */
.anim-reveal,
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
}

.anim-reveal.is-visible,
.animate-on-scroll.is-visible,
.animate-on-scroll.animate-fade-in-up {
    opacity: 1;
    transform: translateY(0);
    animation: revealEntry 0.8s var(--ease-out) backwards;
}

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

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }

/*
  prefers-reduced-motion: we intentionally DO NOT zero out animation and
  transition durations site-wide. The marketing site relies on subtle
  motion for visual hierarchy and the original aggressive override was
  also catching users whose OS "Show animations in Windows" toggle was
  off without them realising. We still disable instant scroll behaviour
  for true reduced-motion users so that long anchor jumps don’t fly past.
*/
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
    }
}

/* ----------------------------------------------------------------
   28. RESPONSIVE
---------------------------------------------------------------- */
@media (max-width: 1280px) {
    .footer-grid {
        grid-template-columns: auto 1fr;
        gap: 2rem;
    }
    .footer-right-content {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
    .sizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 5rem 1.5rem 3rem;
    }
    .hero-visual { order: 1; max-width: 480px; margin: 0 auto; width: 100%; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid-4 { grid-template-columns: repeat(2, 1fr); }
    .services-grid { grid-template-columns: 1fr; }
    .service-card-large {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .service-card-large .service-icon-wrap {
        margin: 0 auto 1rem;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }
    .about-grid { grid-template-columns: 1fr; gap: 3rem; }
    .about-visual { display: none; }
    .contact-simple-layout { grid-template-columns: 1fr; gap: 2rem; }
    .numbers-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand { grid-column: 1 / -1; max-width: 100%; }
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 3rem auto 0;
    }
    .steps-grid-4 { grid-template-columns: 1fr; }
    .step-connector { display: none; }
    .sustainability-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
    .section-service-cards .service-card.is-scroll-hovered {
        transform: translateY(-6px);
        border-color: var(--red-border);
        box-shadow: 0 26px 75px rgba(17, 17, 17, 0.13);
    }

    .section-service-cards .service-card.is-scroll-hovered::after {
        transform: scaleX(1);
    }

    .section-service-cards .service-card.is-scroll-hovered .service-card-image {
        transform: scale(1.05);
    }

    .size-card.is-scroll-hovered {
        transform: translateY(-8px);
        box-shadow: var(--shadow-lg);
        border-color: var(--red-border);
    }

    .size-card.is-scroll-hovered .size-card-glow {
        opacity: 1;
    }

    .size-card.is-scroll-hovered .size-image {
        transform: scale(1.08) translateY(-4px);
    }

    .feature-card.is-scroll-hovered {
        background: var(--white);
        border-color: var(--red);
        box-shadow: var(--shadow-sm);
        transform: translateY(-4px);
    }

    .feature-card.is-scroll-hovered::before {
        transform: scaleX(1);
    }

    .feature-card.is-scroll-hovered .feature-icon {
        background: var(--red);
        color: var(--white);
        border-color: var(--red);
    }

    .service-card.is-scroll-hovered {
        box-shadow: var(--shadow-md);
        border-color: var(--red-border);
        transform: translateY(-4px);
    }

    .service-card.is-scroll-hovered::after {
        transform: scaleX(1);
    }

    .service-card.is-scroll-hovered .service-icon-wrap {
        background: var(--red);
        color: var(--white);
        border-color: var(--red);
        transform: scale(1.05);
    }

    .sustainability-card.is-scroll-hovered,
    .testimonial-card.is-scroll-hovered,
    .contact-card-mini.is-scroll-hovered,
    .contact-info-card.is-scroll-hovered,
    .card.is-scroll-hovered {
        transform: translateY(-4px);
        border-color: var(--red-border);
        box-shadow: var(--shadow-md);
    }

    .box-selection-item.is-scroll-hovered .box-selection-content {
        border-color: var(--red-border);
    }

    html { font-size: 16px; }
    .container { padding: 0 1rem; }
    .header-inner { padding: 0 1rem; }

    .section-service-cards {
        padding: 3rem 0;
    }

    .service-cards-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .section-service-cards .service-card {
        border-radius: 22px;
    }

    .service-card-image-wrap {
        aspect-ratio: 16 / 11;
    }

    .service-card-title {
        right: 1.25rem;
        left: 1.25rem;
        font-size: clamp(1.45rem, 7vw, 2rem);
    }

    .service-card-content {
        padding: 1.15rem 1.25rem 1.45rem;
    }

    /* Hide empty right column on homepage About (facility-stack is already hidden) so grid gap collapses */
    .section-about .about-right { display: none; }
    /* Hide the first Numbers section on mobile (homepage) */
    .section-numbers { display: none; }
    /* Remove space below hero CTA (after phone button) and hide grey stat divider on mobile */
    .hero-cta,
    .hero-actions { margin-bottom: 0; }
    .hero-stat-divider { display: none; }
    /* Hide the grey border-top line right under the HERO phone button on mobile */
    .hero-stats { display: none; }

    /* Contatti page mobile reorder: after HERO show form, then map, then
       'Resta in contatto' text/details. Uses display:contents on .contact-simple-info
       so the title/desc/details/map can be ordered as flex siblings of the form. */
    .section-contact-simple:not(.section-contact-simple--with-image) .contact-simple-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .section-contact-simple:not(.section-contact-simple--with-image) .contact-simple-info {
        display: contents;
    }
    .section-contact-simple:not(.section-contact-simple--with-image) .contact-simple-form-wrap {
        order: 1;
    }
    .section-contact-simple:not(.section-contact-simple--with-image) .contact-simple-map {
        order: 2;
        margin-top: 0 !important;
    }
    .section-contact-simple:not(.section-contact-simple--with-image) .contact-simple-title {
        order: 3;
        margin-top: 0.5rem;
    }
    .section-contact-simple:not(.section-contact-simple--with-image) .contact-simple-desc {
        order: 4;
    }
    .section-contact-simple:not(.section-contact-simple--with-image) .contact-simple-details {
        order: 5;
    }

    .nav-list,
    .nav-cta {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-lang-flag {
        display: flex;
        margin-left: auto;
        position: relative;
        z-index: 1002;
        overflow: hidden;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-color: rgba(15, 23, 42, 0.22);
        box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
    }

    .nav-list.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 0.75rem);
        left: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--border);
        border-radius: 24px;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0.35rem;
        z-index: 1000;
        padding: 0.75rem;
        max-height: calc(100dvh - var(--header-height) - 2rem);
        overflow-y: auto;
        overscroll-behavior: contain;
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.18);
        backdrop-filter: blur(18px) saturate(140%);
        -webkit-backdrop-filter: blur(18px) saturate(140%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px) scale(0.98);
        transition: opacity 0.35s var(--ease-smooth), 
                    transform 0.35s var(--ease-smooth),
                    visibility 0s linear 0.35s;
    }

    .nav-list.active.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
        transition-delay: 0s, 0s, 0s;
    }

    .nav-list.active li { width: 100%; }

    /* Mobile burger menu: invert "I Nostri Box" / "Servizi"
       (and the German equivalents "Unsere Boxen" / "Dienstleistungen")
       so "Servizi" appears before "I Nostri Box".
       All items must have an explicit order, otherwise items without
       an order (default 0) — like the DE/ITA flag — would render first. */
    .nav-list.active > li:nth-child(1) { order: 1; }
    .nav-list.active > li:nth-child(2) { order: 2; }
    .nav-list.active > li:nth-child(3) { order: 4; }
    .nav-list.active > li:nth-child(4) { order: 3; }
    .nav-list.active > li:nth-child(5) { order: 5; }
    .nav-list.active > li:nth-child(6) { order: 6; }
    .nav-list.active > li:nth-child(7) { order: 7; }
    .nav-list.active > li:nth-child(8) { order: 8; }

    .nav-list.active .nav-link {
        font-size: 1.1rem;
        padding: 1rem 1.15rem;
        width: 100%;
        text-align: left;
        border-radius: 18px;
        display: flex;
        justify-content: space-between;
        background: rgba(248, 250, 252, 0.72);
        color: var(--text-dark);
        font-weight: 650;
    }

    .nav-list.active .nav-link:hover,
    .nav-list.active .nav-link.active {
        background: var(--red-subtle);
        color: var(--red);
    }

    .hero {
        padding-top: var(--header-height);
        min-height: auto;
    }

    .hero-bg {
        background-position: 70% top;
    }

    .hero-inner {
        padding: 2.5rem 1rem;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.8rem);
    }

    .hero-cta,
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn,
    .hero-actions .btn {
        width: 100%;
    }

    .hero-cta .btn-outline {
        margin-bottom: 10px;
    }

    .hero-stats {
        gap: 1.25rem;
        flex-wrap: wrap;
    }

    .stat-number {
        font-size: clamp(1.92rem, 3.6vw, 2.4rem);
    }

    .stat-suffix {
        font-size: clamp(1.44rem, 2.4vw, 1.68rem);
    }

    .hero-stat-divider {
        width: 30px;
        height: 1px;
    }

    .features-grid { grid-template-columns: 1fr; }
    .features-grid-4 { grid-template-columns: 1fr; }
    .sizes-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
    .numbers-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }

    .section { padding: 3.5rem 0; }
    .section-lg { padding: 4.5rem 0; }
    .section-numbers { padding: 3.5rem 0; }

    /* Exactly 20px of whitespace between About button and "Perché Sceglierci" title on mobile.
       These overrides MUST come after `.section { padding: 3.5rem 0; }` to win by source order. */
    .section-about { padding-bottom: 20px; }
    .section-features { padding-top: 20px; }
    .marquee-section + .section-features { padding-top: 20px; }

    .section-numbers {
        background-size: auto 45% !important;
    }
    .page-header { padding: var(--header-height) 0 2.5rem; }

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

    .footer { padding: 3rem 0 1.5rem; }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
    }
    .footer-left-image { display: none; }
    .footer-brand p { max-width: 100%; }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .cta-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner-actions {
        flex-direction: column;
        width: 100%;
    }
    .cta-banner-actions .btn { width: 100%; }

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

    .legal-content { padding: 1.75rem 1.25rem; }

    .visual-card { padding: 1.25rem; }
    .visual-card-inner i { font-size: 1.6rem; }
    .visual-card-inner span { font-size: 0.7rem; }

    .process-step {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }
    .process-step .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
    .step-content {
        padding-top: 0.25rem;
        padding-right: 0;
    }
    .step-content h3 {
        font-size: 1.2rem;
    }
    .contact-simple-row {
        flex-direction: column;
        gap: 0.1rem;
    }

    .contact-simple-row strong { min-width: auto; }

    .section-contact-simple--with-image {
        padding-bottom: 0;
    }

    .section-contact-simple--with-image .contact-simple-layout {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }

    .section-contact-simple--with-image .contact-simple-info {
        display: contents;
    }

    .section-contact-simple--with-image .contact-simple-title,
    .section-contact-simple--with-image .contact-simple-desc,
    .section-contact-simple--with-image .contact-simple-details {
        order: 1;
    }

    .section-contact-simple--with-image .contact-simple-form-wrap {
        order: 2;
        align-self: stretch;
    }

    .section-contact-simple--with-image .contact-simple-image {
        order: 3;
        width: 100%;
        margin: 0 auto;
        padding-top: 0.5rem;
        transform: none;
    }

    .section-contact-simple--with-image .contact-simple-image img {
        max-width: min(280px, 82vw);
        max-height: none;
    }

    .testimonial-card { padding: 1.5rem; }
}

@media (max-width: 480px) {
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    .hero-stat-divider { display: none; }

    .hero-title {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }

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

/* ----------------------------------------------------------------
   29. PRINT
---------------------------------------------------------------- */
@media print {
    .header,
    .footer,
    .cta-banner,
    .marquee-section,
    .section.cta,
    .mobile-menu-btn,
    .nav-cta,
    .skip-link {
        display: none !important;
    }
    body {
        font-size: 12pt;
        background: white;
        color: black;
    }
    .hero { min-height: auto; padding: 2rem 0; }
    a { text-decoration: underline; color: inherit; }
}

/* ================================================================
   ============ MEDIA COMPONENTS (real photos & video) ============
   ================================================================ */

/* Honor EXIF orientation for all photos */
img { image-orientation: from-image; }

/* ----------------------------------------------------------------
   30. HERO WELCOME VIDEO (in features card)
---------------------------------------------------------------- */
.hero-features-video {
    position: relative;
    width: calc(100% + 4rem);
    margin: -2rem -2rem 1.5rem;
    aspect-ratio: 16/9;
    background: var(--bg-dark);
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero-features-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.hero-features-video::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.25));
    pointer-events: none;
}

.hero-features-video-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.95rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.75rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--white);
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: 100px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero-features-video-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--red);
    border-radius: 50%;
    animation: pulseDot 2s infinite;
}

/* ----------------------------------------------------------------
   31. FACILITY STACK (about section visual: real photos)
---------------------------------------------------------------- */
.facility-stack {
    position: relative;
    width: 100%;
    height: 480px;
}

.facility-stack-img {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
    transition: transform var(--hover-duration) var(--hover-ease), box-shadow var(--hover-duration) var(--hover-ease);
    background: var(--bg-light);
}

.facility-stack-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.facility-stack-img.facility-img-1 {
    top: 0;
    left: 4%;
    width: 70%;
    height: 56%;
    transform: rotate(-2.5deg);
    z-index: 1;
}
.facility-stack-img.facility-img-1:hover { transform: rotate(-2.5deg) translateY(-8px); }

.facility-stack-img.facility-img-2 {
    bottom: 6%;
    right: 0;
    width: 62%;
    height: 50%;
    transform: rotate(3deg);
    z-index: 3;
}
.facility-stack-img.facility-img-2:hover { transform: rotate(3deg) translateY(-8px); }

.facility-stack-img.facility-img-3 {
    bottom: 0;
    left: 0;
    width: 38%;
    height: 38%;
    transform: rotate(-4.5deg);
    z-index: 2;
}
.facility-stack-img.facility-img-3:hover { transform: rotate(-4.5deg) translateY(-8px); }

.facility-stack-img.facility-img-4 {
    bottom: -8%;
    right: 8%;
    width: 35%;
    height: 32%;
    transform: rotate(1.5deg) translate(-110px, 60px);
    z-index: 4;
}
.facility-stack-img.facility-img-4:hover { transform: rotate(1.5deg) translate(-110px, 60px) translateY(-8px); }

.facility-stack-badge {
    position: absolute;
    bottom: 1.4rem;
    right: -1.25rem;
    z-index: 5;
    background: var(--red);
    color: var(--white);
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-red);
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: rotate(2deg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.facility-stack-badge i { color: var(--yellow); font-size: 0.95rem; }

/* ----------------------------------------------------------------
   31b. FACILITY STRIP (black banner under hero on inner pages)
   Same visual language as .facility-stack-badge but as a full-width
   horizontal banner with black background.
---------------------------------------------------------------- */
.facility-strip {
    background: var(--bg-dark);
    color: var(--white);
    padding: 1.4rem 0;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.facility-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(238, 30, 35, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 15% 50%, rgba(238, 30, 35, 0.12) 0%, transparent 55%);
    pointer-events: none;
}

.facility-strip-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.2rem 2.5rem;
    text-align: center;
}

.facility-strip-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--white);
}

.facility-strip-item i {
    color: var(--yellow);
    font-size: 1rem;
}

.facility-strip-divider {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    flex-shrink: 0;
}

@media (max-width: 720px) {
    .facility-strip { padding: 1.1rem 0; }
    .facility-strip-inner { gap: 0.8rem 1.4rem; }
    .facility-strip-item { font-size: 0.72rem; letter-spacing: 0.04em; }
    .facility-strip-divider { display: none; }
}

/* ----------------------------------------------------------------
   31c. SIMPLE PHOTO GALLERY (used on inner pages after content)
---------------------------------------------------------------- */
.section-photo-gallery {
    padding: 4rem 0;
    background: var(--bg-light);
}

.photo-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.photo-gallery-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.photo-gallery-item {
    position: relative;
    border-radius: 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--hover-duration) var(--hover-ease), box-shadow var(--hover-duration) var(--hover-ease);
}

.photo-gallery-grid-3col .photo-gallery-item {
    aspect-ratio: auto;
}

.photo-gallery-grid-3col .photo-gallery-item img {
    object-fit: contain;
    height: auto;
    width: auto;
}

.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s var(--ease-out);
}

.photo-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

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

.photo-gallery-item--tall {
    grid-row: span 2;
    aspect-ratio: auto;
}

@media (max-width: 768px) {
    .photo-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .photo-gallery-grid-3col { grid-template-columns: repeat(2, 1fr); }
    .photo-gallery-item--tall { grid-row: auto; aspect-ratio: 4 / 5; }
}

@media (max-width: 480px) {
    .photo-gallery-grid { grid-template-columns: 1fr; }
    .photo-gallery-grid-3col { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------------
   32. VIDEO TOUR SECTION (presentation video)
---------------------------------------------------------------- */
.section-tour {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.section-tour::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
    pointer-events: none;
}

.section-tour::after {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -10%;
    width: 60%;
    height: 100%;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%);
    pointer-events: none;
}

.tour-video-wrap {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
    background: var(--bg-dark);
    z-index: 1;
}

.tour-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--bg-dark);
}

.tour-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: rgba(255,255,255,0.96);
    border: none;
    color: var(--red);
    font-size: 1.7rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 18px 48px rgba(0,0,0,0.4);
    transition: transform var(--hover-duration) var(--hover-ease), background var(--hover-duration) var(--hover-ease);
    padding-left: 6px;
}

.tour-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: var(--white);
    color: var(--red-dark);
}

.tour-play-btn::before {
    content: '';
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.55);
    animation: pulseRing 2.4s infinite;
    pointer-events: none;
}

@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 1; }
    100% { transform: scale(1.45); opacity: 0; }
}

.tour-play-btn.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, -50%) scale(0.6); }

.tour-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.tour-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.tour-meta-item i { color: var(--red); font-size: 0.9rem; }

/* ----------------------------------------------------------------
   33. VIDEO TESTIMONIALS GRID
---------------------------------------------------------------- */
.video-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

/* 2x2 grid variant for rectangular video testimonials */
.video-testimonials-grid-2x2 {
    grid-template-columns: repeat(2, 1fr);
}

.video-testimonials-grid-2x2 .video-testimonial-card {
    aspect-ratio: 16/9;
}

.video-testimonials-grid-2x2 .video-testimonial-info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.video-testimonial-card {
    position: relative;
    aspect-ratio: 9/14;
    border-radius: var(--radius-xl);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-dark-card);
    border: 1px solid var(--border);
    transition: transform var(--hover-duration) var(--hover-ease), box-shadow var(--hover-duration) var(--hover-ease);
    display: block;
}

.video-testimonial-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.video-testimonial-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Tasto play bianco e overlay scuro nascosti su richiesta: i video delle
   testimonianze restano puliti, mostrando solo nome/testo/stelline (che
   restano leggibili grazie al text-shadow su .video-testimonial-info). */
.video-testimonial-play {
    display: none;
}

.video-testimonial-info {
    position: absolute;
    top: 1.1rem;
    left: 1.1rem;
    right: 1.1rem;
    z-index: 2;
    color: var(--white);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8), 0 1px 4px rgba(0, 0, 0, 0.6);
}

.video-testimonial-stars {
    display: flex;
    gap: 0.18rem;
    margin-bottom: 0.45rem;
}

.video-testimonial-stars i { color: var(--yellow); font-size: 0.78rem; }

.video-testimonial-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    line-height: 1.25;
}

.video-testimonial-role {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.85);
    font-weight: 500;
    letter-spacing: 0.04em;
}

/* ----------------------------------------------------------------
   34. VIDEO MODAL / LIGHTBOX
---------------------------------------------------------------- */
.video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.is-open {
    display: flex;
    opacity: 1;
    animation: modalFade 0.3s ease;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.video-modal-content {
    position: relative;
    width: 100%;
    max-width: 480px;
    max-height: 88vh;
    aspect-ratio: 9/16;
    background: black;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 30px 90px rgba(0,0,0,0.6);
}

.video-modal-content video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: black;
}

.video-modal-close {
    position: absolute;
    top: -3.25rem;
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.22);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.video-modal-close:hover {
    background: rgba(255,255,255,0.22);
    transform: scale(1.05);
}

/* Landscape video modal (for full presentation video) */
.video-modal-content.video-modal-landscape {
    aspect-ratio: 16/9;
    max-width: 1100px;
}

/* ----------------------------------------------------------------
   35. TEAM GRID & ABOUT TEAM VISUAL (chi-siamo)
---------------------------------------------------------------- */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.bg-gray .section-title {
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
}

.cta-banner-title {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.section-how .step-title {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
}

.section-how .step-text {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}

.section-faq .section-title {
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-card-fast);
}

.faq-item:hover {
    border-color: var(--red-border);
}

.faq-question {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    user-select: none;
    position: relative;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--red);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth);
    padding: 0 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-body);
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}

.section-team {
    padding: 2rem 0 5rem 0;
}

.section-team .section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 2.5rem;
}

.section-cards .section-title {
    font-size: clamp(1.5rem, 3.2vw, 2.4rem);
}

.section[style*="background: var(--red)"] {
    padding: 0rem 0 5rem 0;
}

.section[style*="background: var(--red)"] .section-title {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    margin-bottom: 2.5rem;
}

/* Team grid in column layout when inside about-right */
.about-right .team-grid {
    grid-template-columns: 1fr;
    margin-top: 0;
    gap: calc(1.5rem + 40px);
}

.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: visible;
    transition: transform var(--hover-duration) var(--hover-ease), box-shadow var(--hover-duration) var(--hover-ease), border-color var(--hover-duration) var(--hover-ease);
    text-align: center;
    display: flex;
    flex-direction: column;
    padding-top: 80px;
}

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

.team-photo {
    position: relative;
    width: 160px;
    height: 160px;
    margin: -120px auto 1rem;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    border: 4px solid var(--white);
    box-shadow: var(--shadow-md);
    z-index: 2;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform var(--hover-duration) var(--hover-ease);
}

.team-card:hover .team-photo img { transform: scale(1.04); }

.team-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(238,30,35,0.04));
    pointer-events: none;
}

.team-info {
    padding: 1.5rem 1.25rem 1.75rem;
    flex: 1;
}

.team-name {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.2rem;
}

.team-role {
    font-size: 0.74rem;
    color: var(--red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 0.7rem;
    font-family: var(--font-mono);
}

.team-bio {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 0;
}

/* About visual on chi-siamo: artistic stack of team portraits */
.about-team-visual {
    position: relative;
    width: 100%;
    height: 520px;
}

.about-team-photo {
    position: absolute;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
    border: none;
    background: transparent;
    transition: transform var(--hover-duration) var(--hover-ease);
}

.about-team-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.about-team-photo.team-photo-1 {
    top: 0;
    left: 5%;
    width: 60%;
    height: 60%;
    transform: rotate(-3deg);
    z-index: 2;
}
.about-team-photo.team-photo-1:hover { transform: rotate(-3deg) translateY(-6px); }

.about-team-photo.team-photo-2 {
    bottom: 0;
    right: 0;
    width: 55%;
    height: 55%;
    transform: rotate(2.5deg);
    z-index: 1;
}
.about-team-photo.team-photo-2:hover { transform: rotate(2.5deg) translateY(-6px); }

/* ----------------------------------------------------------------
   36. FACILITY GALLERY (i-nostri-box)
---------------------------------------------------------------- */
.facility-gallery {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr;
    grid-template-rows: 240px 240px;
    gap: 1rem;
    margin-bottom: 0;
}

.facility-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-light);
    border: 1px solid var(--border);
    transition: transform var(--hover-duration) var(--hover-ease), box-shadow var(--hover-duration) var(--hover-ease);
}

.facility-gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.facility-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--hover-ease);
    display: block;
}

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

.facility-gallery-item.spans-rows {
    grid-row: 1 / 3;
}

.facility-gallery-item.spans-cols {
    grid-column: span 2;
}

.facility-gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.65));
    pointer-events: none;
    z-index: 1;
}

.facility-gallery-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    z-index: 2;
    color: var(--white);
    font-weight: 600;
    font-size: 0.92rem;
    line-height: 1.3;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.facility-gallery-caption span {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--yellow);
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* Corridor with hover-swap (uses corridoio + corridoio_on_hover) */
.corridor-swap {
    position: relative;
    width: 100%;
    height: 100%;
}

.corridor-swap img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s var(--hover-ease);
}

.corridor-swap img.corridor-img-hover {
    opacity: 0;
}

.facility-gallery-item:hover .corridor-swap img.corridor-img-base {
    opacity: 0;
}

.facility-gallery-item:hover .corridor-swap img.corridor-img-hover {
    opacity: 1;
}

/* ----------------------------------------------------------------
   38. SERVICE CARD MEDIA (servizi page)
---------------------------------------------------------------- */
.service-card-media {
    position: relative;
    width: calc(100% + 3.5rem);
    margin: -2rem -1.75rem 1.5rem;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--bg-light);
}

.service-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--hover-ease);
    display: block;
}

.service-card:hover .service-card-media img {
    transform: scale(1.05);
}

.service-card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.25));
    pointer-events: none;
}

.service-card-large .service-card-media {
    grid-column: 1 / -1;
    width: calc(100% + 5rem);
    margin: -2.5rem -2.5rem 1.75rem;
    aspect-ratio: 21/9;
}

/* ----------------------------------------------------------------
   39. CONTACT RECEPTION PHOTO
---------------------------------------------------------------- */
.contact-reception-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border);
}

.contact-reception-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-reception-photo::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.6));
    pointer-events: none;
}

.contact-reception-caption {
    position: absolute;
    bottom: 1.1rem;
    left: 1.25rem;
    right: 1.25rem;
    z-index: 2;
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.contact-reception-caption span {
    display: block;
    font-size: 0.7rem;
    color: var(--yellow);
    margin-bottom: 0.25rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-family: var(--font-mono);
}

/* ----------------------------------------------------------------
   40. FEATURED PRESENTATION VIDEO (chi-siamo)
---------------------------------------------------------------- */
.presentation-video-wrap {
    position: relative;
    max-width: 880px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    aspect-ratio: 16/9;
    background: var(--bg-dark);
    cursor: pointer;
}

.presentation-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.presentation-video-wrap::after {
    display: none;
}

.presentation-video-overlay {
    position: absolute;
    bottom: 1.5rem;
    left: 1.75rem;
    right: 1.75rem;
    z-index: 2;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    pointer-events: none;
}

.presentation-video-overlay .play-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    color: var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    padding-left: 4px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.4);
    transition: transform var(--hover-duration) var(--hover-ease);
}

.presentation-video-wrap:hover .play-icon {
    transform: scale(1.1);
}

.presentation-video-text strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.presentation-video-text span {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.85);
}

/* ----------------------------------------------------------------
   41. RESPONSIVE — MEDIA COMPONENTS
---------------------------------------------------------------- */
@media (max-width: 1024px) {
    .video-testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .team-grid { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
    .about-team-visual { display: none; }
    .facility-stack { display: none; }
    .facility-gallery {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 220px 220px;
    }
    .facility-gallery-item.spans-rows { grid-row: auto; grid-column: span 2; }
    .facility-gallery-item.spans-cols { grid-column: span 2; }
    .process-step {
        flex-direction: column;
        gap: 1.25rem;
        align-items: stretch;
    }
    .process-step-photo {
        width: 100%;
        max-width: 100%;
        margin: 0;
        order: -1;
        align-self: stretch;
    }
    .process-step .step-content {
        max-width: 100%;
        padding-top: 0.25rem;
        padding-right: 0;
    }
    .service-card-large .service-card-media { aspect-ratio: 21/10; }
}

@media (max-width: 768px) {
    .video-testimonials-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
    .facility-gallery { grid-template-columns: 1fr; grid-template-rows: 220px; }
    .facility-gallery-item.spans-rows,
    .facility-gallery-item.spans-cols { grid-column: 1; }
    .video-modal-content { max-width: 100%; max-height: 78vh; }
    .video-modal-content.video-modal-landscape { max-height: 50vh; }
    .video-modal-close { top: 0.5rem; right: 0.5rem; background: rgba(0,0,0,0.5); }
    .tour-play-btn { width: 68px; height: 68px; font-size: 1.2rem; }
    .hero-features-video {
        width: calc(100% + 4rem);
        margin: -2rem -2rem 1.25rem;
    }
    .service-card-media {
        width: calc(100% + 3.5rem);
        margin: -2rem -1.75rem 1.25rem;
    }
    .service-card-large .service-card-media {
        width: calc(100% + 3.5rem);
        margin: -2rem -1.75rem 1.25rem;
        aspect-ratio: 16/9;
    }
    .presentation-video-overlay {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.85rem;
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
    }
    .presentation-video-overlay .play-icon { width: 52px; height: 52px; min-width: 52px; font-size: 1rem; }
    .facility-stack-badge { right: 0.5rem; bottom: 0.5rem; font-size: 0.7rem; padding: 0.6rem 0.9rem; }
}

/* ----------------------------------------------------------------
   42. CARDS SECTION (Numbers Cards)
---------------------------------------------------------------- */
.section-cards {
    padding: 5rem 0;
    background: var(--bg-light);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.card {
    background: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition-card);
    min-height: 350px;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12);
}

.card--image {
    padding: 0;
    overflow: hidden;
    border: none;
    min-height: 350px;
    position: relative;
}

.card--image .card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    opacity: 1;
    visibility: visible;
}

.card--box-499 {
    background-image: url('/assets/images/Foto/foto_porta-box_499.jpg');
    background-size: cover;
    background-position: center center;
    background-color: var(--red);
}

.card--image:hover {
    box-shadow: var(--shadow-md);
}

.card-label {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--red);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.card-value {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 7vw, 5rem);
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1;
    letter-spacing: -0.02em;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 968px) {
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-header + .section-cards {
        padding-top: 2rem;
        padding-bottom: 2.5rem;
    }

    .section-cards .section-header {
        margin-bottom: 1.75rem;
    }

    .section-cards .cards-grid {
        gap: 1rem;
        padding: 0 1rem;
    }

    .section-cards .card {
        min-height: auto;
        padding: 1.35rem 1.25rem;
    }

    .section-cards .card--image {
        min-height: auto;
        padding: 0;
        aspect-ratio: 16 / 10;
    }

    .section-cards .card-image {
        height: 100%;
        object-fit: cover;
        object-position: center center;
    }

    .section-cards .card-label {
        margin-bottom: 0.75rem;
    }

    .section-cards .card-value {
        font-size: clamp(3rem, 16vw, 4rem);
    }

    .section-cards + .section-how-inline {
        padding-top: 2.5rem;
    }

    .section-cards + .section-how-inline + .section {
        padding-bottom: 1.25rem;
    }

    .section-cards + .section-how-inline + .section + section[aria-labelledby="test-title"] {
        padding-top: 1.75rem;
    }
}

/* ----------------------------------------------------------------
   39. MOBILE CORRECTIONS — image rendering, spacing & layout
   These rules fix issues that appear only on the phone version:
   - .card--image (chi-siamo / uber-uns): image was not visible on
     mobile due to flex parent + absolute child + aspect-ratio combo.
   - .box-row-image: ensure the 7-10 mq image is always visible.
   - .service-card-large (servizi / dienstleistungen): align with the
     other service-cards (text left, icon size uniform).
   - Reduce gap between "Noleggio" features section and the photo
     gallery (~10px total).
   - .feature-card padding-bottom shrunk to remove dead space below
     the contact buttons in the German "Warum AffittoBox" section.
---------------------------------------------------------------- */

/* Make the image card render reliably on mobile by overriding the
   flex layout inherited from .card and forcing the inner <img> to
   be a normal block element. This fixes the "no image between 499
   and 5000" bug on chi-siamo and de/uber-uns. */
@media (max-width: 768px) {
    .section-cards .card.card--image {
        display: block;
        padding: 0;
        min-height: 0;
        line-height: 0;
        aspect-ratio: 16 / 10;
        position: relative;
        overflow: hidden;
        border-radius: var(--radius-lg);
    }

    .section-cards .card.card--image .card-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        opacity: 1;
        visibility: visible;
    }

    /* Same robustness pass for .box-row-image so the 7-10 mq photo
       always shows on mobile (i-nostri-box / unsere-lagerboxen). */
    .box-row .box-row-image {
        display: block;
        position: relative;
        overflow: hidden;
        aspect-ratio: 16 / 10;
        min-height: 0;
    }

    .box-row .box-row-image > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        min-height: 100%;
        object-fit: cover;
        object-position: center;
        display: block;
        opacity: 1;
        visibility: visible;
    }

    /* --------- servizi-privati-aziende / dienstleistungen --------- */

    /* The first card (service-card-large) was centered and used a
       larger icon. On mobile we want it to look identical to the
       other service-cards: text aligned left and 56x56 icon. */
    .services-grid .service-card.service-card-large {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .services-grid .service-card.service-card-large > div {
        text-align: left;
    }

    .services-grid .service-card.service-card-large .service-icon-wrap {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        margin: 0 0 1rem 0;
    }

    .services-grid .service-card.service-card-large .service-icon-wrap i {
        font-size: 1.4rem;
    }

    /* Tighten the gap between the "Perché scegliere AffittoBox.bz"
       section and the photo gallery that follows: ~10px total.
       Modern browsers (:has()) trim the previous section, while a
       fallback uses aria-labelledby to target the same section. */
    .section.bg-gray:has(+ .section-photo-gallery),
    .section.bg-gray[aria-labelledby="why-title"] {
        padding-bottom: 5px;
    }

    .section-photo-gallery {
        padding-top: 5px;
        padding-bottom: 2.5rem;
    }

    /* Reduce wasted padding-bottom on feature-cards on mobile. This
       is most visible on de/dienstleistungen where each card
       contains a contact button. */
    .features-grid .feature-card {
        padding-bottom: 1.25rem;
    }

    /* Compact contact button inside feature-cards on mobile. */
    .features-grid .feature-card .btn {
        margin-top: 1rem;
    }

}
