:root {
    --blue: #1a4b8c;
    --blue-dark: #133762;
    --blue-soft: #e8eff8;
    --orange: #e8740a;
    --orange-dark: #c75e00;
    --orange-soft: #fdf0e2;
    --teal: #0d9488;
    --teal-soft: #e0f5f3;
    --green: #16a34a;
    --green-soft: #e3f5e8;
    --bg: #faf8f5;
    --bg-2: #f3efe8;
    --ink: #14213d;
    --ink-soft: #4a5468;
    --line: #e6e2d8;
    --radius: 18px;
    --radius-lg: 28px;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; scroll-padding-top: 76px; }
  body {
    font-family: 'Manrope', system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    line-height: 1.55;
    font-size: 16px;
  }

  /* ============ NAV ============ */
  .nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 248, 245, 0.85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(20, 33, 61, 0.06);
  }
  .nav-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
  }
  .logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    line-height: 1;
  }
  .logo svg {
    display: block;
    height: 48px;
    width: auto;
  }
  /* Color classes for the bundled NextOn SVG */
  .logo svg .st0 { fill: var(--blue); }
  .logo svg .st1 { fill: var(--orange); }
  .logo svg .st2 { fill: var(--bg); }
  footer .logo svg .st0 { fill: white; }
  footer .logo svg .st2 { fill: var(--ink); }
  .nav-menu {
    display: flex;
    gap: 32px;
    list-style: none;
  }
  .nav-menu a {
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color .15s;
  }
  .nav-menu a:hover { color: var(--blue); }

  /* dropdown "Entra nella rete" */
  .nav-dropdown { position: relative; }
  .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
  }
  .nav-chevron { font-size: 15px; transition: transform .2s; }
  .nav-dropdown:hover .nav-chevron,
  .nav-dropdown.open .nav-chevron { transform: rotate(180deg); }
  .nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 200px;
    list-style: none;
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(20,33,61,0.13);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
    z-index: 120;
  }
  .nav-dropdown-menu::before {
    content: "";
    position: absolute;
    top: -16px; left: 0; right: 0;
    height: 16px;
  }
  .nav-dropdown:hover .nav-dropdown-menu,
  .nav-dropdown.open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }
  .nav-dropdown-menu a {
    display: block;
    padding: 9px 13px;
    border-radius: 9px;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--ink);
    transition: background .14s, color .14s;
  }
  .nav-dropdown-menu a:hover { background: var(--blue-soft); color: var(--blue); }
  .nav-cta {
    background: var(--orange);
    color: white;
    padding: 11px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background .15s, transform .15s;
    border: none;
    cursor: pointer;
  }
  .nav-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }
  .hamburger { display: none; background: none; border: 0; font-size: 28px; color: var(--ink); cursor: pointer; }

  @media (max-width: 880px) {
    .nav-menu { display: none; }
    .hamburger { display: block; }
  }

  /* ============ SHARED ============ */
  .container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 28px;
  }
  .section {
    padding: 96px 0;
  }
  .section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: white;
    border: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
  .h-display {
    font-family: 'Manrope', sans-serif;
    font-weight: 800;
    font-size: clamp(40px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: var(--ink);
  }
  .h-display .accent {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--orange);
  }
  .h-section {
    font-weight: 800;
    font-size: clamp(32px, 4.5vw, 56px);
    line-height: 1.02;
    letter-spacing: -0.025em;
  }
  .h-section .accent {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--orange);
  }
  .lead {
    font-size: 19px;
    color: var(--ink-soft);
    max-width: 620px;
    line-height: 1.55;
  }
  .btn-primary {
    background: var(--orange);
    color: white;
    padding: 16px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background .15s, transform .15s;
    border: none;
    cursor: pointer;
  }
  .btn-primary:hover { background: var(--orange-dark); transform: translateY(-1px); }
  .btn-primary i { font-size: 20px; }
  .btn-ghost {
    color: var(--ink);
    padding: 16px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--ink);
    background: transparent;
    cursor: pointer;
    transition: background .15s, color .15s;
  }
  .btn-ghost:hover { background: var(--ink); color: white; }

  /* ============ HOMEPAGE — HERO ============ */
  .hero {
    padding: 64px 0 80px;
    background:
      radial-gradient(ellipse 80% 60% at 90% 10%, rgba(232, 116, 10, 0.08), transparent 60%),
      radial-gradient(ellipse 60% 80% at 10% 90%, rgba(26, 75, 140, 0.08), transparent 60%);
  }
  .hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 56px;
    align-items: center;
  }
  @media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  }
  .hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 28px;
  }
  .hero-eyebrow .pulse {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
    position: relative;
  }
  .hero-eyebrow .pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--green);
    animation: pulse 2s infinite;
    opacity: 0;
  }
  @keyframes pulse {
    0% { opacity: 0.8; transform: scale(0.8); }
    100% { opacity: 0; transform: scale(1.6); }
  }
  .hero-subtitle {
    margin-top: 28px;
    font-size: 21px;
    color: var(--ink-soft);
    max-width: 540px;
    line-height: 1.5;
  }
  .hero-ctas {
    margin-top: 40px;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
  }
  .hero-meta {
    margin-top: 56px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--ink-soft);
    font-size: 14px;
  }
  .partner-stack {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .partner-badge {
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--line);
    background: white;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--ink);
    text-transform: uppercase;
  }
  .hero-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #1a4b8c, #2563a8);
  }
  .hero-visual img {
    width: 100%; height: 100%;
    object-fit: cover;
    mix-blend-mode: luminosity;
    opacity: 0.85;
  }
  .hero-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(26, 75, 140, 0.75));
  }
  .hero-visual-card {
    position: absolute;
    left: 20px; right: 20px; bottom: 20px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    padding: 18px 20px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .hero-visual-card .age {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 36px;
    color: var(--orange);
    font-weight: 500;
    line-height: 1;
  }
  .hero-visual-card .who { font-weight: 700; font-size: 16px; }
  .hero-visual-card .what { color: var(--ink-soft); font-size: 13px; line-height: 1.3; }

  .hero-tag-float {
    position: absolute;
    background: white;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 8px 24px rgba(20, 33, 61, 0.1);
  }
  .hero-tag-float i { color: var(--orange); font-size: 18px; }
  .hero-tag-1 { top: 20px; left: 20px; }
  .hero-tag-2 { top: 20px; right: 20px; }
  @media (max-width: 980px) {
    .hero-tag-1, .hero-tag-2 { display: none; }
  }

  /* ============ 4 AREE — CARDS ============ */
  .areas {
    padding: 96px 0;
  }
  .areas-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 48px;
  }
  @media (max-width: 760px) {
    .areas-head { flex-direction: column; align-items: flex-start; }
  }
  .areas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
  @media (max-width: 1100px) { .areas-grid { grid-template-columns: repeat(2, 1fr); } }
  @media (max-width: 560px) { .areas-grid { grid-template-columns: 1fr; } }
  .area-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
  }
  .area-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(20,33,61,0.08);
    border-color: transparent;
  }
  .area-card .ribbon {
    height: 6px;
    width: 100%;
  }
  .area-card .img {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  .area-card .img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.45));
  }
  .area-card .img .icon-bubble {
    position: absolute;
    top: 14px; left: 14px;
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.96);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 2;
  }
  .area-card .img .step {
    position: absolute;
    top: 14px; right: 14px;
    font-size: 13px;
    font-weight: 800;
    color: white;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 4px;
    z-index: 2;
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
  }
  .area-card .body {
    padding: 24px 22px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
  }
  .area-card h3 {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
  }
  .area-card p {
    color: var(--ink-soft);
    font-size: 15px;
    flex: 1;
    margin-bottom: 18px;
  }
  .area-card .read {
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .area-card.area-orientamento .read,
  .area-card.area-orientamento .icon-bubble i { color: var(--blue); }
  .area-card.area-orientamento .ribbon,
  .area-card.area-orientamento .step { background: var(--blue); }
  .area-card.area-laboratori .read,
  .area-card.area-laboratori .icon-bubble i { color: var(--teal); }
  .area-card.area-laboratori .ribbon,
  .area-card.area-laboratori .step { background: var(--teal); }
  .area-card.area-formazione .read,
  .area-card.area-formazione .icon-bubble i { color: var(--orange); }
  .area-card.area-formazione .ribbon,
  .area-card.area-formazione .step { background: var(--orange); }
  .area-card.area-lavoro .read,
  .area-card.area-lavoro .icon-bubble i { color: var(--green); }
  .area-card.area-lavoro .ribbon,
  .area-card.area-lavoro .step { background: var(--green); }

  /* ============ VIDEO ============ */
  .video-section {
    padding: 64px 0 96px;
  }
  .video-wrap {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(135deg, #1a4b8c, #1e293b);
    cursor: pointer;
  }
  .video-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.65;
  }
  .video-wrap::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1), rgba(0,0,0,0.5));
  }
  .video-play {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 88px; height: 88px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    z-index: 2;
    transition: transform .2s;
    box-shadow: 0 10px 40px rgba(232,116,10,0.5);
  }
  .video-wrap:hover .video-play { transform: translate(-50%, -50%) scale(1.08); }
  .video-caption {
    position: absolute;
    bottom: 24px; left: 28px; right: 28px;
    color: white;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
  }
  .video-caption h4 {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    letter-spacing: -0.02em;
  }
  .video-caption .dur {
    font-size: 13px;
    font-weight: 600;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(6px);
  }

  /* ============ NUMERI CHIAVE ============ */
  .numbers {
    padding: 96px 0;
    background: var(--ink);
    color: white;
  }
  .numbers .h-section { color: white; max-width: 620px; }
  .numbers .h-section .accent { color: var(--orange); }
  .numbers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-top: 64px;
  }
  @media (max-width: 880px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }
  .num-cell {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 28px;
  }
  .num-cell .big {
    font-size: clamp(56px, 7vw, 96px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    color: white;
  }
  .num-cell .big .unit {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    font-size: 0.45em;
    color: var(--orange);
    margin-left: 4px;
  }
  .num-cell .label {
    margin-top: 16px;
    font-size: 15px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
  }
  .num-cell .label strong { color: white; font-weight: 700; }
  .counter-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--orange);
  }
  .counter-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    box-shadow: 0 0 0 0 rgba(232,116,10,0.5);
    animation: counter-pulse 1.8s ease-out infinite;
  }
  @keyframes counter-pulse {
    0% { box-shadow: 0 0 0 0 rgba(232,116,10,0.55); }
    70% { box-shadow: 0 0 0 9px rgba(232,116,10,0); }
    100% { box-shadow: 0 0 0 0 rgba(232,116,10,0); }
  }
  @media (prefers-reduced-motion: reduce) {
    .counter-dot { animation: none; }
  }

  /* ============ PAGE DIVIDER ============ */
  .page-divider {
    background: var(--bg-2);
    padding: 28px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .page-divider .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
  }
  .breadcrumb {
    font-size: 13px;
    color: var(--ink-soft);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .breadcrumb .dot {
    width: 6px; height: 6px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.4;
  }
  .breadcrumb .current { color: var(--ink); opacity: 1; }
  .url-pill {
    font-family: ui-monospace, SF Mono, Menlo, monospace;
    font-size: 12px;
    color: var(--ink-soft);
    background: white;
    border: 1px solid var(--line);
    padding: 4px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .url-pill i { font-size: 14px; }

  /* ============ AREA PAGE TEMPLATE ============ */
  .area-page {
    padding: 80px 0;
    position: relative;
  }
  .area-page-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
  }
  @media (max-width: 980px) {
    .area-page-grid { grid-template-columns: 1fr; }
    .area-page-grid > .area-video { order: 2; }
    .area-page-grid > div:not(.area-video) { order: 1; }
  }
  .area-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
    margin-bottom: 24px;
  }
  .area-label .num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    background: rgba(255,255,255,0.25);
    width: 24px; height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
  }
  .area-page h2 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 24px;
  }
  .area-page h2 .accent {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
  }
  .area-page p.desc {
    font-size: 18px;
    color: var(--ink-soft);
    line-height: 1.55;
    margin-bottom: 28px;
  }
  .area-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 36px;
  }
  .area-feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
  }
  .area-feature .ico {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
  }
  .area-feature h4 { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
  .area-feature p { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
  .area-quote {
    margin-top: 32px;
    padding-left: 20px;
    border-left: 3px solid;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
  }
  .area-quote .who {
    display: block;
    margin-top: 8px;
    font-family: 'Manrope', sans-serif;
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .area-video {
    aspect-ratio: 4/5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    background: #1a4b8c;
  }
  .area-video img { width: 100%; height: 100%; object-fit: cover; }
  .area-video .video-play { width: 72px; height: 72px; font-size: 30px; }
  .area-video::after { content: none; }
  .area-video-tag {
    position: absolute;
    bottom: 20px; left: 20px;
    color: white;
    z-index: 2;
  }
  .area-video-tag .small { font-size: 12px; opacity: 0.85; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
  .area-video-tag h5 { font-size: 18px; font-weight: 700; margin-top: 4px; }
  /* color modifiers */
  .area-blue { background: var(--blue-soft); }
  .area-blue .area-label { background: var(--blue); }
  .area-blue h2 .accent { color: var(--blue); }
  .area-blue .area-feature .ico { background: white; color: var(--blue); }
  .area-blue .area-quote { border-color: var(--blue); color: var(--blue-dark); }
  .area-blue .btn-area { background: var(--blue); color: white; }

  .area-teal { background: var(--teal-soft); }
  .area-teal .area-label { background: var(--teal); }
  .area-teal h2 .accent { color: var(--teal); }
  .area-teal .area-feature .ico { background: white; color: var(--teal); }
  .area-teal .area-quote { border-color: var(--teal); color: #0a6e65; }
  .area-teal .btn-area { background: var(--teal); color: white; }

  .area-orange { background: var(--orange-soft); }
  .area-orange .area-label { background: var(--orange); }
  .area-orange h2 .accent { color: var(--orange); }
  .area-orange .area-feature .ico { background: white; color: var(--orange); }
  .area-orange .area-quote { border-color: var(--orange); color: var(--orange-dark); }
  .area-orange .btn-area { background: var(--orange); color: white; }

  .area-green { background: var(--green-soft); }
  .area-green .area-label { background: var(--green); }
  .area-green h2 .accent { color: var(--green); }
  .area-green .area-feature .ico { background: white; color: var(--green); }
  .area-green .area-quote { border-color: var(--green); color: #0c7c39; }
  .area-green .btn-area { background: var(--green); color: white; }

  .btn-area {
    padding: 14px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform .15s, opacity .15s;
  }
  .btn-area:hover { transform: translateY(-1px); opacity: 0.92; }

  /* ============ AZIENDE ============ */
  .companies {
    padding: 96px 0;
    background: white;
  }
  .companies-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
  }
  @media (max-width: 980px) { .companies-grid { grid-template-columns: 1fr; } }

  /* tab categorie interlocutore */
  .cat-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 40px;
  }
  @media (max-width: 760px) { .cat-tabs { grid-template-columns: 1fr; } }
  .cat-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    text-align: left;
    padding: 20px;
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, background .15s, transform .15s, box-shadow .15s;
  }
  .cat-tab:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20,33,61,0.06); }
  .cat-tab .cat-ico {
    width: 46px; height: 46px;
    border-radius: 12px;
    display: grid; place-items: center;
    background: white;
    border: 1px solid var(--line);
    font-size: 23px;
    color: var(--blue);
    transition: background .15s, color .15s, border-color .15s;
  }
  .cat-tab .cat-name { font-weight: 800; font-size: 16px; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
  .cat-tab .cat-meta { font-size: 12.5px; color: var(--ink-soft); line-height: 1.35; }
  .cat-tab.active { background: var(--blue); border-color: var(--blue); }
  .cat-tab.active .cat-name { color: white; }
  .cat-tab.active .cat-meta { color: rgba(255,255,255,0.72); }
  .cat-tab.active .cat-ico { background: var(--orange); border-color: var(--orange); color: white; }
  .cat-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

  .cat-panels { margin-top: 44px; }
  .cat-panel { display: none; }
  .cat-panel.active { display: block; }
  @media (prefers-reduced-motion: no-preference) {
    .cat-panel.active { animation: catFade .28s ease; }
  }
  @keyframes catFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .why-list {
    margin-top: 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .why-item {
    display: flex;
    gap: 16px;
    padding: 22px;
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--line);
  }
  .why-item .num {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-size: 32px;
    font-weight: 500;
    color: var(--orange);
    line-height: 1;
    flex-shrink: 0;
    width: 40px;
  }
  .why-item h4 { font-weight: 700; font-size: 17px; margin-bottom: 4px; }
  .why-item p { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
  .form-card {
    background: var(--blue);
    border-radius: var(--radius-lg);
    padding: 40px;
    color: white;
  }
  .form-card h3 {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
  }
  .form-card p {
    color: rgba(255,255,255,0.75);
    font-size: 15px;
    margin-bottom: 28px;
  }
  .form-row { margin-bottom: 16px; }
  .form-row label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.7);
    display: block;
    margin-bottom: 8px;
  }
  .form-row input, .form-row select, .form-row textarea {
    width: 100%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    color: white;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: border-color .15s, background .15s;
  }
  .form-row input::placeholder, .form-row textarea::placeholder {
    color: rgba(255,255,255,0.4);
  }
  .form-row input:focus, .form-row select:focus, .form-row textarea:focus {
    border-color: var(--orange);
    background: rgba(255,255,255,0.12);
  }
  .form-row textarea { resize: vertical; min-height: 90px; }
  .form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  @media (max-width: 520px) { .form-grid-2 { grid-template-columns: 1fr; } }
  .form-submit {
    margin-top: 8px;
    width: 100%;
    background: var(--orange);
    color: white;
    border: 0;
    padding: 16px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .15s;
  }
  .form-submit:hover { background: var(--orange-dark); }

  .partners-strip {
    margin-top: 96px;
    padding-top: 56px;
    border-top: 1px solid var(--line);
  }
  .partners-strip .label {
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 36px;
  }
  .partners-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 28px;
    align-items: center;
  }
  @media (max-width: 760px) { .partners-row { grid-template-columns: repeat(3, 1fr); } }
  .partner-logo {
    height: 64px;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: white;
  }
  .partner-logo svg {
    height: 32px;
    width: auto;
    display: block;
  }
  .partner-logo svg .st0 { fill: var(--blue); }
  .partner-logo svg .st1 { fill: var(--orange); }
  .partner-logo svg .st2 { fill: white; }

  /* ============ STORIE ============ */
  .stories {
    padding: 120px 0;
    background: var(--bg-2);
    position: relative;
    overflow: hidden;
  }
  .stories-center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
  }
  .stories-center .h-section { margin-bottom: 24px; }
  .stories-center p {
    font-size: 19px;
    color: var(--ink-soft);
    margin-bottom: 36px;
  }
  .stories-preview {
    margin-top: 96px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    opacity: 0.5;
  }
  @media (max-width: 880px) { .stories-preview { grid-template-columns: 1fr; } }
  .story-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
  }
  .story-card .img {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    background-color: var(--bg);
    position: relative;
  }
  .story-card .img .area-tag {
    position: absolute;
    top: 12px; left: 12px;
    background: white;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .story-card .body {
    padding: 20px;
  }
  .story-card .name {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 8px;
  }
  .story-card .name span { color: var(--ink-soft); font-weight: 500; }
  .story-card .excerpt {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.5;
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 400;
  }
  .stories-placeholder-overlay {
    position: absolute;
    inset: auto 0 0 0;
    top: 60%;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--bg-2) 75%);
  }
  .coming-soon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 28px;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  .coming-soon-pill .dot-orange {
    width: 8px; height: 8px;
    background: var(--orange);
    border-radius: 50%;
  }

  /* ============ CHI SIAMO ============ */
  .about {
    padding: 96px 0;
  }
  .about-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: end;
    margin-bottom: 72px;
  }
  @media (max-width: 880px) { .about-head { grid-template-columns: 1fr; } }
  .promoter-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 56px;
  }
  @media (max-width: 760px) { .promoter-grid { grid-template-columns: 1fr; } }
  .promoter-card {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
  }
  .promoter-logo {
    height: 56px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .promoter-mark {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
  }
  .promoter-text { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
  .promoter-text strong { color: var(--ink); display: block; font-size: 18px; font-weight: 800; margin-bottom: 2px; }
  .promoter-card .role {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
  }
  .promoter-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
  }
  .promoter-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; }

  .ecosystem {
    margin-top: 72px;
    padding: 48px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
  }
  .ecosystem h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 28px;
    letter-spacing: -0.02em;
  }
  .ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
  }
  @media (max-width: 880px) { .ecosystem-grid { grid-template-columns: repeat(2, 1fr); } }
  .eco-item {
    background: var(--bg);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
  }
  .eco-item i {
    font-size: 28px;
    color: var(--blue);
    display: block;
    margin-bottom: 10px;
  }
  .eco-item h4 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
  .eco-item p { font-size: 12px; color: var(--ink-soft); }

  .map-block {
    margin-top: 72px;
    background: var(--blue);
    color: white;
    border-radius: var(--radius-lg);
    padding: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    overflow: hidden;
    position: relative;
  }
  @media (max-width: 880px) { .map-block { grid-template-columns: 1fr; padding: 36px; } }
  .map-block h3 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 16px;
  }
  .map-block h3 .accent {
    font-family: 'Fraunces', serif;
    font-style: italic;
    font-weight: 500;
    color: var(--orange);
  }
  .map-block p {
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
  }
  .provinces { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .province-pin {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    padding: 14px 16px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .province-pin i { color: var(--orange); font-size: 22px; }
  .province-pin .name { font-weight: 700; font-size: 15px; }
  .province-pin .meta { font-size: 12px; color: rgba(255,255,255,0.6); }
  .map-svg {
    width: 100%;
    aspect-ratio: 1.1;
    position: relative;
  }
  .map-svg svg { width: 100%; height: 100%; }

  /* ============ CONTATTI ============ */
  .contacts {
    padding: 96px 0;
    background: white;
  }
  .contacts-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 56px;
    align-items: start;
  }
  @media (max-width: 980px) { .contacts-grid { grid-template-columns: 1fr; } }
  .contact-side h2 { margin-bottom: 16px; }
  .contact-side .lead { margin-bottom: 36px; }
  .contact-block {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
  }
  .contact-block:last-child { border-bottom: 0; }
  .contact-block .label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    margin-bottom: 6px;
  }
  .contact-block .value { font-weight: 700; font-size: 17px; }
  .contact-block .value a { color: var(--ink); text-decoration: none; }
  .contact-block .value a:hover { color: var(--orange); }
  .contact-block .sub { font-size: 14px; color: var(--ink-soft); margin-top: 4px; }
  .social-row {
    display: flex;
    gap: 10px;
    margin-top: 12px;
  }
  .social-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    text-decoration: none;
    transition: background .15s, color .15s;
    font-size: 20px;
  }
  .social-icon:hover { background: var(--ink); color: white; }

  .who-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 24px;
  }
  @media (max-width: 520px) { .who-cards { grid-template-columns: 1fr 1fr; } }
  .who-card {
    border: 1.5px solid var(--line);
    background: white;
    padding: 18px;
    border-radius: 14px;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-family: inherit;
  }
  .who-card i {
    width: 36px; height: 36px;
    background: var(--bg);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: var(--blue);
    font-size: 18px;
  }
  .who-card .who-label { font-weight: 700; font-size: 15px; }
  .who-card .who-sub { font-size: 12px; color: var(--ink-soft); }
  .who-card.active, .who-card:hover {
    border-color: var(--orange);
    background: var(--orange-soft);
  }
  .who-card.active i { background: var(--orange); color: white; }

  .contact-form-card {
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--line);
  }
  .contact-form-card .form-row label { color: var(--ink-soft); }
  .contact-form-card .form-row input,
  .contact-form-card .form-row select,
  .contact-form-card .form-row textarea {
    background: white;
    border: 1px solid var(--line);
    color: var(--ink);
  }
  .contact-form-card .form-row input::placeholder,
  .contact-form-card .form-row textarea::placeholder { color: #9ca3af; }
  .checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    color: var(--ink-soft);
    margin: 14px 0;
  }
  .checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--orange); }

  /* ============ FOOTER ============ */
  footer {
    background: var(--ink);
    color: white;
    padding: 80px 0 32px;
  }
  .footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 56px;
  }
  @media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
  footer .logo { margin-bottom: 16px; }
  footer .tagline { color: rgba(255,255,255,0.65); margin-bottom: 24px; max-width: 280px; }
  footer h5 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 18px;
  }
  footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
  footer ul a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 14px;
    transition: color .15s;
  }
  footer ul a:hover { color: var(--orange); }
  .footer-bottom {
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    color: rgba(255,255,255,0.5);
    font-size: 13px;
  }
  @media (max-width: 560px) { .footer-bottom { flex-direction: column; } }

  /* ===== UTIL ===== */
  .img-placeholder {
    width: 100%; height: 100%;
    background-image: repeating-linear-gradient(45deg, rgba(0,0,0,0.04) 0 6px, transparent 6px 14px);
    background-color: var(--bg-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: ui-monospace, monospace;
    font-size: 11px;
    color: var(--ink-soft);
    text-align: center;
    padding: 12px;
  }

  /* lazy reveal */
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
  .reveal.in { opacity: 1; transform: none; }

/* ============ WORDPRESS / NEXTON ADDITIONS ============ */
body.admin-bar .nav { top: 32px; }
@media (max-width: 782px) { body.admin-bar .nav { top: 46px; } }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
img { max-width: 100%; height: auto; }
.nav-menu a.is-active { color: var(--blue); }
.nav-dropdown-menu a.is-active { color: var(--blue); background: var(--blue-soft); }
.skip-link { position:absolute; left:-9999px; top:auto; width:1px; height:1px; overflow:hidden; }
.skip-link:focus { position:fixed; left:16px; top:16px; width:auto; height:auto; padding:10px 14px; background:#fff; color:var(--ink); z-index:9999; border-radius:8px; }

@media (max-width: 880px) {
  .nav { position: sticky; }
  .nav-inner { position: relative; }
  .nav-menu.is-open {
    display: flex;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    flex-direction: column;
    gap: 8px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 24px 60px rgba(20,33,61,0.16);
  }
  .nav-menu.is-open a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
  .nav-menu.is-open a:hover { background: var(--blue-soft); color: var(--blue); }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    min-width: 0;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: 0;
    padding: 4px 0 0 12px;
    display: none;
  }
  .nav-dropdown.open .nav-dropdown-menu,
  .nav-menu.is-open .nav-dropdown-menu { display: flex; }
  .nav-dropdown:hover .nav-dropdown-menu { transform: none; }
  .nav-dropdown-menu::before { display: none; }
  .nav-cta { display: none; }
}

.news-section { padding: 96px 0; background: white; }
.news-head { display:flex; align-items:flex-end; justify-content:space-between; gap:40px; margin-bottom:48px; }
.news-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap:20px; }
.news-card { background: var(--bg); border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; color:var(--ink); text-decoration:none; display:flex; flex-direction:column; transition: transform .2s, box-shadow .2s; }
.news-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,33,61,0.08); }
.news-card .img { aspect-ratio: 16/10; background: var(--bg-2); background-size:cover; background-position:center; }
.news-card .body { padding: 22px; }
.news-card .meta { font-size:12px; font-weight:700; color:var(--orange); text-transform:uppercase; letter-spacing:.08em; margin-bottom:10px; }
.news-card h3 { font-size:22px; line-height:1.15; letter-spacing:-.02em; margin-bottom:12px; }
.news-card p { color:var(--ink-soft); font-size:14px; }
.news-empty { padding: 26px; background: var(--bg); border:1px dashed var(--line); border-radius: var(--radius); color: var(--ink-soft); }
@media (max-width: 880px) { .news-head { flex-direction:column; align-items:flex-start; } .news-grid { grid-template-columns:1fr; } }

