/* ==========================================================================
   CABER FIRENZE S.r.l. - Tecnologia & Sicurezza
   Foglio di stile principale condiviso (Homepage, Gallerie Servizi, Policy)
   ========================================================================== */

:root {
    /* Palette brand derivata dal logo ufficiale CABER (#22287a) e accento antincendio */
    --navy-950: #0a1026;
    --navy-900: #131b47;
    --brand-blue: #22287a;
    --brand-blue-dark: #191e63;
    --brand-blue-soft: #eef0fa;
    --brand-red: #c8102e;
    --brand-red-hover: #a50c25;
    --brand-red-soft: #fdf0f2;

    /* Superfici e testi */
    --surface: #ffffff;
    --surface-alt: #f5f7fb;
    --surface-subtle: #edf1f7;
    --border: #dfe5f0;
    --border-strong: #c8d2e3;
    --text-main: #172033;
    --text-muted: #4b5870;
    --text-light: #6b7891;

    /* Effetti e misure */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(10, 16, 38, 0.06);
    --shadow-md: 0 10px 28px rgba(10, 16, 38, 0.09);
    --shadow-lg: 0 22px 50px rgba(10, 16, 38, 0.16);
    --transition: 0.25s cubic-bezier(0.22, 1, 0.36, 1);

    /* Tipografia */
    --font-display: 'Plus Jakarta Sans', 'Montserrat', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* --- RESET & BASE --- */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text-main);
    background-color: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--navy-900);
    margin: 0 0 0.75rem 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

p {
    margin: 0 0 1rem 0;
    color: var(--text-muted);
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition);
}

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

img, video {
    max-width: 100%;
    display: block;
}

button, input, select, textarea {
    font-family: inherit;
}

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

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: var(--brand-blue);
    color: #fff;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    z-index: 9999;
}

.skip-link:focus {
    top: 12px;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- BOTTONI --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--brand-red);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(200, 16, 46, 0.25);
}

.btn-primary:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(200, 16, 46, 0.34);
}

.btn-secondary {
    background-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(34, 40, 122, 0.2);
}

.btn-secondary:hover {
    background-color: var(--brand-blue-dark);
    transform: translateY(-2px);
}

.btn-outline-light {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
}

.btn-outline-light:hover {
    background-color: #ffffff;
    color: var(--navy-900);
    border-color: #ffffff;
    transform: translateY(-2px);
}

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

.btn-outline-blue:hover {
    background-color: var(--brand-blue);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-sm {
    padding: 9px 16px;
    font-size: 0.875rem;
}

.btn-block {
    width: 100%;
}

/* --- TOPBAR INFORMATIVA --- */
.topbar {
    background-color: var(--navy-950);
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.84rem;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.topbar-location i {
    color: var(--brand-red);
}

.topbar-contacts {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.topbar-contacts a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #ffffff;
    font-weight: 500;
}

.topbar-contacts a:hover {
    color: #ff94a4;
}

.topbar-contacts i {
    color: var(--brand-red);
    font-size: 0.85rem;
}

/* --- HEADER / NAVBAR --- */
.site-header {
    background-color: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 82px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}

.logo-img {
    height: 48px;
    width: auto;
}

.brand-meta {
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border);
    padding-left: 14px;
}

.brand-name {
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--navy-900);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.15;
}

.brand-sub {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    line-height: 1.25;
}

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

.nav-link {
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text-main);
    position: relative;
    padding: 6px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2.5px;
    background-color: var(--brand-red);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-blue);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger Button */
