/* Automation Boards – Software industriale
   Colori e font ripresi da www.automation-boards.com (tema Consulting + logo AB) */

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/montserrat-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/montserrat-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --red: #ee1b25;       /* rosso del marchio: logo, bande, bordi */
  --red-text: #d0121b;  /* stesso rosso un filo piu' scuro, per testi e fondi con testo: contrasto AA */
  --red-dark: #b3101a;
  --yellow: #fde428;
  --navy: #24405e;
  --navy-dark: #1a3049;
  --text: #333;
  --heading: #222;
  --muted: #666;
  --line: #ddd;
  --light: #f2f2f2;
  --white: #fff;
  --radius: 6px;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}
img { max-width: 100%; height: auto; }
a { color: var(--red-text); }
a:hover { color: var(--red-dark); }
h1, h2, h3 { color: var(--heading); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }

/* Pulsanti */
.btn {
  display: inline-block;
  background: var(--red-text);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid var(--red-text);
  transition: background .15s, border-color .15s;
}
.btn:hover { background: var(--red-dark); border-color: var(--red-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--white); border-color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-sm { padding: 8px 16px; }

/* Testata */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 80px; height: auto; display: block; }
.brand-text { color: var(--heading); font-weight: 800; font-size: 1.05rem; line-height: 1.1; white-space: nowrap; }
.brand-text small { display: block; color: var(--red-text); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; margin-top: 3px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 20px; }
.site-nav a { color: var(--heading); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--red-text); }
.site-nav a.btn { color: var(--white); }
.site-nav a.btn[aria-current="page"] { color: var(--white); background: var(--red-dark); }
.nav-toggle, .nav-burger { display: none; }

@media (max-width: 1200px) {
  .brand-text { font-size: .95rem; }
  .brand img { width: 64px; }
  .nav-burger { display: block; width: 44px; height: 44px; cursor: pointer; position: relative; }
  .nav-burger span, .nav-burger span::before, .nav-burger span::after {
    content: ''; position: absolute; left: 10px; width: 24px; height: 3px; background: var(--heading); border-radius: 2px;
  }
  .nav-burger span { top: 20px; }
  .nav-burger span::before { left: 0; top: -8px; }
  .nav-burger span::after { left: 0; top: 8px; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--line); }
  /* La casella resta invisibile ma raggiungibile con Tab: con la barra spaziatrice si apre il menu */
  .nav-toggle { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; margin: 0; }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--red-text); outline-offset: 2px; border-radius: 4px; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; }
  .site-nav li a { display: block; padding: 12px 0; border-bottom: 1px solid var(--light); }
  .site-nav li a.btn { margin-top: 12px; text-align: center; border-bottom: 0; }
}

