/* DM Sans */
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-italic-300-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: italic;
  font-weight: 300;
  font-display: swap;
  src: url('fonts/dm-sans-italic-300-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/dm-sans-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 300 500;
  font-display: swap;
  src: url('fonts/dm-sans-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* DM Serif Display */
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-serif-display-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-serif-display-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-serif-display-normal-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-serif-display-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --dark: #1d1d1f;
    --mid: #6e6e73;
    --light: #f5f5f7;
    --border: #d2d2d7;
    --white: #ffffff;
    --radius: 18px;
    --radius-sm: 10px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    font-weight: 400;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.9);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding: 20px 5% 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    order: 1;
}

nav {
    order: 2;
    width: 100%;
    display: flex;
    justify-content: center;
}

.logo a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
    transition: opacity 0.2s;
}

.logo img:hover {
    opacity: 0.75;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
}

nav ul li a {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--dark);
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: color 0.2s;
}

nav ul li a:hover {
    color: var(--accent);
}

/* ── Hero (index) ── */
#hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 5% 100px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,113,227,0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    pointer-events: none;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.8s 0.1s forwards;
}

#hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--dark);
    max-width: 700px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s 0.25s forwards;
}

#hero p {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--mid);
    max-width: 460px;
    line-height: 1.7;
    margin-bottom: 44px;
    opacity: 0;
    animation: fadeUp 0.8s 0.4s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: var(--white);
    padding: 14px 28px;
    border-radius: 980px;
    font-size: 0.9rem;
    font-weight: 400;
    text-decoration: none;
    letter-spacing: 0.01em;
    transition: background 0.2s, transform 0.2s;
    opacity: 0;
    animation: fadeUp 0.8s 0.55s forwards;
}

.btn:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn::after {
    content: '→';
    font-size: 1rem;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s 0.55s forwards;
}

.hero-actions .btn {
    opacity: 1;
    animation: none;
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid rgba(0,0,0,0.18);
}

.btn-outline::after {
    content: '';
}

.btn-outline:hover {
    background: rgba(0,0,0,0.04);
    border-color: rgba(0,0,0,0.35);
}

.hero-note {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--mid);
    margin-top: 18px;
}

/* ── Main ── */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ── Sections ── */
section {
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
}

section:last-child {
    border-bottom: none;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 16px;
}

h2.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
}

.section-body {
    font-size: 1.05rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.8;
    max-width: 560px;
}

.section-body strong {
    color: var(--dark);
    font-weight: 500;
}

/* ── Chi Siamo (index) ── */
#chi-siamo,
#zone {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.stat-row {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.stat-item {
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--mid);
    font-weight: 300;
}

/* ── Servizi (index) ── */
.service-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-top: 56px;
}

.service-item {
    background: var(--white);
    padding: 36px 32px;
    transition: background 0.25s;
    cursor: default;
}

.service-item:hover {
    background: var(--light);
}

.service-icon img {
    width: 24px; /* O una misura leggermente inferiore ai 40px del contenitore */
    height: 24px;
    object-fit: contain; /* Mantiene le proporzioni senza tagliare l'icona */
}

.service-item h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.service-item p {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.75;
}

/* ── Contatti ── */
#contatti .contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-top: 16px;
}

.contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.contact-list li {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.contact-list li:first-child {
    border-top: 1px solid var(--border);
}

.contact-key {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mid);
}

.contact-val {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dark);
}

.contact-val a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.contact-val a:hover {
    opacity: 0.7;
}

.contact-cta {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
}

.contact-cta-heading {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--dark);
}

.contact-cta p {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.7;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 40px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    max-width: 100%;
}

footer p {
    font-size: 0.78rem;
    color: var(--mid);
    font-weight: 300;
}

/* ── Page Hero (chi-siamo, servizi) ── */
.page-hero {
    padding: 140px 5% 80px;
    max-width: 960px;
    margin: 0 auto;
}

.page-hero .hero-eyebrow {
    opacity: 1;
    animation: none;
    display: block;
    margin-bottom: 20px;
}

