/* ============================================================
   CENTRO STS — style.css
   Sviluppato da ARCmedia / PRIME SRL
   ============================================================ */

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

:root {
    --primary:       #1a6b7a;
    --primary-dark:  #0d3d47;
    --primary-light: #e8f5f7;
    --accent:        #26a0b0;
    --accent-light:  #b2dfe6;
    --green:         #2d8a5e;
    --text:          #2c2c2c;
    --text-light:    #5f6f75;
    --border:        #d5e8ec;
    --bg-light:      #f4f9fb;
    --bg-grey:       #f0f4f5;
    --footer-bg:     #0a2e38;
    --footer-text:   #c8dde2;
    --white:         #ffffff;
    --shadow:        0 4px 24px rgba(10,46,56,.10);
    --radius:        8px;
    --radius-lg:     16px;
    --header-h:      76px;
    --max-w:         1220px;
    --font-h:        'Nunito', 'Segoe UI', sans-serif;
    --font-b:        'Nunito', 'Segoe UI', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-b);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary-dark); }

h1,h2,h3,h4,h5 {
    font-family: var(--font-h);
    line-height: 1.25;
    color: var(--primary-dark);
}

/* ---------- UTILITY ---------------------------------------- */
.container  { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.text-center { text-align: center; }
.section    { padding: 80px 0; }
.section--grey { background: var(--bg-grey); }
.section--light { background: var(--bg-light); }
.section--dark  { background: var(--primary-dark); }
.section--primary { background: var(--primary); }

.section-label {
    display: inline-block;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 10px;
}
.section-title {
    font-size: clamp(1.7rem, 3.5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 14px;
    color: var(--primary-dark);
}
.section-sub {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 620px;
    margin: 0 auto 48px;
    line-height: 1.7;
}
.section--dark .section-title,
.section--primary .section-title { color: var(--white); }
.section--dark .section-sub,
.section--primary .section-sub   { color: rgba(255,255,255,.75); }
.section--dark .section-label,
.section--primary .section-label { color: var(--accent-light); }

/* ---------- BUTTONS ---------------------------------------- */
.btn {
    display: inline-block;
    padding: 13px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .02em;
    transition: all .25s;
    cursor: pointer;
    border: 2px solid transparent;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); }

.btn-accent {
    background: var(--accent);
    color: var(--white);
}
.btn-accent:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }

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

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

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(10,46,56,.08);
}

/* Top bar */
.header-topbar {
    background: var(--primary-dark);
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    padding: 7px 0;
}
.header-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.topbar-left, .topbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}
.topbar-left a, .topbar-right a { color: rgba(255,255,255,.75); font-size: .82rem; }
.topbar-left a:hover, .topbar-right a:hover { color: var(--white); }
.topbar-item { display: flex; align-items: center; gap: 6px; }
.topbar-item svg { flex-shrink: 0; }

/* Main header row */
/* Header a 2 righe */
.header-row1 {
    height: var(--header-h);
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}
.header-row2 {
    background: var(--primary-dark);
    border-bottom: 3px solid var(--accent);
}
.header-row2 .container {
    display: flex;
    align-items: center;
    justify-content: center;
}
.header-row2 #primary-nav > ul > li > a {
    color: rgba(255,255,255,.88);
    border-bottom-color: transparent;
    padding: 12px 16px;
}
.header-row2 #primary-nav > ul > li > a:hover,
.header-row2 #primary-nav > ul > li.active > a {
    color: #fff;
    border-bottom-color: var(--accent);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
}
/* Compatibilità retroattiva */
.header-main {
    height: var(--header-h);
    display: flex;
    align-items: center;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}
.site-logo-icon {
    width: 52px;
    height: 52px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.site-logo-icon svg { width: 28px; height: 28px; fill: var(--white); }
.site-logo-text { line-height: 1.15; }
.site-logo-name {
    font-family: var(--font-h);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -.01em;
}
.site-logo-tag {
    font-size: .72rem;
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* Nav */
#primary-nav { display: flex; align-items: center; }
#primary-nav > ul {
    list-style: none;
    display: flex;
    gap: 0;
}
#primary-nav > ul > li { position: relative; }
#primary-nav > ul > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    font-size: .88rem;
    font-weight: 700;
    color: var(--primary-dark);
    letter-spacing: .01em;
    border-bottom: 3px solid transparent;
    transition: color .2s, border-color .2s;
    white-space: nowrap;
}
#primary-nav > ul > li > a:hover,
#primary-nav > ul > li.active > a {
    color: var(--accent);
    border-bottom-color: var(--accent);
}
/* Chevron */
#primary-nav > ul > li > a .chev {
    width: 12px; height: 12px;
    transition: transform .2s;
}
#primary-nav > ul > li:hover > a .chev { transform: rotate(180deg); }

