/* Self-hosted fonts (Cormorant Garamond + Lato) */
/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKky2F7i6C.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;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtKky2F7g.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;
}

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKky2F7i6C.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;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtKky2F7g.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;
}

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKky2F7i6C.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;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtKky2F7g.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;
}

/* latin-ext */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYp3tKky2F7i6C.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;
}

/* latin */
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/co3bmX5slCNuHLi8bLeY9MK7whWMhyjYqXtKky2F7g.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;
}

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/S6u9w4BMUTPHh7USSwaPGQ3q5d0N7w.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;
}

/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url(fonts/S6u9w4BMUTPHh7USSwiPGQ3q5d0.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;
}

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/S6uyw4BMUTPHjxAwXiWtFCfQ7A.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;
}

/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/S6uyw4BMUTPHjx4wXiWtFCc.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;
}

/* latin-ext */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.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;
}

/* latin */
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(fonts/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.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;
}

/* ============================================
   Studio Legale Avv. Antonio Iodice
   Stile classico/istituzionale
   ============================================ */

:root {
    --navy: #0f1f3d;
    --navy-light: #1a2f56;
    --navy-dark: #0a1428;
    --gold: #b8924a;
    --gold-light: #d4ac6a;
    --gold-dark: #876830;
    --bg: #ffffff;
    --bg-soft: #f7f5f0;
    --bg-alt: #f1ede4;
    --text: #1a1a1a;
    --text-muted: #5a5a5a;
    --border: #d8d2c4;
    --border-soft: #ece8de;

    --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
    --sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    --container: 1140px;
    --radius: 2px;
    --transition: 0.25s ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--navy);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--gold);
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   ACCESSIBILITY: focus & skip link
   ============================================ */

.skip-link {
    position: absolute;
    top: -100px;
    left: 12px;
    background: var(--navy);
    color: #fff;
    padding: 12px 20px;
    z-index: 200;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s;
}

.skip-link:focus {
    top: 12px;
    color: #fff;
    outline: 2px solid var(--gold-light);
    outline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 2px;
}

.btn:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 3px;
}

.float-whatsapp:focus-visible,
.float-call:focus-visible,
.float-top:focus-visible {
    outline: 3px solid var(--gold-light);
    outline-offset: 4px;
}

/* ============================================
   HEADER
   ============================================ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-soft);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    line-height: 1.15;
    color: var(--navy);
    flex-shrink: 0;
}

.brand:hover {
    color: var(--navy);
}

.brand-logo {
    height: 42px;
    width: auto;
    display: block;
}

.brand-name-sm {
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 500;
    font-style: italic;
    color: var(--text-muted);
    padding-left: 14px;
    border-left: 1px solid var(--border);
    line-height: 1.2;
    white-space: nowrap;
}

.site-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 26px;
}

.site-nav a {
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text);
    position: relative;
    padding: 4px 0;
    white-space: nowrap;
}

@media (max-width: 1400px) {
    .site-nav ul { gap: 18px; }
    .site-nav a  { font-size: 13px; letter-spacing: 0.04em; }
}

@media (max-width: 1280px) {
    .brand-name-sm { display: none; }
    .site-nav ul { gap: 16px; }
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.site-nav a:hover {
    color: var(--navy);
}

.site-nav a:hover::after {
    width: 100%;
}

/* "Area Clienti" CTA — visually distinct from regular nav items. */
.site-nav a.nav-cta {
    background: var(--navy);
    color: #fff;
    padding: 7px 14px;
    border-radius: 4px;
    font-weight: 500;
    white-space: nowrap;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

@media (max-width: 1180px) {
    .site-nav a.nav-cta { padding: 6px 11px; }
}

.site-nav a.nav-cta::after {
    display: none;
}

.site-nav a.nav-cta:hover {
    background: var(--navy-light);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px -6px rgba(15, 31, 61, 0.4);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--navy);
    transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    display: none;
    background: var(--bg);
    border-top: 1px solid var(--border-soft);
}

.mobile-nav.is-open {
    display: block;
}

.mobile-nav ul {
    list-style: none;
    padding: 12px 24px 20px;
}

.mobile-nav a {
    display: block;
    padding: 12px 0;
    font-size: 15px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text);
}

.mobile-nav li:last-child a {
    border-bottom: none;
}

.mobile-nav a.nav-cta {
    margin-top: 16px;
    padding: 14px 16px;
    background: var(--navy);
    color: #fff;
    text-align: center;
    border-bottom: none;
    border-radius: 6px;
    font-weight: 500;
}

.mobile-nav a.nav-cta:hover {
    background: var(--navy-light);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding: 80px 0;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: -4%;
    left: -4%;
    right: -4%;
    bottom: -4%;
    background: url('hero.webp') center/cover no-repeat;
    animation: kenBurns 24s ease-in-out infinite alternate;
    z-index: 0;
}

.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 31, 61, 0.86) 0%, rgba(10, 20, 40, 0.92) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero > .container,
.hero > .hero-scroll {
    position: relative;
    z-index: 2;
}

@keyframes kenBurns {
    from {
        transform: scale(1) translate(0, 0);
    }
    to {
        transform: scale(1.08) translate(-1%, -1%);
    }
}

.hero .eyebrow,
.hero h1,
.hero .lede,
.hero-actions {
    opacity: 0;
    animation: fadeUp 0.9s ease-out forwards;
}

.hero .eyebrow {
    animation-delay: 0.2s;
}

.hero h1 {
    animation-delay: 0.45s;
}

.hero .lede {
    animation-delay: 0.75s;
}

.hero-actions {
    animation-delay: 1.05s;
}

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

.hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.9s ease-out 1.4s forwards;
    pointer-events: none;
}