.archive-hero, .single-hero { padding: 72px 0; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.archive-grid { padding: 64px 0 96px; }
.single-content { padding: 64px 0 96px; }
.single-content .container { max-width: 860px; }
.single-content article { background:white; border:1px solid var(--line); border-radius:var(--radius-lg); padding: clamp(26px, 5vw, 56px); }
.single-content article p { margin: 0 0 1.25em; color: var(--ink-soft); }
.single-content article h2, .single-content article h3 { margin: 1.4em 0 .6em; line-height:1.15; }
.single-featured { margin: -20px 0 32px; border-radius: var(--radius); overflow:hidden; }
.single-featured img { width:100%; display:block; }

.wpcf7-form .form-grid-2 { margin-bottom: 0; }
.wpcf7-form p { margin: 0; }
.wpcf7 form .wpcf7-response-output { border-radius: 12px; margin: 16px 0 0; padding: 12px 14px; color: var(--ink); background: white; }
.form-card .wpcf7 form .wpcf7-response-output { color:white; background:rgba(255,255,255,.08); }
.wpcf7-not-valid-tip { color: #ffdfcf; font-size: 12px; margin-top: 5px; }
.contact-form-card .wpcf7-not-valid-tip { color: var(--orange-dark); }
.wpcf7 .form-submit, .wpcf7-submit.form-submit { width: 100%; }
.nexton-form-placeholder { font-size:12px; opacity:.8; margin-top:12px; }


/* ============ CONTACT FORM 7 INTEGRATION ============ */
.wpcf7 {
  width: 100%;
}
.wpcf7 form,
.wpcf7 p {
  margin: 0;
}
.wpcf7 .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}
.wpcf7 .wpcf7-form-control:not(.wpcf7-checkbox):not(.wpcf7-acceptance):not(.wpcf7-spinner),
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea {
  width: 100%;
}
.wpcf7 .wpcf7-not-valid-tip {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
}
.contact-form-card .wpcf7 .wpcf7-not-valid-tip,
.contact-form-card .wpcf7-response-output {
  color: var(--ink);
}
.form-card .wpcf7 .wpcf7-not-valid-tip,
.form-card .wpcf7-response-output {
  color: #fff;
}
.wpcf7-response-output {
  margin: 16px 0 0 !important;
  padding: 12px 14px !important;
  border-radius: 12px;
  font-size: 14px;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #dc2626 !important;
}
.wpcf7 form.sent .wpcf7-response-output {
  border-color: #16a34a !important;
}
.contact-form-card .checkbox-row .wpcf7-list-item,
.form-card .checkbox-row .wpcf7-list-item {
  margin: 0;
}
.contact-form-card .checkbox-row input[type="checkbox"],
.form-card .checkbox-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--orange);
}
.nexton-form-placeholder {
  margin-top: 16px;
  font-size: 12px;
  opacity: 0.8;
}