/* Dropdown */
#primary-nav > ul > li > ul {
    display: none;
    position: absolute;
    top: calc(100% + 3px);
    left: 0;
    background: var(--white);
    min-width: 230px;
    border-top: 3px solid var(--accent);
    box-shadow: 0 12px 32px rgba(10,46,56,.14);
    border-radius: 0 0 var(--radius) var(--radius);
    list-style: none;
    z-index: 100;
}
#primary-nav > ul > li:hover > ul { display: block; }
#primary-nav > ul > li > ul > li > a {
    display: block;
    padding: 11px 20px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background .15s, color .15s;
}
#primary-nav > ul > li > ul > li:last-child > a { border-bottom: none; }
#primary-nav > ul > li > ul > li > a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Header CTA */
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.header-phone {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 800;
    font-size: .92rem;
    color: var(--primary-dark);
}
.header-phone svg { color: var(--accent); }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 6px;
    background: none;
    border: none;
}
.nav-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: all .3s;
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero {
    position: relative;
    overflow: hidden;
    height: 580px;
    background: var(--primary-dark);
}

.hero-slides { position: relative; height: 100%; }

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity .8s ease;
    pointer-events: none;
}
.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Background slides */
.hero-slide:nth-child(1) {
    background: linear-gradient(105deg, #0a2e38 0%, #1a6b7a 100%);
}
.hero-slide:nth-child(2) {
    background: linear-gradient(105deg, #0d3d47 0%, #26a0b0 100%);
}
.hero-slide:nth-child(3) {
    background: linear-gradient(105deg, #0a2e38 40%, #2d8a5e 100%);
}

.hero-slide-inner {
    position: relative;
    z-index: 2;
    max-width: 680px;
    padding: 0 24px;
    margin-left: calc((100vw - var(--max-w)) / 2 + 24px);
}
.hero-label {
    display: inline-block;
    background: rgba(255,255,255,.15);
    color: rgba(255,255,255,.9);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 50px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,.25);
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3.4rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 18px;
    letter-spacing: -.02em;
}
.hero-title span { color: var(--accent-light); }
.hero-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,.82);
    margin-bottom: 34px;
    line-height: 1.65;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Decorazione grafica lato destro */
.hero-deco {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    border: 2px solid rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
.hero-deco::before {
    content: '';
    position: absolute;
    inset: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.08);
}
.hero-deco-icon {
    font-size: 5rem;
    opacity: .3;
}

/* Frecce slider */
.hero-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    z-index: 10;
    display: flex;
    gap: 10px;
}
.hero-nav button {
    width: 42px; height: 42px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.4);
    background: rgba(255,255,255,.1);
    color: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.hero-nav button:hover { background: rgba(255,255,255,.25); }

/* Dots */
.hero-dots {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.hero-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.35);
    cursor: pointer;
    transition: all .3s;
    border: none;
}
.hero-dot.active {
    background: var(--white);
    width: 28px;
    border-radius: 5px;
}

/* ============================================================
   QUICK ACCESS
   ============================================================ */