.hamburger {
    display: none;
    background: var(--surface-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.hamburger .bar {
    display: block;
    width: 22px;
    height: 2.5px;
    background-color: var(--brand-blue);
    border-radius: 3px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* --- HERO SECTION --- */
.hero {
    position: relative;
    background:
        radial-gradient(circle at 82% 20%, rgba(200, 16, 46, 0.22) 0%, transparent 45%),
        radial-gradient(circle at 12% 85%, rgba(64, 78, 210, 0.35) 0%, transparent 50%),
        linear-gradient(135deg, #0a1026 0%, #141c4c 52%, #1d266b 100%);
    color: #ffffff;
    padding: 78px 0 88px;
    overflow: hidden;
}

/* Subtle engineering grid pattern */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 48px;
    align-items: center;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 7px 14px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.hero-eyebrow .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.35);
}

.hero h1 {
    color: #ffffff;
    font-size: clamp(2.25rem, 4.2vw, 3.55rem);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 20px;
}

.hero h1.hero-brand-title {
    margin-bottom: 24px;
    line-height: 1;
}

.hero-brand-card {
    display: block;
    width: 100%;
    max-width: 600px;
}

.hero-brand-img {
    width: 135.8%;
    max-width: none;
    height: auto;
    margin-left: -17.78%;
    margin-top: -17%;
    margin-bottom: -15%;
    filter: brightness(0.56) contrast(9.5) invert(1) brightness(1.38);
    mix-blend-mode: screen;
    display: block;
    pointer-events: none;
}

.hero h1 .accent-text {
    color: #ff5b74;
}

.hero-lead {
    color: rgba(235, 240, 255, 0.86);
    font-size: clamp(1rem, 1.3vw, 1.14rem);
    line-height: 1.7;
    max-width: 600px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 38px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding-top: 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.metric-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
}

.metric-item span {
    font-size: 0.82rem;
    color: rgba(226, 232, 250, 0.74);
    line-height: 1.35;
    display: block;
    margin-top: 4px;
}

/* Hero Visual Composition */
.hero-visual {
    position: relative;
}

.hero-photo-frame {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
    aspect-ratio: 4 / 4.2;
    background: #10152e;
}

.hero-photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-photo-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 16, 38, 0.45) 0%, transparent 38%, rgba(10, 16, 38, 0.35) 100%);
    pointer-events: none;
}

.hero-photo-caption {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.hero-photo-caption span {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    color: #ffffff;
    background: rgba(10, 16, 38, 0.72);
    backdrop-filter: blur(8px);
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-floating-card {
    position: absolute;
    bottom: -22px;
    left: -26px;
    background: #ffffff;
    color: var(--text-main);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--border);
    z-index: 3;
    max-width: 280px;
}

.hero-floating-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--brand-red-soft);
    color: var(--brand-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.hero-floating-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.92rem;
    color: var(--navy-900);
    line-height: 1.25;
}

.hero-floating-card small {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
    margin-top: 2px;
}

/* --- TRUST BAR --- */
.trust-bar {
    background-color: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 24px 0;
}

.trust-bar-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px 36px;
    flex-wrap: wrap;
}

.trust-label {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
    margin: 0;
}

.trust-items {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--navy-900);
}

.trust-item i {
    color: var(--brand-blue);
    font-size: 1.2rem;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--brand-blue-soft);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* --- SEZIONI STANDARD --- */
.section {
    padding: 84px 0;
    scroll-margin-top: 86px;
}

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

.section-dark {
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
    color: #ffffff;
}

.section-header {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 50px;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-red);
    background: var(--brand-red-soft);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
}

.section-dark .section-eyebrow {
    background: rgba(200, 16, 46, 0.22);
    color: #ff8093;
}

.section-title {
    font-size: clamp(1.85rem, 3.2vw, 2.55rem);
    font-weight: 800;
    margin-bottom: 14px;
}

.section-dark .section-title {
    color: #ffffff;
}