/* Adeguamento locale per la CTA hero su smartphone. */
@media (max-width: 600px) {
  .hero-grid > * { min-width: 0; }
  .hero-ctas .btn-primary {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }
}


@media (max-width: 600px) {
  .hero-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .partner-stack {
    max-width: 100%;
    flex-wrap: wrap;
  }
}


/* Allineamento e contrasto del consenso privacy nei form su fondo blu. */
.form-card .checkbox-row {
  align-items: flex-start;
  justify-content: flex-start;
  color: #fff;
}
.form-card .checkbox-row .wpcf7-form-control-wrap {
  display: block;
  width: auto;
  flex: 0 0 auto;
}
.form-card .checkbox-row > span:not(.wpcf7-form-control-wrap) {
  color: #fff;
  flex: 1 1 auto;
}
.form-card .checkbox-row .wpcf7-list-item {
  margin: 0;
}


/* Allineamento del consenso privacy nel modulo contatti chiaro. */
.contact-form-card .checkbox-row {
  align-items: flex-start;
  justify-content: flex-start;
}
.contact-form-card .checkbox-row .wpcf7-form-control-wrap {
  display: block;
  width: auto;
  flex: 0 0 auto;
}
.contact-form-card .checkbox-row > span:not(.wpcf7-form-control-wrap) {
  flex: 1 1 auto;
}
.contact-form-card .checkbox-row .wpcf7-list-item {
  margin: 0;
}