.quick-access {
    background: var(--white);
    padding: 0;
    margin-top: -1px;
}
.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    box-shadow: var(--shadow);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transform: translateY(-40px);
    position: relative;
    z-index: 10;
    margin: 0 24px;
    max-width: calc(var(--max-w) - 48px);
    margin-left: auto;
    margin-right: auto;
}
.quick-card {
    background: var(--white);
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-right: 1px solid var(--border);
    transition: background .2s;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.quick-card:last-child { border-right: none; }
.quick-card:hover { background: var(--primary-light); }
.quick-icon {
    width: 52px; height: 52px;
    border-radius: var(--radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.quick-icon svg { width: 26px; height: 26px; color: var(--primary); }
.quick-card:hover .quick-icon { background: var(--accent); }
.quick-card:hover .quick-icon svg { color: var(--white); }
.quick-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary-dark);
}
.quick-desc {
    font-size: .85rem;
    color: var(--text-light);
    line-height: 1.5;
}
.quick-link {
    font-size: .83rem;
    font-weight: 700;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
}
.quick-link svg { width: 14px; height: 14px; }

/* ============================================================
   CHI SIAMO
   ============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about-img {
    position: relative;
}
.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.about-img-main svg { width: 120px; height: 120px; color: rgba(255,255,255,.3); }
.about-img-badge {
    position: absolute;
    bottom: -24px;
    right: -24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    box-shadow: var(--shadow);
    text-align: center;
    min-width: 150px;
}
.about-img-badge .num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
}
.about-img-badge .lbl {
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 4px;
}
.about-content .section-title { text-align: left; }
.about-content .section-sub   { text-align: left; margin: 0 0 28px; }

.about-features { display: flex; flex-direction: column; gap: 18px; margin-bottom: 34px; }
.about-feat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.about-feat-icon {
    width: 44px; height: 44px;
    border-radius: var(--radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.about-feat-icon svg { width: 22px; height: 22px; color: var(--primary); }
.about-feat-text h4 { font-size: .95rem; font-weight: 700; color: var(--primary-dark); margin-bottom: 2px; }
.about-feat-text p  { font-size: .88rem; color: var(--text-light); margin: 0; line-height: 1.5; }

/* ============================================================
   NUMERI / STATS
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--primary);
}
.stat-item {
    background: var(--primary);
    padding: 50px 30px;
    text-align: center;
}
.stat-num {
    font-size: clamp(2.4rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: .88rem;
    color: rgba(255,255,255,.7);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ============================================================
   SERVIZI
   ============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(10,46,56,.14); }
.service-card-img {
    height: 200px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.service-card-img svg { width: 80px; height: 80px; color: rgba(255,255,255,.35); }
.service-card-img-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(255,255,255,.2);
    color: var(--white);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
    backdrop-filter: blur(4px);
}
.service-card-body { padding: 26px 28px; flex: 1; display: flex; flex-direction: column; }
.service-card-body h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.service-card-body p {
    font-size: .9rem;
    color: var(--text-light);
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}
.service-card-link {
    font-size: .88rem;
    font-weight: 700;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: gap .2s;
}
.service-card-link:hover { gap: 10px; color: var(--primary); }

.service-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    flex-direction: row;
}
.service-card--featured .service-card-img {
    height: 100%;
    min-height: 320px;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.service-card--featured .service-card-body {
    padding: 36px 40px;
    justify-content: center;
}
.service-card--featured .service-card-body h3 {
    font-size: 1.5rem;
    margin-bottom: 14px;
}
.service-card--featured .service-card-body p {
    font-size: 1rem;
    line-height: 1.75;
}

/* ============================================================
   PAGE HERO (sottopagine)
   ============================================================ */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: #fff;
    padding: 120px 0 56px;
    margin-top: 0;
}
.breadcrumb {
    font-size: .85rem;
    margin-bottom: 18px;
    opacity: .7;
}
.breadcrumb a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.breadcrumb span {
    margin: 0 8px;
    opacity: .5;
}
.breadcrumb strong {
    font-weight: 700;
}
.page-hero-title {
    font-size: 2.6rem;
    font-weight: 900;
    line-height: 1.15;
    margin-bottom: 16px;
}
.page-hero-sub {
    font-size: 1.1rem;
    opacity: .8;
    max-width: 640px;
    line-height: 1.7;
}

/* ============================================================
   SPECIALITÀ
   ============================================================ */
.spec-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.spec-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    box-shadow: 0 2px 12px rgba(10,46,56,.07);
    transition: all .25s;
    text-decoration: none;
    color: inherit;
    border: 1px solid var(--border);
}
.spec-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 8px 28px rgba(10,46,56,.12);
}
.spec-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.5rem;
}
.spec-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 4px;
}
.spec-info p {
    font-size: .83rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.45;
}

/* ============================================================
   TABS (Servizi per te)
   ============================================================ */