.hero-scroll-line {
    width: 1px;
    height: 42px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-scroll-line::after {
    content: "";
    position: absolute;
    top: -42px;
    left: 0;
    width: 100%;
    height: 42px;
    background: linear-gradient(to bottom, transparent, var(--gold-light));
    animation: scrollLine 2.2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% {
        top: -42px;
    }
    100% {
        top: 42px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero .eyebrow,
    .hero h1,
    .hero .lede,
    .hero-actions,
    .hero-scroll,
    .hero-scroll-line::after {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.hero::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(184, 146, 74, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    max-width: 880px;
    text-align: center;
}

.hero .eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 28px;
}

.hero h1 {
    font-family: var(--serif);
    font-size: clamp(38px, 6vw, 64px);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: 0.005em;
    margin-bottom: 32px;
}

.hero h1 span {
    display: inline-block;
    margin-top: 8px;
    font-style: italic;
    font-weight: 500;
    color: var(--gold-light);
}

.hero .lede {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 640px;
    margin: 0 auto 44px;
    font-weight: 300;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 32px;
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy);
    transform: translateY(-1px);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    color: #fff;
}

/* ============================================
   SECTIONS
   ============================================ */

.section {
    padding: 100px 0;
}

.section.has-banner {
    padding-top: 80px;
}

.section-banner {
    position: relative;
    margin-bottom: 70px;
    overflow: hidden;
}

.section-banner-img {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transition: transform 0.5s ease;
}

.section-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 31, 61, 0.15) 0%, rgba(15, 31, 61, 0) 40%, rgba(15, 31, 61, 0) 60%, rgba(15, 31, 61, 0.25) 100%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .section-banner-img {
        height: 220px;
    }
    .section-banner {
        margin-bottom: 56px;
    }
}

.section-aree {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

/* Tighter spacing around the navy "Lo Studio in numeri" fascia: the section
   above (studio) and the one below (professionisti) sit close to it so the
   navy block reads as part of the same visual rhythm. */
.section-studio {
    padding-bottom: 60px;
}

.section-professionisti {
    background: var(--bg);
    padding-top: 60px;
}

/* ============================================
   LO STUDIO IN NUMERI
   ============================================ */

.section-numeri {
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
    color: #fff;
    padding: 56px 0;
    position: relative;
    overflow: hidden;
}

.section-numeri::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(184, 146, 74, 0.08) 0, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(184, 146, 74, 0.06) 0, transparent 50%);
    pointer-events: none;
}

.numeri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.numero-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 14px 18px;
    position: relative;
    min-height: 130px;
}

.numero-item + .numero-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(184, 146, 74, 0.35), transparent);
}

.numero-value {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-family: var(--serif);
    font-size: clamp(30px, 3.8vw, 44px);
    font-weight: 500;
    color: var(--gold-light);
    line-height: 1;
    letter-spacing: 0.005em;
    font-style: normal;
    margin-bottom: 18px;
    height: 50px;
}

.numero-value-word {
    /* uniformato a .numero-value: stessa dimensione, stesso stile */
}

.numero-label {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
    max-width: 220px;
    min-height: 34px;
}

@media (max-width: 768px) {
    .section-numeri {
        padding: 48px 0;
    }
    .numeri-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 0;
    }
    .numero-item + .numero-item::before {
        display: none;
    }
    .numero-item:nth-child(odd):not(:first-child)::before {
        content: "";
        position: absolute;
        left: 18%;
        right: 18%;
        top: -14px;
        height: 1px;
        width: auto;
        background: linear-gradient(to right, transparent, rgba(184, 146, 74, 0.35), transparent);
    }
}

@media (max-width: 480px) {
    .numeri-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .numero-item + .numero-item::before,
    .numero-item:nth-child(odd):not(:first-child)::before {
        display: none;
    }
}

.prof-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 0;
    border-bottom: 1px solid var(--border-soft);
}

.prof-card:last-child {
    border-bottom: none;
}

.prof-card-with-photo {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    align-items: start;
}

.prof-card-with-photo.prof-card-reverse {
    grid-template-columns: 1fr 240px;
}

.prof-card-with-photo.prof-card-reverse .prof-photo {
    order: 2;
}

.prof-photo {
    position: relative;
    width: 240px;
    height: 288px;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-soft) 100%);
    border: 1px solid var(--border-soft);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prof-photo::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid var(--gold);
    pointer-events: none;
    z-index: 2;
}

.prof-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.prof-photo-fallback {
    font-family: var(--serif);
    font-size: 38px;
    font-weight: 500;
    font-style: italic;
    color: var(--gold);
    letter-spacing: 0.08em;
    z-index: 1;
}

@media (max-width: 768px) {
    .prof-card-with-photo,
    .prof-card-with-photo.prof-card-reverse {
        grid-template-columns: 1fr;
        gap: 28px;
        justify-items: center;
        text-align: left;
    }
    .prof-card-with-photo.prof-card-reverse .prof-photo {
        order: 0;
    }
    .prof-photo {
        width: 200px;
        height: 240px;
    }
    .prof-content {
        width: 100%;
    }
}

.prof-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.prof-content h3 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
    margin-bottom: 16px;
}

.prof-lede {
    font-family: var(--serif);
    font-size: 19px;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 20px !important;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
}

.prof-content p {
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.8;
    margin-bottom: 14px;
}

.prof-linkedin-wrap {
    margin-top: 22px !important;
    margin-bottom: 0 !important;
    text-align: left !important;
    hyphens: none;
    -webkit-hyphens: none;
}

.prof-linkedin {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    transition: color var(--transition);
}

.prof-linkedin:hover {
    color: var(--navy);
    border-bottom-color: var(--navy);
}


.section-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 18px;
}

.section-eyebrow.centered {
    text-align: center;
}

.section h2 {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 500;
    line-height: 1.2;
    color: var(--navy);
    margin-bottom: 28px;
    letter-spacing: 0.005em;
}

.section h2.centered {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding-bottom: 28px;
}

.section h2.centered::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--gold);
}

.section p {
    margin-bottom: 18px;
    color: var(--text);
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.col-text p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.8;
}

/* Values list */

.values {
    list-style: none;
    border-left: 2px solid var(--gold);
    padding-left: 32px;
}

.values li {
    margin-bottom: 32px;
}

.values li:last-child {
    margin-bottom: 0;
}

.values h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 8px;
}

.values p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0;
}

/* Aree grid */

.aree-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.aree-grid .area-card:last-child:nth-child(3n - 2) {
    grid-column: 2 / 3;
}

@media (max-width: 1080px) {
    .aree-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .aree-grid .area-card:last-child:nth-child(3n - 2) {
        grid-column: auto;
    }
}

.area-card {
    background: #fff;
    padding: 44px 36px;
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--gold);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}

.area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px -20px rgba(15, 31, 61, 0.25);
}

.area-card h3 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 16px;
    padding-bottom: 16px;
    line-height: 1.25;
    position: relative;
}