/* Aree formative: griglia 2 x 3 per allineare testo e immagine. */
#formazione .area-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
  row-gap: 16px;
}
@media (max-width: 600px) {
  #formazione .area-features {
    grid-template-columns: 1fr;
  }
}


/* Introduzione Entra nella rete a larghezza piena sopra i tre target. */
#aziende .cat-header {
  max-width: none !important;
}
#aziende .cat-header .lead {
  width: 100%;
  max-width: none;
}
/* Home hero: hierarchy and copy spacing */
.hero .h-display + .hero-eyebrow {
  margin-top: 28px;
  margin-bottom: 0;
}
.hero-subtitle {
  margin-top: 42px;
  line-height: 1.58;
}
.hero-subtitle p {
  margin: 0 0 24px;
}
.hero-subtitle p:last-child {
  margin-bottom: 0;
}
.hero-subtitle .hero-contact-copy {
  margin-top: 38px;
}
.hero-subtitle strong {
  font-weight: 700;
  color: var(--ink);
}
@media (max-width: 767px) {
  .hero .h-display + .hero-eyebrow {
    margin-top: 20px;
  }
  .hero-subtitle {
    margin-top: 30px;
    line-height: 1.55;
  }
  .hero-subtitle p {
    margin-bottom: 18px;
  }
  .hero-subtitle .hero-contact-copy {
    margin-top: 26px;
  }
}
/* Revisioni Sara - agosto 2026 */
.hero-contact-copy {
  position: relative;
  padding-top: 30px;
}
.hero-contact-copy::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 112px;
  height: 3px;
  border-radius: 999px;
  background: var(--blue);
}
.partner-badge {
  text-decoration: none;
}
.areas-head .lead strong,
.area-page .desc strong,
.network-lead strong {
  font-weight: 800;
  color: var(--ink);
}
.area-page .desc br {
  display: block;
  content: '';
  margin-top: 8px;
}
.network-lead p {
  margin: 0 0 16px;
}
.network-lead p:last-child {
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .hero-contact-copy {
    padding-top: 24px;
  }
  .hero-contact-copy::before {
    width: 88px;
  }
}
/* Network forms: readable native select menus */
.companies .form-card .form-row select {
  background-color: var(--blue);
  color: #fff;
  color-scheme: dark;
}
.companies .form-card .form-row select option {
  background-color: var(--blue);
  color: #fff;
}
.companies .form-card .form-row select option:checked {
  background-color: #2367bd;
  color: #fff;
}