.page-hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--dark);
    max-width: 680px;
    margin-bottom: 32px;
}

.page-hero .lead {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.75;
    max-width: 520px;
}

/* ── Portrait Block (chi-siamo) ── */
.portrait-section {
    background: var(--light);
    padding: 80px 5%;
    margin: 0;
}

.portrait-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.portrait-image {
    aspect-ratio: 4/5;
    background: var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.portrait-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.portrait-placeholder {
    font-family: 'DM Serif Display', serif;
    font-size: 6rem;
    color: var(--border);
    user-select: none;
}

.portrait-caption {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
}

.portrait-caption strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: #f5f5f7;
}

.portrait-caption span {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.65);
}

.portrait-text h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: var(--dark);
    margin-bottom: 20px;
}

.portrait-text p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.85;
    margin-bottom: 18px;
}

.portrait-text p:last-child {
    margin-bottom: 0;
}

/* ── Values (chi-siamo) ── */
.values-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 96px 5%;
    border-bottom: 1px solid var(--border);
}

.values-header {
    margin-bottom: 64px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
}

.value-number {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: var(--accent);
    margin-bottom: 16px;
    line-height: 1;
}

.value-item h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.value-item p {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.8;
}

/* ── Timeline (chi-siamo) ── */
.timeline-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 96px 5%;
    border-bottom: 1px solid var(--border);
}

.timeline {
    margin-top: 56px;
    display: flex;
    flex-direction: column;
}

.timeline-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 40px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    align-items: start;
}

.timeline-year {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--mid);
    padding-top: 2px;
}

.timeline-content h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
}

.timeline-content p {
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.8;
}

/* ── CTA Strip ── */
.cta-strip {
    background: var(--dark);
    padding: 80px 5%;
    text-align: center;
}

.cta-strip-inner {
    max-width: 560px;
    margin: 0 auto;
}

.cta-strip h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #f5f5f7;
    margin-bottom: 20px;
}

.cta-strip p {
    font-size: 0.95rem;
    font-weight: 300;
    color: #86868b;
    line-height: 1.75;
    margin-bottom: 36px;
}

.btn-white {
    background: var(--white);
    color: var(--dark);
}

.btn-white:hover {
    background: #e8e8ed;
    transform: scale(1.02);
}

/* ── CTA Strip (servizi page variant) ── */
.cta-strip.cta-light {
    background: var(--light);
    border-top: 1px solid var(--border);
}

.cta-strip.cta-light h2 {
    color: var(--dark);
}

.cta-strip.cta-light p {
    color: var(--mid);
}

/* ── Service Detail Blocks (servizi) ── */
.services-detail {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 5% 0;
}

.service-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.service-block:last-child {
    border-bottom: 1px solid var(--border);
}

.service-block.reverse {
    direction: rtl;
}

.service-block.reverse > * {
    direction: ltr;
}

.service-block-visual {
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    position: relative;
}

.service-block-visual::before {
    content: '';
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.10);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.service-big-icon img {
    width: 4rem; /* Prova valori tra 3rem e 5rem */
    height: auto;
}

.service-badge {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(0, 113, 227, 0.08);
    padding: 6px 14px;
    border-radius: 980px;
    position: relative;
    z-index: 1;
}

.service-index {
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    color: var(--mid);
    margin-bottom: 12px;
    font-weight: 400;
}

.service-block-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 20px;
}

.service-block-content p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.85;
    margin-bottom: 28px;
}

.service-checklist {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--dark);
}

.check-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 113, 227, 0.1);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.check-dot::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* ── Urgenze Banner (servizi) ── */
.urgenze-banner {
    background: var(--dark);
    margin: 0;
    padding: 72px 5%;
    text-align: center;
}

.urgenze-banner-inner {
    max-width: 600px;
    margin: 0 auto;
}

.urgenze-banner .hero-eyebrow {
    opacity: 1;
    animation: none;
    display: block;
    margin-bottom: 16px;
    color: rgba(0, 113, 227, 0.9);
}