.area-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 1px;
    background: var(--gold);
}

.area-card-link-wrap {
    margin-top: 18px !important;
    margin-bottom: 0 !important;
}

.area-card-link {
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold) !important;
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    transition: color var(--transition);
}

.area-card-link:hover {
    color: var(--navy) !important;
    border-bottom-color: var(--navy);
}

.area-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
}

/* Testi giustificati nelle sezioni descrittive senza sillabazione.
   Eccezione: .area-card p — sillabazione ATTIVA (eredita la regola globale
   hyphens:auto) per evitare spazi enormi nelle card strette delle aree. */
.section-studio .col-text p,
.section-studio .values li p,
.section-professionisti .prof-card .prof-lede,
.section-professionisti .prof-card .prof-content p,
.section-contatti .col-text p,
.section-contatti .contact-form-lede,
.section-faq .faq-answer p,
.article-body p,
.article-body .article-lede {
    text-align: justify;
    hyphens: none;
    -webkit-hyphens: none;
}

/* Contatti */

.contatti-list {
    list-style: none;
    background: var(--bg-soft);
    padding: 40px;
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--gold);
}

.contatti-list li {
    padding: 18px 0;
    border-bottom: 1px solid var(--border-soft);
}

.contatti-list li:first-child {
    padding-top: 0;
}

.contatti-list li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.contatti-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-dark);
    margin-bottom: 6px;
}

.contatti-list a {
    font-family: var(--serif);
    font-size: 19px;
    color: var(--navy);
    line-height: 1.4;
}

.contatti-list a:hover {
    color: var(--gold);
}

/* ============================================
   ARTICLES — INDEX & LIST
   ============================================ */

.articles-page {
    background: var(--bg);
}

.articles-hero {
    padding: 90px 0 50px;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
}

.articles-hero h1 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 52px);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.15;
    margin: 12px 0 20px;
}

.articles-lede {
    font-family: var(--serif);
    font-size: 19px;
    font-style: italic;
    color: var(--text-muted);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.6;
}

.articles-list {
    padding: 70px 0 90px;
}

.articles-list .container {
    max-width: 820px;
}

.articles-stack {
    display: flex;
    flex-direction: column;
}

.article-item {
    display: block;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-soft);
    text-decoration: none;
    color: var(--text);
    transition: transform var(--transition);
}

.article-item:first-child {
    padding-top: 0;
}

.article-item:last-child {
    border-bottom: none;
}

.article-item:hover {
    color: var(--text);
    transform: translateX(4px);
}

.article-item-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.article-cat {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.article-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--navy);
    background: rgba(184, 146, 74, 0.15);
    border: 1px solid var(--gold);
    padding: 3px 8px;
    border-radius: 2px;
}

.article-badge svg {
    width: 11px;
    height: 11px;
}

.article-pdf {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-left: 18px;
    text-decoration: none;
}

.article-pdf:hover {
    color: var(--gold);
}

.article-pdf svg {
    width: 14px;
    height: 14px;
}

.article-date {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    position: relative;
    padding-left: 16px;
}

.article-date::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 8px;
    height: 1px;
    background: var(--border);
}

.article-item h2 {
    font-family: var(--serif);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.25;
    margin-bottom: 8px;
    transition: color var(--transition);
}

.article-item:hover h2 {
    color: var(--gold);
}

.article-ref {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.article-excerpt {
    color: var(--text);
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 18px;
}

.article-link {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    position: relative;
    display: inline-block;
}

.article-link::after {
    content: " →";
    display: inline-block;
    transition: transform var(--transition);
}

.article-item:hover .article-link::after {
    transform: translateX(4px);
}

.articles-disclaimer {
    margin-top: 50px;
    padding-top: 28px;
    border-top: 1px solid var(--border-soft);
    text-align: center;
    font-size: 13px;
    font-style: italic;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .articles-hero {
        padding: 70px 0 40px;
    }
    .articles-list {
        padding: 50px 0 70px;
    }
    .article-item {
        padding: 32px 0;
    }
}

/* ============================================
   ARTICLE — SINGLE PAGE
   ============================================ */

.article-page {
    background: var(--bg);
    padding: 80px 0 100px;
}

.article-page > article {
    max-width: 760px;
}

.article-back {
    margin-bottom: 36px;
}

.article-back a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition);
}

.article-back a:hover {
    color: var(--gold);
}

.article-page h1 {
    font-family: var(--serif);
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.2;
    margin: 14px 0 14px;
}

.article-page .article-meta {
    font-size: 14px;
    margin-bottom: 0;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border-soft);
}

.article-body {
    margin: 36px 0 50px;
}

.article-body .article-lede {
    font-family: var(--serif);
    font-size: 21px;
    font-style: italic;
    color: var(--navy);
    line-height: 1.55;
    margin-bottom: 28px;
    padding-left: 18px;
    border-left: 3px solid var(--gold);
}

.article-summary {
    margin: 0 0 30px;
    padding: 22px 26px;
    background: var(--navy);
    border-radius: 10px;
    box-shadow: 0 6px 22px rgba(15, 31, 61, 0.16);
}

.article-summary .article-summary-label {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.article-body p {
    font-size: 17px;
    line-height: 1.85;
    color: var(--text);
    margin-bottom: 20px;
}

.article-body strong {
    color: var(--navy);
    font-weight: 600;
}

/* Box "In sintesi": dichiarato dopo .article-body p/strong per vincere
   il pari-specificità dentro gli articoli (testo chiaro su fondo navy);
   fuori dagli articoli — es. landing — resta comunque l'unica regola valida. */
.article-summary p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
}

/* Dentro .scuola-intro (landing e pagine-servizio) la regola generica
   .scuola-intro p — che sta più avanti nel file — vincerebbe per ordine
   a parità di specificità, rendendo il testo scuro su fondo navy:
   questo override più specifico tiene il bianco. */
.scuola-intro .article-summary p {
    color: rgba(255, 255, 255, 0.92);
    margin: 0;
}

/* Blocco «In sintesi» della home: elenco puntato dentro il box navy */
.home-summary p + ul {
    margin: 12px 0 0;
    padding-left: 20px;
    list-style: disc;
}

.home-summary li {
    font-size: 15.5px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 8px;
}

.home-summary li:last-child {
    margin-bottom: 0;
}

.home-summary li::marker {
    color: var(--gold);
}