.section-subtitle {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

.section-dark .section-subtitle {
    color: rgba(226, 232, 250, 0.8);
}

/* --- GRIGLIA SERVIZI (COSA FACCIAMO) --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.service-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 28px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    cursor: pointer;
    text-align: left;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-red));
    border-radius: 0 0 4px 4px;
    opacity: 0;
    transition: opacity var(--transition);
}

.service-card:hover,
.service-card:focus-visible {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(34, 40, 122, 0.35);
}

.service-card:hover::before,
.service-card:focus-visible::before {
    opacity: 1;
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.service-icon {
    width: 54px;
    height: 54px;
    border-radius: 13px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background-color var(--transition), color var(--transition);
}

.service-card:hover .service-icon {
    background: var(--brand-blue);
    color: #ffffff;
}

.service-tag {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--brand-blue);
    background: var(--surface-alt);
    border: 1px solid var(--border);
    padding: 4px 10px;
    border-radius: 999px;
}

.service-card h3 {
    font-size: 1.18rem;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--navy-900);
}

.service-card p {
    font-size: 0.94rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--surface-subtle);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-red);
}

.service-card-footer i {
    transition: transform var(--transition);
}

.service-card:hover .service-card-footer i {
    transform: translateX(4px);
}

/* --- METODO DI LAVORO (4 STEP) --- */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.process-step {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    position: relative;
}

.process-num {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    background: var(--brand-red);
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.process-step h3 {
    color: #ffffff;
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.process-step p {
    color: rgba(226, 232, 250, 0.78);
    font-size: 0.9rem;
    margin: 0;
}

/* --- LA NOSTRA DITTA / GALLERIA SEDE --- */
.company-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.company-card {
    background: var(--surface);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
    display: flex;
    flex-direction: column;
}

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

.company-photo-wrap {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--surface-subtle);
    cursor: pointer;
}

.company-photo-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.company-card:hover .company-photo-wrap img {
    transform: scale(1.06);
}

.photo-zoom-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(10, 16, 38, 0.72);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.company-photo-wrap:hover .photo-zoom-badge,
.company-photo-wrap:focus-visible .photo-zoom-badge {
    opacity: 1;
}

.company-card-body {
    padding: 20px 22px;
}

.company-card-body h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.company-card-body p {
    font-size: 0.9rem;
    margin: 0;
}

/* --- CORSI DI FORMAZIONE --- */
.course-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.filter-btn {
    padding: 10px 20px;
    border-radius: 999px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

.filter-btn.active {
    background: var(--brand-blue);
    border-color: var(--brand-blue);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(34, 40, 122, 0.24);
}

/* Featured Manutentori Banner Card */
.course-featured {
    background: linear-gradient(135deg, #ffffff 0%, #f4f6fc 100%);
    border: 1.5px solid rgba(34, 40, 122, 0.25);
    border-left: 6px solid var(--brand-blue);
    border-radius: var(--radius-md);
    padding: 30px;
    margin-bottom: 28px;
    box-shadow: var(--shadow-sm);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    gap: 30px;
    align-items: center;
}

.course-featured.is-hidden {
    display: none;
}

.course-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.badge-blue {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

.badge-red {
    background: var(--brand-red-soft);
    color: var(--brand-red);
}

.badge-dark {
    background: var(--surface-subtle);
    color: var(--navy-900);
}

.legal-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    border: 1px solid rgba(34, 40, 122, 0.2);
    border-radius: var(--radius-sm);
    padding: 8px 14px;
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 6px;
    transition: all var(--transition);
}

.legal-trigger:hover {
    background: var(--brand-blue);
    color: #ffffff;
}

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

.qualifications-list li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.88rem;
    color: var(--text-main);
    font-weight: 500;
}

.qualifications-list li i {
    color: var(--brand-red);
    margin-top: 4px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.course-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: 4px solid var(--brand-red);
    border-radius: var(--radius-md);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.course-card.course-safety {
    border-top-color: var(--brand-blue);
}

.course-card.is-hidden {
    display: none;
}

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

.course-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.course-duration {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--brand-red);
    background: var(--brand-red-soft);
    padding: 4px 10px;
    border-radius: 6px;
    white-space: nowrap;
}

.course-safety .course-duration {
    color: var(--brand-blue);
    background: var(--brand-blue-soft);
}

.course-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}

.course-card .course-sub {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 14px;
}

.course-list {
    margin-bottom: 22px;
    flex-grow: 1;
}

.course-list li {
    position: relative;
    padding-left: 22px;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    line-height: 1.55;
}

.course-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: var(--brand-red);
    position: absolute;
    left: 0;
    top: 4px;
}

.course-safety .course-list li::before {
    color: var(--brand-blue);
}

.course-cta-bar {
    text-align: center;
    margin-top: 42px;
    padding: 30px;
    background: var(--brand-blue-soft);
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 40, 122, 0.14);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    text-align: left;
}

.course-cta-bar h3 {
    margin-bottom: 4px;
    font-size: 1.2rem;
}

.course-cta-bar p {
    margin: 0;
    font-size: 0.94rem;
}