/* NextOn: restore the desktop two-column contact layout. */
.contacts-grid {
  grid-auto-flow: row;
}
.contacts-grid > .contact-side {
  grid-column: 1;
  grid-row: 1;
}
.contacts-grid > .contact-form-card {
  grid-column: 2;
  grid-row: 1;
}
@media (max-width: 980px) {
  .contacts-grid > .contact-side,
  .contacts-grid > .contact-form-card {
    grid-column: 1;
    grid-row: auto;
  }
}


/* NextOn: render legal pages as direct readable content, without news cards. */
body.page .archive-grid .news-grid {
  display: block;
  max-width: 860px;
  margin: 0 auto;
}
body.page .archive-grid .entry-content {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.75;
}
body.page .archive-grid .entry-content p {
  margin: 0 0 1.25em;
}
body.page .archive-grid .entry-content h2,
body.page .archive-grid .entry-content h3 {
  color: var(--ink);
  line-height: 1.2;
  margin: 1.6em 0 .6em;
}
body.page .archive-grid .entry-content ul,
body.page .archive-grid .entry-content ol {
  margin: 0 0 1.25em 1.4em;
}
body.page .archive-grid .entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* NextOn: keep contact audience cards in a balanced 2x2 grid on desktop. */
.who-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: row;
}
.who-cards > .who-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.who-cards > .who-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.who-cards > .who-card:nth-child(3) { grid-column: 1; grid-row: 2; }
.who-cards > .who-card:nth-child(4) { grid-column: 2; grid-row: 2; }
@media (max-width: 700px) {
  .who-cards { grid-template-columns: 1fr; }
  .who-cards > .who-card {
    grid-column: 1;
    grid-row: auto;
  }
}