.home-summary a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.home-summary a:hover {
    color: #fff;
}

.article-summary strong {
    color: #fff;
    font-weight: 700;
}

.article-body em {
    font-style: italic;
}

.article-body h2 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
    margin: 36px 0 14px;
    line-height: 1.3;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-soft);
}

.article-body h3 {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--navy);
    margin: 26px 0 8px;
    line-height: 1.35;
}

.article-body ul {
    margin-bottom: 20px;
    padding-left: 24px;
}

.article-body li {
    font-size: 17px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 8px;
}

.article-meta-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.article-page .article-meta-top .article-cat {
    margin-bottom: 0;
}

.article-highlight {
    margin: 32px 0 36px;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--gold);
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.article-highlight-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.article-highlight-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.article-highlight-value {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.2;
}

.article-highlight-sub {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
    margin-top: 2px;
}

@media (max-width: 720px) {
    .article-highlight {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px 24px;
    }
    .article-highlight-value {
        font-size: 22px;
    }
}

.article-download {
    margin: 56px 0 40px;
    padding: 36px 36px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--gold);
}

.article-download-eyebrow {
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px !important;
}

.article-download h3 {
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.3;
}

.article-download p {
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: var(--text-muted);
    margin-bottom: 22px !important;
}

/* Author byline a fondo articolo */
.article-byline {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 48px 0 40px;
    padding: 26px 0;
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.article-byline-photo {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.article-byline-text {
    display: flex;
    flex-direction: column;
}

.article-byline-name {
    font-family: var(--serif);
    font-size: 20px !important;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin: 0 !important;
}

.article-byline-role {
    font-size: 11px !important;
    color: var(--gold);
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin: 6px 0 4px !important;
}

.article-byline-meta {
    font-size: 13px !important;
    color: var(--text-muted) !important;
    font-style: italic;
    margin: 0 !important;
    line-height: 1.5 !important;
}

.article-byline-meta a {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 1px;
    font-style: normal;
    font-weight: 600;
    transition: color var(--transition), border-color var(--transition);
}

.article-byline-meta a:hover {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

@media (max-width: 540px) {
    .article-byline {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
}

@media (max-width: 540px) {
    .article-download {
        padding: 28px 22px;
    }
}

/* ============================================
   SCUOLA — Funnel docenti
   ============================================ */

.scuola-hero {
    position: relative;
    padding: 130px 0 80px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.scuola-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 30%, rgba(184, 146, 74, 0.10) 0, transparent 50%),
        radial-gradient(circle at 75% 70%, rgba(184, 146, 74, 0.08) 0, transparent 50%);
    pointer-events: none;
}

.scuola-hero .container {
    position: relative;
    max-width: 860px;
}

.scuola-hero .eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 24px;
}

.scuola-hero h1 {
    font-family: var(--serif);
    font-size: clamp(38px, 5.5vw, 60px);
    font-weight: 500;
    line-height: 1.15;
    margin-bottom: 28px;
}

.scuola-hero .lede {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 720px;
    margin: 0 auto 40px;
    font-weight: 300;
}

.scuola-intro {
    background: var(--bg);
    padding: 80px 0;
}

.scuola-intro-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 64px;
    align-items: start;
}

.scuola-intro h2 {
    font-family: var(--serif);
    font-size: clamp(28px, 3.8vw, 38px);
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 24px;
    line-height: 1.25;
}

.scuola-intro p {
    font-size: 16.5px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 18px;
}

.scuola-callout {
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--gold);
    padding: 32px 28px;
}

.scuola-callout h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
}

.scuola-callout p {
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
    margin-bottom: 20px;
}

.scuola-trust {
    background: var(--navy-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 36px 0;
}

.scuola-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.scuola-trust-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.10);
}

.scuola-trust-item:first-child {
    border-left: none;
}

.scuola-trust-item strong {
    display: block;
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--gold-light);
    line-height: 1.3;
    margin-bottom: 8px;
}

.scuola-trust-item span {
    display: block;
    font-size: 13.5px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 860px) {
    .scuola-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 20px;
    }
    .scuola-trust-item:nth-child(odd) {
        border-left: none;
    }
}

@media (max-width: 480px) {
    .scuola-trust-grid {
        grid-template-columns: 1fr;
    }
    .scuola-trust-item {
        border-left: none;
    }
}

.section-scuola-ricorsi {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.section-scuola-ricorsi .container {
    max-width: 900px;
}

.ricorso-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    background: #fff;
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--gold);
    padding: 38px 40px;
    margin-bottom: 26px;
    transition: box-shadow var(--transition);
}

.ricorso-card:hover {
    box-shadow: 0 18px 40px -22px rgba(15, 31, 61, 0.25);
}

.ricorso-card:last-child {
    margin-bottom: 0;
}

.ricorso-card-num {
    font-family: var(--serif);
    font-size: 56px;
    font-weight: 500;
    font-style: italic;
    color: var(--gold);
    line-height: 1;
}

.ricorso-card-icon {
    color: var(--gold);
    line-height: 0;
}

.ricorso-card-icon svg {
    width: 46px;
    height: 46px;
}

.ricorso-card h3 {
    font-family: var(--serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.3;
}

.ricorso-lede {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    margin-bottom: 22px;
}

.ricorso-meta {
    margin: 0 0 20px;
}

.ricorso-meta dt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
    margin-top: 14px;
}

.ricorso-meta dt:first-child {
    margin-top: 0;
}

.ricorso-meta dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-muted);
}

.ricorso-meta dd strong {
    color: var(--navy);
    font-weight: 600;
}

.ricorso-cta {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
    margin-top: 6px;
}

.ricorso-provvedimento {
    display: block;
    margin: 22px 0 24px;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-alt) 100%);
    border-left: 3px solid var(--gold);
    text-decoration: none;
    transition: transform var(--transition), box-shadow var(--transition);
}

.ricorso-provvedimento:hover {
    transform: translateX(3px);
    box-shadow: 0 8px 18px -12px rgba(15, 31, 61, 0.25);
    color: inherit;
}

.ricorso-provvedimento-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 8px;
}

.ricorso-provvedimento-amount {
    display: block;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.3;
    margin-bottom: 4px;
}

.ricorso-provvedimento-court {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    transition: color var(--transition);
}