.urgenze-banner h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: #f5f5f7;
    margin-bottom: 20px;
    line-height: 1.2;
}

.urgenze-banner p {
    font-size: 0.95rem;
    font-weight: 300;
    color: #86868b;
    line-height: 1.75;
    margin-bottom: 36px;
}

.btn-ghost {
    background: transparent;
    color: #f5f5f7;
    border: 1px solid rgba(255,255,255,0.25);
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.02);
}

/* ── FAQ (servizi) ── */
.faq-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 96px 5%;
}

.faq-list {
    margin-top: 56px;
}

.faq-item {
    border-top: 1px solid var(--border);
    padding: 24px 0;
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    font-size: 1rem;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    user-select: none;
}

.faq-toggle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
    color: var(--mid);
    transition: transform 0.25s, background 0.2s;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
    background: var(--accent);
    color: white;
}

.faq-answer {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-item.open .faq-answer {
    max-height: 200px;
    padding-top: 16px;
}

/* ── Testimonials (cosa-dicono) ── */
.testimonials-section {
    padding: 40px 5% 80px;
    max-width: 960px;
    margin: 0 auto;
}

.testimonials-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--light);
    border-radius: var(--radius);
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: transform 0.25s;
}

.testimonial-card:hover {
    transform: translateY(-3px);
}

.testimonial-stars {
    font-size: 1rem;
    color: var(--accent);
    letter-spacing: 2px;
}

.testimonial-quote {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--dark);
    line-height: 1.85;
    font-style: normal;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid var(--border);
    padding-top: 20px;
    margin-top: auto;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 0.85rem;
    color: var(--mid);
    flex-shrink: 0;
}

.testimonial-meta strong {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
}

.testimonial-meta span {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--mid);
}

/* ── Score Banner (cosa-dicono) ── */
.score-banner {
    background: var(--light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 64px 5%;
}

.score-banner-inner {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.score-item {
    flex: 1;
    text-align: center;
}

.score-num {
    font-family: 'DM Serif Display', serif;
    font-size: 2.8rem;
    font-weight: 400;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 8px;
}

.score-label {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--mid);
}

.score-divider {
    width: 1px;
    height: 60px;
    background: var(--border);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .testimonials-inner {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: 28px 24px;
    }

    .score-banner-inner {
        flex-direction: column;
        gap: 32px;
    }

    .score-divider {
        width: 60px;
        height: 1px;
    }
}

/* ── Animations ── */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {

    /* Header */
    header {
        padding: 12px 5% 10px;
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    .logo { order: 1; }
    nav   { order: 2; }

    nav ul {
        gap: 20px;
        justify-content: center;
        flex-wrap: wrap;
    }

    nav ul li a {
        font-size: 0.78rem;
    }

    /* Hero */
    #hero {
        min-height: 75vh;
        padding: 60px 6% 72px;
    }

    #hero h1 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }

    #hero p {
        font-size: 1rem;
    }

    /* Main padding */
    main {
        padding: 0 6%;
    }

    /* Sections */
    section {
        padding: 56px 0;
    }

    /* Page Hero (chi-siamo, servizi) */
    .page-hero {
        padding: 72px 6% 48px;
    }

    .page-hero h1 {
        font-size: clamp(2.2rem, 8vw, 3rem);
    }

    .page-hero .lead {
        font-size: 1rem;
    }

    /* Chi Siamo / Zone — 2 colonne → 1 */
    #chi-siamo,
    #zone {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Grids → 1 colonna */
    .contact-wrapper,
    .portrait-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Values — 3 col → 1 col */
    .values-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    /* Values section padding */
    .values-section,
    .timeline-section,
    .faq-section {
        padding: 56px 6%;
    }

    /* Portrait */
    .portrait-section {
        padding: 56px 6%;
    }

    .portrait-image {
        aspect-ratio: auto;
        height: auto;
    }

    .portrait-photo {
        height: auto;
        object-fit: fill;
    }

    /* Service list (index) — 2 col → 1 */
    .service-list {
        grid-template-columns: 1fr;
    }

    .service-item {
        padding: 28px 24px;
    }

    /* Service blocks (servizi page) */
    .services-detail {
        padding: 24px 6% 0;
    }

    .service-block {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 48px 0;
    }

    .service-block.reverse {
        direction: ltr;
    }

    .service-block-visual {
        aspect-ratio: auto;
        padding: 48px 0;
    }

    /* Timeline */
    .timeline-item {
        grid-template-columns: 72px 1fr;
        gap: 20px;
    }

    .timeline-year {
        font-size: 1.1rem;
    }

    /* CTA Strip */
    .cta-strip {
        padding: 56px 6%;
    }

    /* Urgenze banner */
    .urgenze-banner {
        padding: 56px 6%;
    }

    /* Footer */
    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 32px 6%;
    }

    /* Stat numbers */
    .stat-num {
        font-size: 2.2rem;
    }

    /* Contact section */
    #contatti .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* ── Dark Mode ── */