.tabs-wrap { max-width: 900px; margin: 0 auto; }
.tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 40px;
    overflow-x: auto;
}
.tab-btn {
    padding: 14px 28px;
    font-size: .92rem;
    font-weight: 700;
    color: var(--text-light);
    cursor: pointer;
    border: none;
    background: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    white-space: nowrap;
    transition: color .2s, border-color .2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-btn:hover  { color: var(--primary); }

.tab-pane { display: none; }
.tab-pane.active { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.tab-img {
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.tab-img svg { width: 80px; height: 80px; color: rgba(255,255,255,.3); }
.tab-content h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; color: var(--primary-dark); }
.tab-content p  { font-size: .95rem; color: var(--text-light); line-height: 1.7; margin-bottom: 16px; }
.tab-content .detail-list { list-style: none; margin-bottom: 24px; }
.tab-content .detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: .92rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.tab-content .detail-list li:last-child { border-bottom: none; }
.tab-content .detail-list li::before {
    content: '✓';
    color: var(--green);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ============================================================
   ORARI E CONTATTI
   ============================================================ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}
.orari-table { width: 100%; border-collapse: collapse; }
.orari-table tr { border-bottom: 1px solid var(--border); }
.orari-table tr:last-child { border-bottom: none; }
.orari-table td { padding: 12px 0; font-size: .95rem; }
.orari-table td:last-child { text-align: right; font-weight: 700; color: var(--primary); }

.contact-info-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-bottom: 30px; }
.contact-info-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: .95rem;
    color: var(--text);
}
.contact-info-list li .icon-wrap {
    width: 40px; height: 40px;
    border-radius: var(--radius);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.contact-info-list li .icon-wrap svg { width: 18px; height: 18px; color: var(--primary); }
.contact-info-list li a { color: var(--primary); font-weight: 600; }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: linear-gradient(110deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent) 100%);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 900; color: var(--white); margin-bottom: 14px; }
.cta-banner p  { font-size: 1.05rem; color: rgba(255,255,255,.8); margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btns { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   NEWS
   ============================================================ */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.news-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s, box-shadow .25s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 14px 40px rgba(10,46,56,.13); }
.news-card-img {
    height: 190px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.news-card-img svg { width: 60px; height: 60px; color: rgba(255,255,255,.25); }
.news-card-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--accent);
    color: var(--white);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 50px;
}
.news-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.news-card-date { font-size: .8rem; color: var(--text-light); margin-bottom: 10px; font-weight: 600; }
.news-card-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
    line-height: 1.35;
}
.news-card-title a { color: inherit; }
.news-card-title a:hover { color: var(--accent); }
.news-card-excerpt { font-size: .88rem; color: var(--text-light); line-height: 1.6; flex: 1; margin-bottom: 18px; }
.news-read { font-size: .85rem; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.news-read:hover { color: var(--primary); gap: 10px; }
.news-read svg { width: 14px; height: 14px; }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 70px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-col h4 {
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}
.footer-logo { margin-bottom: 18px; }
.footer-logo-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: -.01em;
}
.footer-logo-tag { font-size: .72rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .07em; }
.footer-col p { color: var(--footer-text); font-size: .9rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 9px; }
.footer-col ul li a { color: var(--footer-text); font-size: .9rem; transition: color .2s; display: flex; align-items: center; gap: 6px; }
.footer-col ul li a:hover { color: var(--white); }
.footer-col ul li a::before { content: '›'; color: var(--accent); font-weight: 700; }

.footer-contacts { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.footer-contacts a { color: var(--footer-text); font-size: .9rem; display: flex; align-items: flex-start; gap: 10px; }
.footer-contacts a:hover { color: var(--white); }
.footer-contacts svg { flex-shrink: 0; margin-top: 2px; color: var(--accent); }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
    width: 38px; height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.6);
    font-size: .8rem;
    font-weight: 700;
    transition: all .2s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* Numeri diretti su sfondo chiaro (sezione contatti) */
.recapiti-light { list-style: none; }
.recapiti-light li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
}
.recapiti-light li:last-child { border-bottom: none; }
.recapiti-light li span {
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--text-light);
}
.recapiti-light li a {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
}
.recapiti-light li a:hover { color: var(--accent); }