.ricorso-provvedimento:hover .ricorso-provvedimento-court {
    color: var(--gold);
}

.ricorso-provvedimenti-list {
    margin: 22px 0 24px;
    padding: 18px 22px;
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-alt) 100%);
    border-left: 3px solid var(--gold);
}

.ricorso-provvedimenti-title {
    font-size: 10px !important;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 12px !important;
}

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

.ricorso-provvedimenti-list li {
    border-top: 1px solid var(--border-soft);
}

.ricorso-provvedimenti-list li:first-child {
    border-top: none;
}

.ricorso-provvedimenti-list li a {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    text-decoration: none;
    transition: transform var(--transition);
}

.ricorso-provvedimenti-list li a:hover {
    transform: translateX(3px);
}

.ricorso-prov-amount {
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 600;
    color: var(--navy);
    flex-shrink: 0;
}

.ricorso-prov-court {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    text-align: right;
    transition: color var(--transition);
}

.ricorso-provvedimenti-list li a:hover .ricorso-prov-court {
    color: var(--gold);
}

@media (max-width: 600px) {
    .ricorso-provvedimenti-list li a {
        flex-direction: column;
        gap: 2px;
        align-items: flex-start;
    }
    .ricorso-prov-court {
        text-align: left;
    }
    .ricorso-prov-amount {
        font-size: 18px;
    }
}

.ricorso-cta:hover {
    color: var(--navy);
    border-bottom-color: var(--navy);
}

.section-scuola-sentenze {
    background: var(--bg);
}

.section-scuola-sentenze .container {
    max-width: 1040px;
}

.sentenze-intro {
    max-width: 720px;
    margin: 0 auto 48px;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
}

.sentenze-intro a {
    color: var(--gold);
    border-bottom: 1px solid currentColor;
}

.sentenze-intro a:hover {
    color: var(--navy);
}

.sentenze-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.sentenza-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px 26px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--gold);
    text-decoration: none;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.sentenza-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(15, 31, 61, 0.10);
}

.sentenza-card-thumb {
    display: block;
    margin: -28px -26px 8px;
    line-height: 0;
    border-bottom: 1px solid var(--border-soft);
    background: #fff;
}

.sentenza-card-thumb img {
    display: block;
    width: 100%;
    height: 158px;
    object-fit: cover;
    object-position: top center;
    transition: transform var(--transition);
}

.sentenza-card:hover .sentenza-card-thumb img {
    transform: scale(1.03);
}

.sentenza-card-tag {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.sentenza-card-amount {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 600;
    color: var(--navy);
    line-height: 1.1;
}

.sentenza-card-amount small {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
}

.sentenza-card-court {
    font-size: 13.5px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 4px;
}

.sentenza-card-more {
    margin-top: auto;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--navy);
    transition: color var(--transition);
}

.sentenza-card:hover .sentenza-card-more {
    color: var(--gold);
}

.sentenze-cta {
    margin-top: 44px;
}

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

@media (max-width: 560px) {
    .sentenze-grid {
        grid-template-columns: 1fr;
    }
    .sentenza-card-amount {
        font-size: 27px;
    }
}

.section-scuola-perche {
    background: var(--bg);
}

.perche-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 50px;
}

.perche-item {
    padding: 28px;
    border-left: 2px solid var(--gold);
}

.perche-item h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.3;
}

.perche-item p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.75;
    margin: 0;
}

.section-scuola-verifica {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-scuola-verifica::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(184, 146, 74, 0.08) 0, transparent 60%);
    pointer-events: none;
}

.section-scuola-verifica .container {
    position: relative;
    max-width: 760px;
}

.section-scuola-verifica .section-eyebrow {
    color: var(--gold-light);
}

.section-scuola-verifica h2 {
    color: #fff;
}

.section-scuola-verifica h2.centered::after {
    background: var(--gold);
}

.section-scuola-verifica .verifica-lede {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.verifica-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.verifica-cta .btn-primary {
    background: #25D366;
    border-color: #25D366;
}

.verifica-cta .btn-primary:hover {
    background: #1ebe5d;
    border-color: #1ebe5d;
}

.verifica-cta .btn-secondary-dark {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.verifica-cta .btn-secondary-dark:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: #fff;
    color: #fff;
}

.verifica-or {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.1em;
    font-style: italic;
}

.section-scuola-verifica .verifica-note {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.02em;
    margin: 0;
}

.verifica-personal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    margin: 30px auto 36px;
    padding: 24px 28px;
    max-width: 580px;
    background: rgba(255, 255, 255, 0.04);
    border-left: 2px solid var(--gold);
    text-align: left;
}

.verifica-personal-photo {
    width: 86px;
    height: 104px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(184, 146, 74, 0.5);
}

.verifica-personal-text {
    color: #fff;
}

.section-scuola-verifica .verifica-personal-quote {
    font-family: var(--serif);
    font-size: 17px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.5;
    margin: 0 0 10px !important;
}

.section-scuola-verifica .verifica-personal-signature {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin: 0 !important;
}

@media (max-width: 540px) {
    .verifica-personal {
        flex-direction: column;
        text-align: center;
        padding: 22px;
    }
}

.section-scuola-faq {
    background: var(--bg-soft);
}

@media (max-width: 900px) {
    .scuola-intro-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .perche-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 540px) {
    .scuola-hero {
        padding: 100px 0 60px;
    }
    .ricorso-card {
        grid-template-columns: 1fr;
        padding: 28px 24px;
        gap: 14px;
    }
    .ricorso-card-num {
        font-size: 42px;
    }
    .ricorso-card-icon svg {
        width: 38px;
        height: 38px;
    }
    .verifica-cta {
        flex-direction: column;
    }
    .verifica-or {
        order: 1;
    }
}

/* ============================================
   LEGAL PAGE (Privacy)
   ============================================ */

.legal-page {
    padding: 80px 0 100px;
    background: var(--bg);
}

.legal-page .container {
    max-width: 820px;
}

.legal-page h1 {
    font-family: var(--serif);
    font-size: clamp(32px, 4.5vw, 46px);
    font-weight: 500;
    color: var(--navy);
    line-height: 1.15;
    margin-bottom: 12px;
}

.legal-page .legal-meta {
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 50px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border-soft);
}

.legal-page h2 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin: 36px 0 14px;
    line-height: 1.3;
}

.legal-page p,
.legal-page li {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text);
    margin-bottom: 14px;
}