[data-theme="dark"] {
    --dark: #f5f5f7;
    --mid: #a1a1a6;
    --light: #1c1c1e;
    --border: #3a3a3c;
    --white: #000000;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --dark: #f5f5f7;
        --mid: #a1a1a6;
        --light: #1c1c1e;
        --border: #3a3a3c;
        --white: #000000;
    }
}

[data-theme="dark"] header {
    background: rgba(0, 0, 0, 0.85);
    border-bottom-color: rgba(255,255,255,0.08);
}

@media (prefers-color-scheme: dark) {
    header {
        background: rgba(0, 0, 0, 0.85);
        border-bottom-color: rgba(255,255,255,0.08);
    }
}
[data-theme="dark"] .service-icon img,
[data-theme="dark"] .service-big-icon img {
    filter: invert(1);
}

@media (prefers-color-scheme: dark) {
    .service-icon img,
    .service-big-icon img {
        filter: invert(1);
    }
}

[data-theme="dark"] .urgenze-banner {
    background: #1c1c1e;
    border-top: 1px solid #3a3a3c;
    border-bottom: 1px solid #3a3a3c;
}

@media (prefers-color-scheme: dark) {
    .urgenze-banner {
        background: #1c1c1e;
        border-top: 1px solid #3a3a3c;
        border-bottom: 1px solid #3a3a3c;
    }
}

[data-theme="dark"] .cta-strip {
    background: #1c1c1e;
    border-top: 1px solid #3a3a3c;
    border-bottom: 1px solid #3a3a3c;
}

@media (prefers-color-scheme: dark) {
    .cta-strip {
        background: #1c1c1e;
        border-top: 1px solid #3a3a3c;
        border-bottom: 1px solid #3a3a3c;
    }
}

/* ── Legal pages (Privacy & Cookie Policy) ── */
.legal {
    max-width: 780px;
    margin: 0 auto;
    padding: 48px 6% 96px;
}

.legal .legal-meta {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--mid);
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}

.legal h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.45rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--dark);
    margin: 44px 0 14px;
}

.legal h2:first-of-type {
    margin-top: 0;
}

.legal h3 {
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--dark);
    margin: 24px 0 8px;
}

.legal p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.8;
    margin-bottom: 16px;
}

.legal ul {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
}

.legal li {
    position: relative;
    padding-left: 22px;
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--mid);
    line-height: 1.8;
    margin-bottom: 8px;
}

.legal li::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.legal a {
    color: var(--accent);
    text-decoration: none;
}

.legal a:hover {
    text-decoration: underline;
}

.legal strong {
    color: var(--dark);
    font-weight: 500;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0 24px;
    font-size: 0.85rem;
}

.legal-table th,
.legal-table td {
    text-align: left;
    padding: 12px 14px;
    border: 1px solid var(--border);
    color: var(--mid);
    font-weight: 300;
    line-height: 1.6;
    vertical-align: top;
}

.legal-table th {
    color: var(--dark);
    font-weight: 500;
    background: var(--light);
}

/* ── Footer links ── */
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent);
}