/* Sezioni */
.section { padding: 80px 0; }
.section-light { background: var(--light); }
.section-navy { background: var(--navy); color: #dfe6ee; }
.section-navy h2, .section-navy h3 { color: var(--white); }
.eyebrow { display: inline-block; color: var(--red-text); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }
.section-navy .eyebrow, .hero .eyebrow { color: var(--yellow); }
.lead { font-size: 1.15rem; max-width: 760px; }
.section-head { max-width: 780px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
@media (max-width: 700px) { .section { padding: 56px 0; } }

/* Hero */
.hero { background: var(--navy); color: #dfe6ee; padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero::after {
  /* richiamo alla barra obliqua del logo AB */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--red);
}
.hero h1 { color: var(--white); max-width: 860px; }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: #dfe6ee; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; font-weight: 600; }
.badges li::before { content: '✓'; color: var(--yellow); margin-right: 8px; font-weight: 800; }
@media (max-width: 700px) { .hero { padding: 64px 0 60px; } }

/* Griglie e card */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
.grid-contact { grid-template-columns: 1.6fr 1fr; align-items: start; }
@media (max-width: 860px) { .grid-contact { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
}
.card p:last-child { margin-bottom: 0; }
.card ul { padding-left: 1.1em; margin: 0 0 1em; }
.card li { margin-bottom: .35em; }
.card ul.tags { padding-left: 0; margin-top: auto; }
.card ul.tags li { margin-bottom: 0; }
.points + h3 { margin-top: 32px; }
.card ul.points { padding-left: 0; margin: 18px 0 0; }
.card ul.points li { margin-bottom: 0; }
.card .price { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.card .price strong { color: var(--heading); font-size: 1.05rem; }
.card-plain { border-top-color: var(--line); }

.eyebrow-lg { font-size: .95rem; }
.h2-xl { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.hl { color: var(--red-text); white-space: nowrap; }
/* subgrid: titoli, testi e risposte allineati sulla stessa riga nelle tre colonne */
.problem { padding: 24px 0 0; border-top: 3px solid var(--red); display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; font-size: 1.05rem; }
.problem h3 { font-size: 1.35rem; }
.problem .answer {
  margin-top: 8px;
  background: var(--light);
  border-left: 4px solid var(--red);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 20px;
}
.problem .answer strong { display: block; color: var(--red-text); font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.problem .answer p { margin: 0; color: var(--heading); }

/* Tecnologie */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.tags li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: var(--white); padding: 5px 12px; border-radius: 20px; font-size: .85rem; font-weight: 600; }
.section-light .tags li, .card .tags li, .case-text .tags li { background: var(--light); border-color: var(--line); color: var(--heading); }

/* Case study */
.case-label { display: block; margin-bottom: 6px;  font-size: .8rem; font-weight: 700; color: var(--red-text); text-transform: uppercase; letter-spacing: .08em; }
.case dl { margin: 0 0 1em; }
.case dt { font-weight: 700; color: var(--heading); margin-top: .7em; }
.case dd { margin: 0; }

/* Processo */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding-left: 64px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%; background: var(--red-text); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}

/* Clienti */

/* Checklist */
.points { list-style: none; padding: 0; margin: 18px 0 0; }
.points li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--line); }
.points li::before { content: ''; position: absolute; left: 0; top: 21px; width: 12px; height: 3px; background: var(--red); }
.checklist { list-style: none; padding: 0; margin: 0 0 1.5em; }
.checklist li { position: relative; padding: 14px 0 14px 40px; border-bottom: 1px solid var(--line); }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 16px; width: 22px; height: 22px;
  border: 2px solid var(--red); border-radius: 4px;
}