.legal-page ul {
    padding-left: 24px;
    margin-bottom: 18px;
}

.legal-page li {
    margin-bottom: 8px;
}

.legal-page a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 3px;
}

.legal-page a:hover {
    color: var(--gold);
}

.footer-links {
    margin-top: 6px !important;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
}

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

/* ============================================
   404 ERROR PAGE
   ============================================ */

.error-page {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    background: var(--bg-soft);
    text-align: center;
}

.error-page .container {
    max-width: 640px;
}

.error-code {
    font-family: var(--serif);
    font-size: clamp(96px, 16vw, 160px);
    font-weight: 500;
    line-height: 1;
    color: var(--gold);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}

.error-page h1 {
    font-family: var(--serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 20px;
    line-height: 1.2;
}

.error-lede {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 36px;
}

.error-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-secondary-dark {
    background: transparent;
    color: var(--navy);
    border: 1px solid var(--navy);
}

.btn-secondary-dark:hover {
    background: var(--navy);
    color: #fff;
}

/* ============================================
   FAQ
   ============================================ */

.section-faq {
    background: var(--bg-soft);
    border-top: 1px solid var(--border-soft);
    border-bottom: 1px solid var(--border-soft);
}

.faq-list {
    max-width: 820px;
    margin: 50px auto 0;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--border-soft);
    margin-bottom: 12px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item[open] {
    border-color: var(--gold);
    box-shadow: 0 8px 24px -16px rgba(15, 31, 61, 0.2);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 22px 26px;
    font-family: var(--serif);
    font-size: 19px;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.4;
    position: relative;
    padding-right: 60px;
    transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: "";
    position: absolute;
    right: 26px;
    top: 50%;
    width: 12px;
    height: 12px;
    border-right: 2px solid var(--gold);
    border-bottom: 2px solid var(--gold);
    transform: translateY(-75%) rotate(45deg);
    transition: transform var(--transition);
}

.faq-item[open] summary::after {
    transform: translateY(-25%) rotate(-135deg);
}

.faq-item summary:hover {
    color: var(--gold);
}

.faq-answer {
    padding: 0 26px 26px;
    border-top: 1px solid var(--border-soft);
    margin-top: -1px;
}

.faq-answer p {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text);
    margin: 18px 0 0;
}

.faq-answer ul {
    font-size: 15.5px;
    line-height: 1.75;
    color: var(--text);
    margin: 12px 0 0;
    padding-left: 22px;
}

.faq-answer ul li {
    margin-top: 4px;
}

@media (max-width: 540px) {
    .faq-item summary {
        font-size: 16px;
        padding: 18px 22px;
        padding-right: 52px;
    }
    .faq-item summary::after {
        right: 22px;
    }
    .faq-answer {
        padding: 0 22px 22px;
    }
}

/* ============================================
   COME LAVORIAMO (metodo)
   ============================================ */

.section-metodo {
    background: var(--bg);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: 50px;
    position: relative;
}

.steps-grid::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 14%;
    right: 14%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border) 12%, var(--border) 88%, transparent);
    z-index: 0;
}

.step-item {
    text-align: center;
    padding: 0 8px;
    position: relative;
    z-index: 1;
}

.step-number {
    display: inline-block;
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 500;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 24px;
    padding: 16px 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 50%;
    min-width: 64px;
    min-height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.02em;
    transition: all var(--transition);
}

.step-item:hover .step-number {
    border-color: var(--gold);
    color: var(--navy);
    background: var(--gold-light);
}

.step-item h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 14px;
    line-height: 1.3;
}

.step-item p {
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 24px;
    }
    .steps-grid::before {
        display: none;
    }
}

@media (max-width: 540px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }
}

/* ============================================
   CONTACT FORM
   ============================================ */

.contact-form-wrapper {
    margin-top: 64px;
    padding: 48px 44px;
    background: var(--bg-soft);
    border: 1px solid var(--border-soft);
    border-top: 3px solid var(--gold);
}

.contact-form-wrapper h3 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 10px;
}

.contact-form-lede {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.form-field {
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
}

.form-grid .form-field {
    margin-bottom: 0;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-field label span[aria-hidden="true"] {
    color: var(--gold);
    margin-left: 2px;
}

.form-field input,
.form-field textarea {
    font-family: var(--sans);
    font-size: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    transition: border-color var(--transition), box-shadow var(--transition);
    border-radius: 2px;
    width: 100%;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(184, 146, 74, 0.15);
}

.form-field textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
    font-family: var(--sans);
}

.form-checkbox {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    margin-top: 8px;
    margin-bottom: 22px;
}

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

.form-checkbox label {
    margin-bottom: 0;
    font-size: 14px;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.55;
    cursor: pointer;
}

.form-checkbox label a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
    text-underline-offset: 2px;
}

.form-checkbox label a:hover {
    color: var(--gold);
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.form-actions .btn {
    cursor: pointer;
    font-family: var(--sans);
    border: 1px solid var(--gold);
}

.form-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.form-required-note {
    font-size: 12px;
    color: var(--text-muted);
    font-style: italic;
    margin: 0;
}

.form-feedback {
    margin-top: 22px;
    padding: 0;
    font-size: 14px;
    line-height: 1.55;
}

.form-feedback.is-success {
    padding: 14px 18px;
    background: #e8f5e9;
    border-left: 3px solid #2e7d32;
    color: #1b5e20;
}

.form-feedback.is-error {
    padding: 14px 18px;
    background: #fef5f3;
    border-left: 3px solid #c62828;
    color: #8e1f1f;
}

@media (max-width: 768px) {
    .contact-form-wrapper {
        padding: 32px 24px;
        margin-top: 48px;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   GOOGLE MAP
   ============================================ */

.map-wrapper {
    margin-top: 60px;
    border: 1px solid var(--border-soft);
    overflow: hidden;
    box-shadow: 0 8px 24px -16px rgba(15, 31, 61, 0.2);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 380px;
    border: 0;
    filter: grayscale(0.15) contrast(1.02);
}

.map-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    height: 380px;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-soft) 100%);
    color: var(--navy);
    cursor: pointer;
    padding: 32px 24px;
    gap: 16px;
    transition: background var(--transition);
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(184, 146, 74, 0.07) 0, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(15, 31, 61, 0.05) 0, transparent 50%);
    pointer-events: none;
}