/* --- MAPPA PRIVACY-FIRST --- */
.map-section {
    position: relative;
    width: 100%;
    min-height: 430px;
    background-color: var(--surface-subtle);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-placeholder {
    position: relative;
    width: 100%;
    min-height: 430px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    inset: -12px;
    background:
        linear-gradient(rgba(10, 16, 38, 0.35), rgba(10, 16, 38, 0.45)),
        url('../../mappa-cover.jpg') center / cover no-repeat;
    filter: blur(4px);
    z-index: 0;
}

.map-overlay {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.97);
    padding: 34px 36px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 520px;
    width: 100%;
    border: 1px solid var(--border);
}

.map-overlay-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.map-overlay h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
}

.map-address {
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 8px;
}

.map-privacy-note {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 22px;
}

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

.map-section iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

/* --- FOOTER & INFORMATIVA PRIVACY GDPR --- */
.site-footer {
    background-color: var(--navy-950);
    color: rgba(255, 255, 255, 0.85);
    padding: 72px 0 32px;
    font-size: 0.94rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.9fr 1.15fr;
    gap: 44px;
    margin-bottom: 48px;
}

.footer-logo-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 18px;
}

.footer-logo-badge img {
    height: 36px;
    width: auto;
}

.footer-col h3 {
    color: #ffffff;
    font-size: 1.05rem;
    margin-bottom: 18px;
    padding-left: 12px;
    border-left: 3px solid var(--brand-red);
}

.footer-col p {
    color: rgba(226, 232, 250, 0.78);
    font-size: 0.92rem;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(226, 232, 250, 0.82);
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(3px);
}

.footer-contacts li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.88);
}

.footer-contacts i {
    color: var(--brand-red);
    width: 18px;
    text-align: center;
    margin-top: 4px;
    flex-shrink: 0;
}

.footer-contacts a:hover {
    color: #ff8093;
    text-decoration: underline;
}

/* Sezione Informativa Privacy sintetica GDPR in fondo alla pagina */
.footer-gdpr-box {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 22px 26px;
    margin-bottom: 32px;
}

.footer-gdpr-box h4 {
    color: #ffffff;
    font-size: 0.92rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-gdpr-box h4 i {
    color: var(--brand-red);
}

.footer-gdpr-box p {
    font-size: 0.83rem;
    line-height: 1.65;
    color: rgba(215, 223, 245, 0.76);
    margin: 0;
}

.footer-gdpr-box a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-gdpr-box a:hover {
    color: #ff8093;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 0.84rem;
    color: rgba(215, 223, 245, 0.72);
}

.footer-bottom a {
    color: #ffffff;
    text-decoration: underline;
}

.footer-bottom a:hover {
    color: #ff8093;
}

.footer-legal-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

/* --- MODALI ACCESSIBILI --- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background-color: rgba(10, 16, 38, 0.76);
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.show {
    display: flex;
    animation: modalFadeIn 0.2s ease-out;
}

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

.modal-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 860px;
    max-height: 92vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.modal-content.modal-narrow {
    max-width: 600px;
    padding: 36px;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-main);
    font-size: 1.45rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition);
}

.modal-close:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #ffffff;
    transform: rotate(90deg);
}

/* Split layout per Modal Preventivo (Contatti Diretti + Modulo) */
.quote-modal-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.28fr;
}

.quote-direct-panel {
    background: linear-gradient(160deg, var(--navy-950) 0%, var(--brand-blue) 100%);
    color: #ffffff;
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-direct-panel h2 {
    color: #ffffff;
    font-size: 1.45rem;
    margin-bottom: 10px;
}

.quote-direct-panel > div > p {
    color: rgba(230, 236, 255, 0.82);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.direct-contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.direct-contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
}

a.direct-contact-card:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateX(3px);
}

.direct-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.direct-contact-icon.wa {
    background: #25d366;
    color: #ffffff;
}

.direct-contact-card small {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(226, 232, 250, 0.75);
}

.direct-contact-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: #ffffff;
    word-break: break-word;
}

.quote-form-panel {
    padding: 36px 32px;
}

.quote-form-panel h3 {
    font-size: 1.25rem;
    color: var(--navy-900);
    margin-bottom: 6px;
    padding-right: 34px;
}