.footer-recapiti { list-style: none !important; }
.footer-recapiti li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    font-size: .88rem;
}
.footer-recapiti li:last-child { border-bottom: none; }
.footer-recapiti li span { display: block; font-size: .75rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.footer-recapiti li a { color: var(--accent-light); font-weight: 700; }
/* Numeri diretti nella sezione contatti (sfondo chiaro) */
.section .footer-recapiti li span { color: var(--text-light); }
.section .footer-recapiti li a { color: var(--primary); font-size: 1rem; }
.section .footer-recapiti li a:hover { color: var(--accent); }
.section .footer-recapiti li { border-bottom-color: var(--border); padding: 10px 0; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .82rem;
    color: rgba(255,255,255,.4);
}
.footer-bottom a { color: rgba(255,255,255,.45); }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   ACCREDITATION BADGE
   ============================================================ */
.accreditation-bar {
    background: var(--primary-light);
    border-top: 1px solid var(--border);
    padding: 18px 0;
}
.accreditation-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}
.acc-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .85rem;
    font-weight: 700;
    color: var(--primary-dark);
}
.acc-badge svg { color: var(--primary); }
.acc-sep { width: 1px; height: 24px; background: var(--border); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .quick-grid { grid-template-columns: repeat(2, 1fr); transform: translateY(-30px); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .about-grid  { grid-template-columns: 1fr; gap: 40px; }
    .about-img   { max-width: 500px; margin: 0 auto; }
    .about-img-badge { right: 0; }
}

@media (max-width: 900px) {
    :root { --header-h: 72px; }
    .hero { height: 480px; }
    .hero-slide-inner { margin-left: 24px; }
    .hero-deco { display: none; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .spec-grid     { grid-template-columns: 1fr 1fr; }
    .news-grid     { grid-template-columns: 1fr 1fr; }
    .stats-grid    { grid-template-columns: repeat(2, 1fr); }
    .contact-grid  { grid-template-columns: 1fr; }
    .tab-pane.active { grid-template-columns: 1fr; }
    .tab-img { aspect-ratio: 16/9; max-height: 260px; }
}

@media (max-width: 768px) {
    .header-topbar { display: none; }
    .header-row2 { display: none; }
    #primary-nav {
        display: none;
        position: fixed;
        inset: var(--header-h) 0 0 0;
        background: var(--white);
        overflow-y: auto;
        z-index: 999;
        padding: 16px;
        flex-direction: column;
        align-items: stretch;
    }
    #primary-nav.open { display: flex; }
    #primary-nav > ul { flex-direction: column; }
    #primary-nav > ul > li > a { color: var(--primary-dark) !important; border-bottom: 1px solid var(--border); padding: 14px 8px; }
    #primary-nav > ul > li > ul { position: static; box-shadow: none; border-top: none; padding-left: 16px; background: var(--bg-light); }
    #primary-nav > ul > li:hover > ul { display: block; }
    .nav-toggle { display: flex; }
    .header-actions .btn { display: none; }

    .quick-grid { grid-template-columns: 1fr 1fr; transform: translateY(-20px); margin: 0 12px; }
    .section { padding: 56px 0; }
    .services-grid { grid-template-columns: 1fr; }
    .service-card--featured { grid-template-columns: 1fr; }
    .service-card--featured .service-card-img { min-height: 200px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
    .service-card--featured .service-card-body { padding: 26px 28px; }
    .spec-grid     { grid-template-columns: 1fr; }
    .news-grid     { grid-template-columns: 1fr; }
    .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-bottom-links { justify-content: center; }
}

@media (max-width: 500px) {
    .quick-grid { grid-template-columns: 1fr; transform: none; margin: 0; border-radius: 0; }
    .quick-card { border-right: none; border-bottom: 1px solid var(--border); }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .hero { height: 420px; }
    .hero-btns { flex-direction: column; }
}

/* ============================================================
   FOOTER BADGES (Loghi qualità e finanziamenti)
   ============================================================ */
.footer-badges {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 40px;
    padding-top: 32px;
    padding-bottom: 8px;
}

.footer-badges-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}

.footer-badge-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-badge-label {
    font-size: .78rem;
    color: rgba(255,255,255,.45);
    line-height: 1.5;
    max-width: 340px;
    margin: 0;
}

.footer-badge-item img {
    max-height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255,255,255,.06);
    padding: 6px 10px;
}

.footer-badge-item--iso img {
    max-height: 80px;
    background: rgba(255,255,255,.92);
    padding: 8px 14px;
    border-radius: 6px;
}

.footer-badge-sep {
    width: 1px;
    height: 80px;
    background: rgba(255,255,255,.10);
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .footer-badges-inner { gap: 24px; }
    .footer-badge-sep { display: none; }
    .footer-badge-item img { max-height: 48px; }
    .footer-badge-item--iso img { max-height: 60px; }
}

/* ============================================================
   CARTA DEI SERVIZI
   ============================================================ */
.carta-servizi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.carta-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform .25s, box-shadow .25s;
}
.carta-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 36px rgba(10,46,56,.14);
}

.carta-card-icon {
    background: var(--primary-light);
    padding: 36px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}
.carta-card-icon--eng {
    background: #e8f0fe;
    color: #1a56b0;
}

.carta-card-body {
    padding: 32px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.carta-card-lang {
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-light);
}

.carta-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--primary-dark);
    line-height: 1.3;
}

.carta-card-desc {
    font-size: .95rem;
    color: var(--text-light);
    line-height: 1.65;
    flex: 1;
}

.carta-card-body .btn {
    align-self: flex-start;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .carta-servizi-grid { grid-template-columns: 1fr; gap: 20px; }
}