.map-placeholder:hover,
.map-placeholder:focus-visible {
    background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg-alt) 100%);
}

.map-placeholder > * {
    position: relative;
    z-index: 1;
}

.map-pin {
    width: 46px;
    height: 46px;
    color: var(--gold);
}

.map-placeholder-address {
    font-family: var(--serif);
    font-size: 18px;
    color: var(--navy);
    line-height: 1.5;
    margin: 0;
    max-width: 380px;
}

.map-placeholder-address strong {
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.map-load-btn {
    display: inline-block;
    padding: 11px 24px;
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    transition: background var(--transition);
}

.map-placeholder:hover .map-load-btn,
.map-placeholder:focus-visible .map-load-btn {
    background: var(--gold);
}

.map-placeholder-note {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    max-width: 400px;
}

.map-placeholder-note a {
    color: var(--navy);
    text-decoration: underline;
    text-decoration-color: var(--gold);
}

@media (max-width: 540px) {
    .map-placeholder {
        height: 320px;
        padding: 24px 18px;
        gap: 12px;
    }
    .map-pin {
        width: 38px;
        height: 38px;
    }
    .map-placeholder-address {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .map-wrapper iframe {
        height: 280px;
    }
    .map-wrapper {
        margin-top: 40px;
    }
}

/* ============================================
   FLOATING BUTTONS (WhatsApp + Torna su)
   ============================================ */

.float-whatsapp,
.float-call,
.float-top {
    position: fixed;
    right: 24px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.3);
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    cursor: pointer;
}

.float-whatsapp {
    bottom: 24px;
    background: #25D366;
    color: #fff;
    border: none;
}

.float-whatsapp:hover {
    background: #1ebe5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.5);
}

.float-whatsapp svg {
    width: 28px;
    height: 28px;
}

/* Phone-call shortcut — mobile only (hidden by default on larger viewports).
   Stacked just above the WhatsApp button. */
.float-call {
    display: none;
    bottom: 92px;
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy-light);
    text-decoration: none;
}

.float-call:hover {
    background: var(--navy-light);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -8px rgba(15, 31, 61, 0.5);
}

.float-call svg {
    width: 26px;
    height: 26px;
}

.float-top {
    bottom: 92px;
    background: var(--navy);
    color: #fff;
    border: 1px solid var(--navy-light);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.float-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.float-top:hover {
    background: var(--navy-light);
    transform: translateY(-2px);
}

.float-top svg {
    width: 22px;
    height: 22px;
}

/* Mobile/tablet: show the call shortcut and stack the three buttons vertically.
   The call button sits above WhatsApp, the back-to-top button above the call. */
@media (max-width: 768px) {
    .float-call {
        display: flex;
    }
    .float-top {
        bottom: 160px;
    }
}

@media (max-width: 540px) {
    .float-whatsapp,
    .float-call,
    .float-top {
        right: 16px;
        width: 48px;
        height: 48px;
    }
    .float-whatsapp {
        bottom: 16px;
    }
    .float-call {
        bottom: 76px;
    }
    .float-top {
        bottom: 136px;
    }
}

/* ============================================
   SCROLL-TRIGGERED FADE-IN
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.aree-grid .area-card.reveal:nth-child(2).is-visible { transition-delay: 0.08s; }
.aree-grid .area-card.reveal:nth-child(3).is-visible { transition-delay: 0.16s; }
.aree-grid .area-card.reveal:nth-child(4).is-visible { transition-delay: 0.24s; }
.aree-grid .area-card.reveal:nth-child(5).is-visible { transition-delay: 0.04s; }
.aree-grid .area-card.reveal:nth-child(6).is-visible { transition-delay: 0.12s; }
.aree-grid .area-card.reveal:nth-child(7).is-visible { transition-delay: 0.20s; }

.values li.reveal:nth-child(2).is-visible { transition-delay: 0.10s; }
.values li.reveal:nth-child(3).is-visible { transition-delay: 0.20s; }

.section-professionisti .prof-card.reveal:last-of-type.is-visible { transition-delay: 0.12s; }

.numeri-grid .numero-item.reveal:nth-child(2).is-visible { transition-delay: 0.08s; }
.numeri-grid .numero-item.reveal:nth-child(3).is-visible { transition-delay: 0.16s; }
.numeri-grid .numero-item.reveal:nth-child(4).is-visible { transition-delay: 0.24s; }

.steps-grid .step-item.reveal:nth-child(2).is-visible { transition-delay: 0.08s; }
.steps-grid .step-item.reveal:nth-child(3).is-visible { transition-delay: 0.16s; }
.steps-grid .step-item.reveal:nth-child(4).is-visible { transition-delay: 0.24s; }

.faq-list .faq-item.reveal:nth-child(2).is-visible { transition-delay: 0.06s; }
.faq-list .faq-item.reveal:nth-child(3).is-visible { transition-delay: 0.12s; }
.faq-list .faq-item.reveal:nth-child(4).is-visible { transition-delay: 0.18s; }
.faq-list .faq-item.reveal:nth-child(5).is-visible { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   FOOTER
   ============================================ */

/* ---- Navigazione footer (3 colonne) ---- */
.footer-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 32px;
}

.footer-nav-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 14px;
}

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

.footer-nav li {
    margin-bottom: 9px;
}

.footer-nav li:last-child {
    margin-bottom: 0;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    transition: color .15s ease;
}

.footer-nav a:hover,
.footer-nav a:focus {
    color: #fff;
    text-decoration: underline;
}