.quote-form-panel .form-intro {
    font-size: 0.88rem;
    margin-bottom: 20px;
}

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

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

.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy-900);
    margin-bottom: 5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.93rem;
    color: var(--text-main);
    background-color: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(34, 40, 122, 0.12);
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 18px;
    font-size: 0.82rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.form-check input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--brand-blue);
    flex-shrink: 0;
    cursor: pointer;
}

.form-check a {
    color: var(--brand-blue);
    text-decoration: underline;
    font-weight: 600;
}

/* Contenitore Cloudflare Turnstile nel modulo Preventivo */
.turnstile-wrap {
    margin: 12px 0 14px;
    overflow-x: auto;
}

.bot-feedback {
    margin: 6px 0 0;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--brand-red);
    min-height: 0;
}

/* Modal Dettaglio Servizio */
.service-modal-body {
    text-align: left;
}

.service-modal-img {
    width: 100%;
    max-height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.service-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

/* --- LIGHTBOX FOTO & VIDEO --- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2500;
    background: rgba(8, 12, 28, 0.94);
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.lightbox.show {
    display: flex;
    animation: modalFadeIn 0.2s ease-out;
}

.lightbox-stage {
    position: relative;
    max-width: 1050px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-media-wrap {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-media-wrap img,
.lightbox-media-wrap video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    background: #000;
}

.lightbox-caption {
    margin-top: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem;
    text-align: center;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    margin-top: 4px;
}

.lightbox-close,
.lightbox-nav {
    position: fixed;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    transition: background-color var(--transition), transform var(--transition);
    z-index: 2505;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
}

.lightbox-close {
    top: 20px;
    right: 22px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav.hidden {
    display: none;
}

/* --- PULSANTE WHATSAPP FLOTTANTE --- */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    height: 56px;
    padding: 0 20px 0 16px;
    background: #25d366;
    color: #ffffff;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 10px 26px rgba(37, 211, 102, 0.36);
    z-index: 990;
}

.whatsapp-float i {
    font-size: 1.55rem;
}

.whatsapp-float:hover {
    background: #1ebe5b;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(37, 211, 102, 0.45);
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    right: auto;
    max-width: min(620px, calc(100vw - 260px));
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    padding: 18px 22px;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: var(--shadow-lg);
    z-index: 2100;
    font-size: 0.88rem;
}

.cookie-banner.show {
    display: flex;
}

.cookie-banner a {
    color: #ffffff;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-btn {
    background: var(--brand-red);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.86rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color var(--transition);
}

.cookie-btn:hover {
    background: var(--brand-red-hover);
}

/* --- TOAST NOTIFICA STATO FORM --- */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 3000;
    background: var(--navy-900);
    color: #ffffff;
    padding: 16px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border-left: 5px solid #22c55e;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 420px;
    font-size: 0.94rem;
    animation: modalSlideUp 0.3s ease-out;
}

.toast.toast-error {
    border-left-color: var(--brand-red);
}

.toast button {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
}

/* ==========================================================================
   PAGINE INTERNE (GALLERIE SERVIZI & POLICY)
   ========================================================================== */
.subpage-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0;
}

.subpage-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--brand-blue);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--brand-blue-soft);
}

.back-link:hover {
    background: var(--brand-blue);
    color: #ffffff;
}

.subpage-hero {
    background: linear-gradient(135deg, var(--navy-950) 0%, var(--brand-blue) 100%);
    color: #ffffff;
    padding: 56px 0;
    text-align: center;
}

.subpage-hero h1 {
    color: #ffffff;
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    margin-bottom: 12px;
}

.subpage-hero p {
    color: rgba(230, 236, 255, 0.85);
    max-width: 720px;
    margin: 0 auto;
    font-size: 1.05rem;
}

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

.media-item {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-subtle);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    padding: 0;
}

.media-item.is-hidden {
    display: none;
}

.media-item img,
.media-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-item:hover img,
.media-item:hover video {
    transform: scale(1.06);
}

.media-play-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 16, 38, 0.32);
    color: #ffffff;
    font-size: 3.1rem;
    transition: background-color var(--transition);
}