/* Note e avvisi */
.note { font-size: .85rem; color: var(--muted); border-left: 3px solid var(--yellow); padding: 8px 0 8px 14px; margin-top: 24px; }
.section-navy .note { color: #b9c5d3; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--heading); font-size: 1.05rem; list-style: none; padding-right: 30px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: -2px; color: var(--red-text); font-size: 1.5rem; font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 12px 0 0; }

/* Fascia CTA */
.cta-band { background: var(--red-text); color: var(--white); padding: 56px 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.cta-band h2 { color: var(--white); margin: 0 0 .3em; }
.cta-band p { margin: 0; }
.cta-band .btn { background: var(--white); color: var(--red-text); border-color: var(--white); }
.cta-band .btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* Modulo contatti */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: .9rem; color: var(--heading); margin-bottom: 6px; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #bbb; border-radius: var(--radius); background: var(--white); color: var(--text);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: var(--red); }
.form textarea { min-height: 150px; resize: vertical; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.form .check input { width: auto; margin-top: 5px; }
.form .hp { position: absolute; left: -9999px; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.alert { padding: 16px 18px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600; }
.alert-ok { background: #e8f6ec; color: #1d6b34; border: 1px solid #a9dbb7; }
.alert-err { background: #fdecec; color: #a3141b; border: 1px solid #f3b3b6; }
.contact-box { background: var(--light); border-radius: var(--radius); padding: 28px; }
.contact-box address { font-style: normal; }

/* Piè di pagina */
.site-footer { background: var(--navy); color: #c9d3de; padding: 60px 0 0; font-size: .95rem; }
.site-footer h2, .footer-title { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.site-footer address { font-style: normal; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { width: 120px; margin-bottom: 14px; }
.iso { color: var(--yellow); font-weight: 700; font-size: .85rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding: 20px 16px; font-size: .85rem; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* Riga di parole chiave dentro l'H1: SEO senza cambiare il titolo visivo */
.h1-kicker { display: block; color: var(--yellow); font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1.4; margin-bottom: 14px; }
.center-text { text-align: center; }
.more-link { margin: 32px 0 0; font-weight: 600; }
.card .price a { font-weight: 700; text-decoration: none; display: inline-block; margin-top: 6px; }

/* Formula ed esempio OEE */
.formula { font-weight: 800; color: var(--heading); background: var(--light); padding: 12px 16px; border-radius: var(--radius); text-align: center; }
.mini-table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: .95rem; }
.mini-table th { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; font-weight: 400; }
.mini-table tr.total th { border-bottom: 0; border-top: 2px solid var(--red); color: var(--heading); font-weight: 700; }
.mini-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini-table td:last-child { text-align: right; white-space: nowrap; }
.mini-table tr.total td { border-bottom: 0; border-top: 2px solid var(--red); color: var(--heading); font-weight: 700; }
.mini-table tr.total td:last-child strong { color: var(--red-text); font-size: 1.2rem; }

/* Tabella di confronto */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); }
.compare { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .97rem; }
.compare th, .compare td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--navy); color: var(--white); font-weight: 700; }
.compare thead th:nth-child(2) { background: var(--red-text); }
.compare tbody th { color: var(--heading); font-weight: 700; width: 22%; background: var(--light); }
.compare tbody td:nth-child(2) { font-weight: 600; color: var(--heading); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }

/* Flusso macchina -> schermo */
.flow { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: flow; }
.flow li { position: relative; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); border-top: 4px solid var(--yellow); border-radius: var(--radius); padding: 18px; }
.flow li strong { display: block; color: var(--white); font-size: 1.1rem; }
.flow li span { font-size: .92rem; }
.flow li:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); color: var(--yellow); font-weight: 800; font-size: 1.2rem; }
.section-navy a:not(.btn) { color: var(--yellow); }
@media (max-width: 800px) {
  .flow { grid-template-columns: 1fr; }
  .flow li:not(:last-child)::after { content: '↓'; right: auto; left: 50%; top: auto; bottom: -22px; transform: translateX(-50%); }
  .flow { gap: 28px; }
}

/* Percorso di un lotto */
.chain { list-style: none; padding: 0; margin: 0; }
.chain li { position: relative; padding: 0 0 18px 34px; }
.chain li::before { content: ''; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--red); }
.chain li:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 20px; bottom: 2px; width: 2px; background: var(--line); }
.chain li strong { display: block; color: var(--heading); }
.chain li span { font-size: .92rem; color: var(--muted); }

/* Menu a tendina (Produzione) */
.site-nav .has-sub { position: relative; }
.site-nav .has-sub > a::after { content: ''; display: inline-block; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; vertical-align: 1px; }
.site-nav .sub { display: none; position: absolute; top: 100%; left: -16px; min-width: 240px; flex-direction: column; align-items: stretch; gap: 0; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--red); border-radius: 0 0 var(--radius) var(--radius); padding: 8px 0; box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.site-nav .sub a { display: block; padding: 10px 16px; }
.site-nav .has-sub:hover > .sub, .site-nav .has-sub:focus-within > .sub { display: flex; }
.site-nav .has-sub::before { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 12px; }
@media (max-width: 1200px) {
  .site-nav .has-sub > a::after { display: none; }
  .site-nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 0 0 0 16px; min-width: 0; }
  .site-nav .sub a { padding: 10px 0; }
}

/* Pilastri in home */
.pillar h3 { font-size: 1.4rem; }
.pillar-list { list-style: none; padding: 0 !important; margin: 0 !important; }
.pillar-list li { margin: 0 !important; border-top: 1px solid var(--line); }
.pillar-list a { display: block; padding: 16px 0; text-decoration: none; color: var(--text); }
.pillar-list a strong { display: block; color: var(--heading); font-size: 1.08rem; }
.pillar-list a strong::after { content: ' →'; color: var(--red-text); }
.pillar-list a:hover strong { color: var(--red-text); }
.steps:not(.grid) li { margin-bottom: 22px; }