.site-footer {
    background: var(--navy-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 56px 0 32px;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 24px;
}

.footer-name {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
}

.footer-addr {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.footer-legal {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
    line-height: 1.6;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 520px;
}

.footer-meta {
    text-align: right;
}

.footer-meta p {
    margin-bottom: 8px;
}

.footer-meta p:last-child {
    margin-bottom: 0;
}

.footer-disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
    max-width: 460px;
    margin-left: auto;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .site-nav {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .two-col {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .aree-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero {
        padding: 80px 0 90px;
    }

    .section {
        padding: 70px 0;
    }

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

    .footer-inner {
        flex-direction: column;
    }

    .footer-meta {
        text-align: left;
    }

    .footer-disclaimer {
        margin-left: 0;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 110px 0 90px;
    }
    .hero-scroll {
        display: none;
    }
}

@media (max-width: 540px) {
    .brand-logo {
        height: 36px;
    }

    .brand-name-sm {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        max-width: 320px;
        margin: 0 auto;
    }

    .btn {
        text-align: center;
        font-size: 12px;
        padding: 13px 22px;
        letter-spacing: 0.1em;
        gap: 10px;
    }

    .btn-arrow {
        width: 14px;
        height: 14px;
    }

    .contatti-list {
        padding: 28px 24px;
    }

    .area-card {
        padding: 36px 28px;
    }
}

/* ============================================================
   Cookie banner (consenso GA4)
   ============================================================ */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 10000;
    max-width: 880px;
    margin: 0 auto;
    background: #fdfaf3;
    border: 1px solid #d8cfb8;
    border-top: 4px solid #0f1f3d;
    box-shadow: 0 12px 36px rgba(15, 31, 61, 0.18);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-family: 'Lato', system-ui, -apple-system, sans-serif;
}

.cookie-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cookie-banner__inner {
    position: relative;
    padding: 20px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cookie-banner__close {
    position: absolute;
    top: 6px;
    right: 10px;
    width: 32px;
    height: 32px;
    background: transparent;
    border: 0;
    font-size: 22px;
    line-height: 1;
    color: #6b6354;
    cursor: pointer;
    padding: 0;
}

.cookie-banner__close:hover,
.cookie-banner__close:focus-visible {
    color: #0f1f3d;
    outline: none;
}

.cookie-banner__content {
    flex: 1 1 auto;
}

.cookie-banner__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 1.25rem;
    color: #0f1f3d;
    margin: 0 0 4px;
    font-weight: 600;
}

.cookie-banner__text {
    font-size: 0.92rem;
    line-height: 1.5;
    color: #2a2a2a;
    margin: 0;
}

.cookie-banner__text a {
    color: #0f1f3d;
    text-decoration: underline;
}

.cookie-banner__actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.cookie-banner__btn {
    font-family: 'Lato', system-ui, sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 2px;
    border: 2px solid #0f1f3d;
    cursor: pointer;
    min-width: 130px;
    transition: background 0.2s ease, color 0.2s ease;
}

.cookie-banner__btn--reject {
    background: transparent;
    color: #0f1f3d;
}

.cookie-banner__btn--reject:hover,
.cookie-banner__btn--reject:focus-visible {
    background: #0f1f3d;
    color: #fff;
    outline: none;
}

.cookie-banner__btn--accept {
    background: #0f1f3d;
    color: #fff;
}

.cookie-banner__btn--accept:hover,
.cookie-banner__btn--accept:focus-visible {
    background: #1a2f50;
    outline: none;
}

@media (max-width: 540px) {
    .cookie-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
    .cookie-banner__inner {
        padding: 18px 18px 20px;
    }
    .cookie-banner__actions {
        flex-direction: column-reverse;
    }
    .cookie-banner__btn {
        width: 100%;
        min-width: 0;
    }
}

/* ============================================
   BARRA CTA MOBILE
   ============================================ */

.cta-bar { display: none; }

@media (max-width: 768px) {
    .cta-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 95;
        display: flex;
        background: var(--navy);
        border-top: 1px solid var(--navy-light);
        box-shadow: 0 -4px 16px -6px rgba(0, 0, 0, 0.35);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .cta-bar a,
    .cta-bar button {
        flex: 1 1 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-height: 56px;
        padding: 8px 4px;
        background: none;
        border: none;
        border-left: 1px solid rgba(255, 255, 255, 0.08);
        color: #fff;
        font-family: var(--sans);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-decoration: none;
        cursor: pointer;
    }
    .cta-bar > :first-child { border-left: none; }
    .cta-bar svg { width: 20px; height: 20px; }
    .cta-bar .cta-bar-wa svg { color: #25D366; }

    /* La barra rimpiazza i bottoni flottanti chiamata/WhatsApp su mobile */
    .float-call,
    .float-whatsapp { display: none !important; }
    .float-top { bottom: 80px; }
    body { padding-bottom: 56px; }
}

@media (max-width: 540px) {
    .float-top { bottom: 72px; }
}

/* ============================================
   Testi di lettura giustificati (globale)
   - Base a specificità 0 (:where): tocca solo la prosa
     senza allineamento esplicito; titoli, hero, lead
     centrati, occhielli, meta articolo restano com'erano.
   - Override mirati per i casi "prosa ma da non giustificare".
   ============================================ */
:where(main) :where(p, li, dd) {
    text-align: justify;
    text-justify: inter-word;
    -webkit-hyphens: auto;
    hyphens: auto;
}

/* Devono restare centrati */
main .section-lead,
main .lede,
main p.centered,
main .verifica-lede,
main .verifica-note,
main .map-placeholder-address,
main .map-placeholder-note {
    text-align: center;
}

/* Devono restare a bandiera (label, navigazione, meta, box brevi) */
main .eyebrow,
main .section-eyebrow,
main .scuola-jump,
main .cd-jump,
main .article-meta,
main .article-meta-top,
main .article-byline,
main .breadcrumb,
main .cd-note p,
main .cd-step p,
main .ricorso-provvedimenti-list li {
    text-align: left;
    -webkit-hyphens: manual;
    hyphens: manual;
}

/* L'eyebrow dell'hero resta centrato (override della regola a bandiera sopra) */
main .scuola-hero .eyebrow,
main .hero .eyebrow,
main .articles-hero .section-eyebrow {
    text-align: center;
}

/* ============================================
   Callout interno alla landing pilastro nelle note a sentenza
   ============================================ */
.cta-internal-link{
    background:var(--bg-soft);
    border-left:3px solid var(--gold);
    border-radius:0 12px 12px 0;
    padding:18px 22px;
    margin:2.4rem 0;
    line-height:1.65;
}
.cta-internal-link p{margin:0;font-size:.98rem;text-align:left;-webkit-hyphens:manual;hyphens:manual}
.cta-internal-link a{color:var(--navy);text-decoration:underline;text-underline-offset:2px}
.cta-internal-link a:hover{color:var(--gold)}

/* Variante hero per mobile (LCP): il file grande resta ai viewport larghi */
@media (max-width: 768px) {
    .hero-bg {
        background-image: url('hero-mobile.webp');
    }
}

@media (max-width: 600px) {
    .footer-nav {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}