.media-item:hover .media-play-badge {
    background: rgba(200, 16, 46, 0.45);
}

.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.gallery-count {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.load-more-wrap {
    text-align: center;
    margin-top: 34px;
}

/* Showcase card per pagine servizio senza foto gallery ancora caricate */
.service-showcase {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 38px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.service-showcase img {
    width: 100%;
    border-radius: var(--radius-md);
    aspect-ratio: 4 / 3.4;
    object-fit: cover;
    background: var(--surface-alt);
}

.service-showcase-list {
    margin: 18px 0 26px;
}

.service-showcase-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-main);
    font-size: 0.96rem;
}

.service-showcase-list li i {
    color: var(--brand-red);
    margin-top: 4px;
}

/* Policy Document Card */
.policy-doc {
    max-width: 860px;
    margin: 48px auto 72px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px 52px;
    box-shadow: var(--shadow-sm);
}

.policy-doc h1 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    border-bottom: 3px solid var(--brand-red);
    padding-bottom: 16px;
    margin-bottom: 18px;
}

.policy-doc h2 {
    font-size: 1.32rem;
    margin-top: 36px;
    margin-bottom: 12px;
    color: var(--brand-blue);
    scroll-margin-top: 100px;
}

.policy-doc h3 {
    font-size: 1.05rem;
    margin-top: 22px;
    margin-bottom: 8px;
    color: var(--navy-900);
}

.policy-doc ul {
    list-style: disc;
    padding-left: 22px;
    margin-bottom: 16px;
}

.policy-doc li {
    color: var(--text-muted);
    margin-bottom: 8px;
}

.policy-doc a {
    color: var(--brand-blue);
    text-decoration: underline;
}

.policy-doc :target {
    animation: highlightTarget 2s ease-out;
}

@keyframes highlightTarget {
    0% { background-color: #fff3c4; }
    100% { background-color: transparent; }
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1080px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .services-grid,
    .courses-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .course-featured {
        grid-template-columns: 1fr;
    }

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

    .photo-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 820px) {
    .topbar {
        display: none;
    }

    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background-color: #ffffff;
    }

    .hamburger {
        display: inline-flex;
    }

    .nav-menu {
        position: fixed;
        top: 82px;
        left: 0;
        right: 0;
        height: calc(100vh - 82px);
        height: calc(100dvh - 82px);
        background: var(--surface);
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 28px 24px 40px;
        transform: translateX(100%);
        transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
        border-top: 1px solid var(--border);
        overflow-y: auto;
        z-index: 1001;
    }

    .cookie-banner {
        max-width: calc(100vw - 104px);
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        display: block;
        padding: 14px 12px;
        font-size: 1.08rem;
        border-radius: var(--radius-sm);
    }

    .nav-link:hover {
        background: var(--surface-alt);
    }

    .nav-link::after {
        display: none;
    }

    .nav-menu .btn {
        margin-top: 12px;
        width: 100%;
    }

    .quote-modal-grid {
        grid-template-columns: 1fr;
    }

    .quote-direct-panel {
        padding: 28px 22px;
    }

    .quote-form-panel {
        padding: 28px 22px;
    }

    .company-gallery,
    .service-showcase {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .policy-doc {
        padding: 28px 22px;
        margin: 24px 16px 48px;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 18px;
    }

    .logo-img {
        height: 40px;
    }

    .brand-meta {
        padding-left: 10px;
    }

    .brand-name {
        font-size: 0.74rem;
    }

    .brand-sub {
        font-size: 0.65rem;
    }

    .hero {
        padding: 52px 0 64px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hero-floating-card {
        position: static;
        margin-top: 16px;
        max-width: none;
    }

    .section {
        padding: 60px 0;
    }

    .services-grid,
    .courses-grid,
    .process-grid,
    .qualifications-list,
    .form-row {
        grid-template-columns: 1fr;
    }

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

    .whatsapp-float span {
        display: none;
    }

    .whatsapp-float {
        width: 56px;
        padding: 0;
        justify-content: center;
        bottom: 18px;
        right: 18px;
    }

    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        left: 12px;
        right: 12px;
        max-width: none;
        bottom: 84px;
    }

    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