/* Elenco clienti allineato a sinistra (dentro la sezione Chi siamo) */

/* Pagina case study */
.case-index { position: sticky; top: 0; z-index: 5; background: var(--white); border-bottom: 1px solid var(--line); }
.case-index .wrap { display: flex; gap: 8px 28px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
.case-index a { color: var(--heading); font-weight: 600; font-size: .92rem; text-decoration: none; }
.case-index a:hover { color: var(--red-text); }
.case-row { display: block; }
.case-text h2 { max-width: 760px; }
.case-text dl.case { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin: 1.4em 0; }
.case-text dl.case dt { grid-row: 1; margin-top: 0; padding-top: 12px; border-top: 3px solid var(--red); }
.case-text dl.case dd { grid-row: 2; }
.case-text > p { max-width: 820px; }
.case-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 32px; }
.case-meta .case-stats { margin: 0; }
.case-meta .tags { margin: 0; }
.case-figure { margin: 36px 0 0; }
.case-figure a { display: block; cursor: zoom-in; }
.case-figure img, .case-preview img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 18px 40px rgba(36, 64, 94, .18); }
.case-figure figcaption { margin-top: 12px; font-size: .85rem; color: var(--muted); text-align: center; }
.case-stats { list-style: none; padding: 0; margin: 1.4em 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.case-stats li { font-size: .88rem; color: var(--muted); line-height: 1.3; }
.case-stats strong { display: block; font-size: 1.5rem; font-weight: 800; color: var(--red-text); }
.case-details { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.app-case { display: flex; flex-direction: column; gap: 26px; }
.app-case ul:not(.tags) { padding-left: 1.1em; }
.phone-figure { margin: 0 auto; width: 100%; max-width: 300px; }
.phone-figure a { display: block; cursor: zoom-in; }
.phone-figure img { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .22)); }
@media (max-width: 860px) {
  .case-text dl.case { display: block; }
  .case-text dl.case dt { padding-top: 0; border-top: 0; margin-top: .9em; }
}

/* Anteprima case study in home */
.case-preview { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.case-preview img { margin-bottom: 18px; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; box-shadow: 0 10px 26px rgba(36, 64, 94, .14); }
.case-preview h3 { margin-bottom: .4em; }
.case-preview p { color: var(--text); margin-bottom: .6em; }
.case-preview .more { color: var(--red-text); font-weight: 700; font-size: .92rem; margin-top: auto; }
.case-preview:hover h3 { color: var(--red-text); }
.case-preview img.case-preview-phone { object-fit: contain; object-position: center; padding: 14px 0; background: linear-gradient(135deg, #2a2a2a, #0d0d0d); }
.section-light .case-text .tags li { background: var(--white); }

/* Pagine dei singoli case study */
.breadcrumb { font-size: .85rem; font-weight: 600; margin: 0 0 18px; color: #b9c6d4; }
.breadcrumb a { color: var(--yellow); text-decoration: none; }
.case-row-phone { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.case-row-phone .case-text dl.case { display: block; }
.case-row-phone .case-text dl.case dt { padding-top: 0; border-top: 0; margin-top: .9em; }
.case-row-phone .case-figure { margin: 0; }
@media (max-width: 860px) { .case-row-phone { grid-template-columns: 1fr; } }
.more-link-sm { margin: 4px 0 0; font-weight: 700; }

/* Banner cookie */
#cookie-banner { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; background: var(--white); color: var(--text); border: 1px solid var(--line); border-top: 4px solid var(--red); border-radius: var(--radius); box-shadow: 0 12px 34px rgba(0, 0, 0, .18); padding: 20px 22px; font-size: .92rem; }
#cookie-banner p { margin: 0 32px 14px 0; }
#cookie-banner .cb-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#cookie-banner .cb-actions .btn { flex: 1 1 140px; }
#cookie-banner .cb-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; }
.btn-outline-dark { background: var(--white); color: var(--heading); border-color: var(--heading); }
.btn-outline-dark:hover { background: var(--heading); color: var(--white); border-color: var(--heading); }

/* Pagina privacy */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 1.8em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: .92rem; }
.legal th, .legal td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.legal th { background: var(--light); }