/* NextOn: align footer metadata and legal links on one clean desktop line. */
.footer-bottom {
  align-items: center;
  gap: 24px;
}
.footer-bottom > div:last-child {
  text-align: right;
  white-space: nowrap;
}
.footer-bottom a {
  color: inherit;
  text-decoration: none;
}
.footer-bottom a:hover {
  color: #fff;
  text-decoration: underline;
}
@media (max-width: 760px) {
  .footer-bottom {
    align-items: flex-start;
  }
  .footer-bottom > div:last-child {
    text-align: left;
    white-space: normal;
  }
}

/* NextOn: place a light shared illustration below the legal page hero. */
body.page .archive-grid .legal-page-visual {
  max-width: 860px;
  margin: 0 auto 42px;
  border-radius: 24px;
  overflow: hidden;
}
body.page .archive-grid .legal-page-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  opacity: .96;
}
body.page .archive-grid .legal-page-visual + p {
  margin-top: 0;
}


/* NextOn: remove the legacy duplicate legal-links row injected outside the footer. */
.nexton-legal-links {
  display: none !important;
}

/* NextOn: reduce the visual gap between the audience cards and the contact fields. */
.contact-form-card .who-cards {
  margin-bottom: 12px;
}

/* NextOn: balance the contact intro with a compact brand lockup. */
.contact-side::before {
  content: 'Next On';
  display: block;
  width: fit-content;
  margin: 0 0 24px;
  color: transparent;
  background: linear-gradient(90deg, var(--blue) 0 62%, var(--orange) 62% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}
@media (max-width: 980px) {
  .contact-side::before {
    margin-bottom: 20px;
  }
}


/* NextOn: use the legal illustration as the background of the policy hero. */
body.page .archive-hero {
  position: relative;
  overflow: hidden;
  min-height: 258px;
  background-color: #f8f0e3;
  background-image:
    linear-gradient(90deg, rgba(250,248,245,.86) 0%, rgba(250,248,245,.52) 48%, rgba(250,248,245,.16) 100%),
    url("https://next-on.it/wp-content/uploads/2026/09/legal-pages-hero-v1.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
body.page .archive-hero .container {
  position: relative;
  z-index: 1;
}
body.page .archive-grid .legal-page-visual {
  display: none;
}
@media (max-width: 760px) {
  body.page .archive-hero {
    min-height: 220px;
    background-position: center;
  }
}


/* NextOn: place the compact logo in the open space below the contact details. */
.contact-side::before {
  display: none;
}
.contact-side::after {
  content: 'Next On';
  display: block;
  width: fit-content;
  margin: 72px 0 0;
  color: transparent;
  background: linear-gradient(90deg, var(--blue) 0 62%, var(--orange) 62% 100%);
  -webkit-background-clip: text;
  background-clip: text;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1;
}
@media (max-width: 980px) {
  .contact-side::after {
    margin-top: 40px;
  }
}


/* NextOn: refine the contact section spacing and information column. */
.contact-side::before,
.contact-side::after {
  display: none !important;
  content: none !important;
}
.contact-side .lead {
  margin-bottom: 24px;
}
.contact-side > .contact-block:first-of-type {
  margin-top: 8px !important;
}
.contact-side .contact-block {
  position: relative;
  min-height: 52px;
  margin-bottom: 20px;
  padding: 0 0 20px 50px;
}
.contact-side .contact-block .label {
  display: block;
  min-height: 34px;
  padding-top: 7px;
}
.contact-side .contact-block .label::before {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: "tabler-icons";
  font-size: 18px;
  font-weight: 400;
}
.contact-side > .contact-block:first-of-type .label::before {
  content: "\eae8";
}
.contact-side > .contact-block:last-of-type .label::before {
  content: "\eae5";
  background: var(--orange-soft);
  color: var(--orange-dark);
}
.contact-side .contact-block .value {
  font-size: 16px;
  line-height: 1.45;
}
.contact-side > .contact-block:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}
.contact-form-card .who-cards {
  margin-bottom: 6px;
}
.contact-form-card .wpcf7 {
  margin-top: -8px;
}
@media (max-width: 980px) {
  .contact-side .contact-block {
    max-width: 560px;
  }
  .contact-form-card .wpcf7 {
    margin-top: -4px;
  }
}


/* NextOn: bring the contact fields closer to the audience choices. */
.contact-form-card .wpcf7 {
  margin-top: -64px !important;
}
@media (max-width: 980px) {
  .contact-form-card .wpcf7 {
    margin-top: -24px !important;
  }
}
/* NextOn: contrasto e motion design leggero per il go-live. */.form-card .checkbox-row a,.form-card .wpcf7-list-item-label a {  color: #fff !important;  text-decoration: underline;  text-decoration-color: rgba(255,255,255,.72);  text-underline-offset: 3px;}/* Le sezioni partono visibili: l’animazione viene attivata solo quando il JS è pronto. */.nexton-scroll-reveal {  opacity: 1;  transform: none;}html.nexton-motion-ready .nexton-scroll-reveal {  opacity: 0;  transform: translateY(24px);  transition: opacity .65s cubic-bezier(.22,1,.36,1), transform .65s cubic-bezier(.22,1,.36,1);  transition-delay: var(--nexton-reveal-delay, 0ms);  will-change: opacity, transform;}html.nexton-motion-ready .nexton-scroll-reveal.is-visible {  opacity: 1;  transform: none;}@media (prefers-reduced-motion: reduce) {  html.nexton-motion-ready .nexton-scroll-reveal,  html.nexton-motion-ready .nexton-scroll-reveal.is-visible {    opacity: 1;    transform: none;    transition: none;    will-change: auto;  }
}@media (prefers-reduced-motion: no-preference) {  .area-card,  .company-card,  .story-card,  .who-card,  .btn,  .nav-cta {    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease;  }  .area-card:hover,  .company-card:hover,  .story-card:hover {    transform: translateY(-5px);    box-shadow: 0 18px 40px rgba(20,33,61,.09);  }  .who-card:hover {    transform: translateY(-3px);    box-shadow: 0 12px 26px rgba(20,33,61,.08);  }  .btn:hover,  .nav-cta:hover {    transform: translateY(-2px);  }}
/* Keep the section layout visible while inner blocks animate. */html.nexton-motion-ready main section.nexton-scroll-reveal {  opacity: 1 !important;  transform: none !important;  transition: none !important;}/* Keep form panels visible while their inner controls animate. */html.nexton-motion-ready .contact-form-card,html.nexton-motion-ready .form-card {  opacity: 1 !important;  transform: none !important;  transition: none !important;}/* NextOn enhanced motion design */@keyframes nexton-float {  0%, 100% { transform: translateY(0); }  50% { transform: translateY(-7px); }}@media (prefers-reduced-motion: no-preference) {  html.nexton-motion-ready .hero.nexton-hero-motion .hero-eyebrow,  html.nexton-motion-ready .hero.nexton-hero-motion .h-display,  html.nexton-motion-ready .hero.nexton-hero-motion .hero-subtitle,  html.nexton-motion-ready .hero.nexton-hero-motion .hero-ctas,  html.nexton-motion-ready .hero.nexton-hero-motion .hero-meta {    opacity: 0;    transform: translateY(22px);    transition: opacity .72s cubic-bezier(.22,1,.36,1), transform .72s cubic-bezier(.22,1,.36,1);
  }  html.nexton-motion-ready .hero.nexton-hero-ready .hero-eyebrow,  html.nexton-motion-ready .hero.nexton-hero-ready .h-display,  html.nexton-motion-ready .hero.nexton-hero-ready .hero-subtitle,  html.nexton-motion-ready .hero.nexton-hero-ready .hero-ctas,  html.nexton-motion-ready .hero.nexton-hero-ready .hero-meta {    opacity: 1;    transform: none;  }  html.nexton-motion-ready .hero.nexton-hero-motion .hero-eyebrow { transition-delay: 40ms; }  html.nexton-motion-ready .hero.nexton-hero-motion .h-display { transition-delay: 110ms; }  html.nexton-motion-ready .hero.nexton-hero-motion .hero-subtitle { transition-delay: 180ms; }
	html.nexton-motion-ready .hero.nexton-hero-motion .hero-ctas { transition-delay: 250ms; }  html.nexton-motion-ready .hero.nexton-hero-motion .hero-meta { transition-delay: 320ms; }  html.nexton-motion-ready .hero.nexton-hero-motion .hero-visual {    opacity: 0;    transform: translateY(26px) scale(.965);    transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);    transition-delay: 130ms;  }  html.nexton-motion-ready .hero.nexton-hero-ready .hero-visual {    opacity: 1;    transform: translateY(var(--nexton-hero-shift, 0px)) scale(1);  }  html.nexton-motion-ready .hero.nexton-hero-ready .hero-visual-card {    animation: nexton-float 6s ease-in-out 1.1s infinite;  }  html.nexton-motion-ready .nexton-scroll-reveal.nexton-reveal-up:not(.is-visible) {    transform: translateY(28px) scale(.985);  }  html.nexton-motion-ready .nexton-scroll-reveal.nexton-reveal-left:not(.is-visible) {    transform: translateX(-30px) translateY(8px) scale(.985);  }  html.nexton-motion-ready .nexton-scroll-reveal.nexton-reveal-right:not(.is-visible) {    transform: translateX(30px) translateY(8px) scale(.985);  }  html.nexton-motion-ready .nexton-scroll-reveal.nexton-reveal-scale:not(.is-visible) {    transform: translateY(12px) scale(.92);  }  .nexton-pointer-glow {    position: relative;    isolation: isolate;  }  .nexton-pointer-glow::before {    content: '';    position: absolute;    inset: -1px;    border-radius: inherit;    background: radial-gradient(circle at var(--nexton-mx, 50%) var(--nexton-my, 50%), rgba(255,255,255,.3), transparent 38%);    opacity: 0;    pointer-events: none;    transition: opacity .35s ease;    z-index: 0;  }  .nexton-pointer-glow:hover::before { opacity: 1; }  .nexton-pointer-glow > * { position: relative; z-index: 1; }  .area-card.nexton-pointer-glow:hover,  .company-card.nexton-pointer-glow:hover,  .story-card.nexton-pointer-glow:hover {    box-shadow: 0 22px 48px rgba(20,33,61,.14), 0 0 0 1px rgba(232,116,10,.16);  }  .who-card.nexton-pointer-glow:hover {    border-color: var(--orange);    box-shadow: 0 16px 32px rgba(20,33,61,.12);  }  .btn:hover, .nav-cta:hover {    box-shadow: 0 10px 26px rgba(232,116,10,.22);  }

}