/* =========================================================
   M&M Computers — Static Site
   CSS puro, organizzato per sezioni. Modifica i valori in
   :root per cambiare colori, font e spaziature globali.
   ========================================================= */

/* ---------- 0. FONT (Inter, self-hosted) ---------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;            /* variable font: copre tutti i pesi */
  font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
}

/* ---------- 1. VARIABILI (token) ---------- */
:root {
  /* Palette (allineata al design di riferimento) */
  --color-primary:   #134074;   /* blu principale: link, CTA testuali */
  --color-primary-d: #0096c7;   /* hover (ciano scuro) */
  --color-navy:      #0b2545;   /* header/footer scuro */
  --color-navy-2:    #134074;
  --color-accent:    #3b6ea5;   /* blu chiaro secondario */
  --color-cyan:      #00b4d8;   /* accento ciano (evidenziazioni, CTA) */
  --color-text:      #1c2733;
  --color-muted:     #5b6b7e;
  --color-bg:        #ffffff;
  --color-bg-alt:    #f4f7fb;   /* sezioni alternate */
  --color-border:    #e2e8f0;
  --color-danger:    #e0573f;   /* rosso/corallo: marcatori "problema" */

  /* Tipografia (Inter, come il design di riferimento) */
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: var(--font-body);

  /* Layout */
  --container: 1180px;
  --radius: 10px;
  --shadow: 0 8px 30px rgba(12, 45, 72, .08);
  --shadow-hover: 0 14px 40px rgba(12, 45, 72, .16);
  --transition: .25s ease;
}

/* ---------- 2. RESET DI BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--color-primary-d); }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.2; color: var(--color-navy); margin: 0 0 .5em; }

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

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--color-navy); color: #fff; padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Focus visibile (accessibilità) */
:focus-visible { outline: 3px solid var(--color-accent); outline-offset: 2px; }

/* ---------- 3. BOTTONI ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 50px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
}
.btn--primary { background: var(--color-cyan); color: var(--color-navy); }
.btn--primary:hover { background: var(--color-primary-d); color: #fff; transform: translateY(-2px); }
.btn--outline { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--outline:hover { background: var(--color-primary); color: #fff; }
.btn--light { background: #fff; color: var(--color-navy); }
.btn--light:hover { background: #f0f4f8; transform: translateY(-2px); }

/* Spaziatura sezioni */
.section { padding: 80px 0; }
.section--alt { background: var(--color-bg-alt); }
.section__title {
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  text-transform: uppercase;
  margin-bottom: 48px;
  position: relative;
}
.section__title::after {
  content: ""; display: block; width: 64px; height: 4px;
  background: var(--color-primary); border-radius: 4px; margin: 16px auto 0;
}
.section__subtitle {
  text-align: center; max-width: 680px; margin: -32px auto 48px;
  color: var(--color-muted); font-size: 1.1rem;
}

/* ---------- 4. TOP BAR ---------- */
.topbar { background: rgba(11, 37, 69, .97); color: #cdd7e2; font-size: .85rem; }
.topbar__inner { display: flex; gap: 24px; justify-content: flex-end; align-items: center; min-height: 24px; }
.topbar__link { color: #cdd7e2; }
.topbar__link:hover { color: #fff; }

/* ---------- 5. HEADER / NAV ---------- */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(11, 37, 69, .97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 14px rgba(0,0,0,.20);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 48px; gap: 20px; }
.header__logo { display: inline-flex; }
.header__logo img { height: 38px; width: 90px; object-fit: fill; }

.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__list > li > a {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--font-head); font-weight: 600; font-size: .92rem;
  color: #e6eef7; padding: 8px 14px; border-radius: 6px;
}
.nav__list > li > a:hover,
.nav__list > li > a.is-active { color: var(--color-cyan); }

.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; }

/* Sottomenu */
.has-sub { position: relative; }
.sub {
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px; opacity: 0; visibility: hidden;
  transform: translateY(8px); transition: all var(--transition); z-index: 50;
}
.has-sub:hover > .sub,
.has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { display: block; white-space: nowrap; padding: 10px 14px; border-radius: 6px; font-size: .9rem; color: var(--color-text); }
.sub a:hover { background: var(--color-bg-alt); color: var(--color-primary); }

/* Hamburger */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { height: 3px; background: #fff; border-radius: 3px; transition: all var(--transition); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- 6. HERO ---------- */
.hero {
  background: linear-gradient(135deg, var(--color-navy) 0%, var(--color-navy-2) 60%, var(--color-primary-d) 140%);
  color: #fff;
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px;
  align-items: center; padding-block: 64px;
}
.hero__content { max-width: 620px; }
.hero__eyebrow { font-family: var(--font-head); font-weight: 800; letter-spacing: .12em; color: var(--color-cyan); margin: 0 0 18px; }
.hero__eyebrow span { color: #a9c7e0; font-weight: 600; }
.hero__title { color: #fff; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.15; margin: 0 0 20px; text-wrap: balance; }
.hero__title strong { color: var(--color-cyan); font-weight: 800; }
.hero__sub { font-size: 1.12rem; color: #cdd9e8; margin: 0 0 32px; max-width: 560px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero .btn { text-transform: none; letter-spacing: 0; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--outline-light:hover { background: #fff; color: var(--color-navy); border-color: #fff; }
.hero__media img { width: 100%; border-radius: var(--radius); box-shadow: 0 18px 50px rgba(0,0,0,.35); }

@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; padding-block: 48px; text-align: center; }
  .hero__content { max-width: none; }
  .hero__sub { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .hero__media { order: -1; }
}

/* Carosello loghi */
.logos { overflow: hidden; background: #fff; padding: 30px 0; border-top: 1px solid var(--color-border); }
.logos__track { display: flex; gap: 56px; width: max-content; align-items: center; animation: scroll-logos 38s linear infinite; }
.logos__track img {
  height: 42px; width: auto; filter: grayscale(1); opacity: .6;
  transition: opacity var(--transition), filter var(--transition);
}
.logos:hover .logos__track { animation-play-state: paused; }
.logos__track img:hover { opacity: 1; filter: grayscale(0); }
@keyframes scroll-logos { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
}

/* ---------- 7. INTRO / SETTORI ---------- */
.intro { text-align: center; }
.intro__quote { font-family: var(--font-head); font-style: italic; font-weight: 700; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--color-primary); margin: 0 0 12px; }
.intro__lead { font-size: 1.3rem; }
.intro__text { color: var(--color-muted); margin-bottom: 24px; }
.sectors { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 36px; }
.sectors li {
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  padding: 10px 22px; border-radius: 50px; font-weight: 500;
}
.sectors li a { color: var(--color-text); }
.sectors li:hover { border-color: var(--color-primary); }

/* ---------- 8. SERVIZI (cards) ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 36px 26px; text-align: center; box-shadow: var(--shadow); transition: all var(--transition);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.card__icon { display: inline-flex; width: 90px; height: 90px; align-items: center; justify-content: center;
  background: var(--color-bg-alt); border: 0.5px solid rgba(19, 64, 116, 0.55); border-radius: 50%; margin-bottom: 20px; }
.card__icon img { width: 50px; height: 50px; }
.card__title { font-size: 1.15rem; margin-bottom: 12px; }
.card__title a { color: var(--color-navy); }
.card__title a:hover { color: var(--color-primary); }
.card p { font-size: .95rem; color: var(--color-muted); margin: 0; }

.services__cta { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 48px; flex-wrap: wrap; }
.services__cta span { color: var(--color-muted); font-style: italic; }

/* ---------- 9. SPECIALIZZAZIONI (feature rows) ---------- */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 72px; }
.feature:last-child { margin-bottom: 0; }
.feature--reverse .feature__text { order: 2; }
.feature__text h3 { font-size: 1.6rem; text-transform: uppercase; color: var(--color-primary); }
.feature__text p { color: #4b5563; }
.feature__media img { margin-inline: auto; max-width: 320px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tags li { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 6px; padding: 6px 14px; font-size: .9rem; font-weight: 500; }
.tags li a { color: var(--color-navy); }
.tags li:hover { border-color: var(--color-primary); }

/* Specializzazioni — card a griglia (stile screenshot) */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.spec-card {
  background: #fff; border: 1px solid var(--color-border); border-top: 3px solid var(--color-cyan);
  border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.spec-card h3 { color: var(--color-navy); font-size: 1.25rem; margin: 0 0 10px; }
.spec-card p { color: var(--color-muted); margin: 0; }

/* Competenze — griglia di card tecnologia (logo + servizi) */
.comp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.comp-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.comp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.comp-card__logo { height: 54px; display: flex; align-items: center; margin-bottom: 18px; }
.comp-card__logo img { max-height: 54px; max-width: 150px; width: auto; object-fit: contain; }
.comp-card h3 { color: var(--color-navy); font-size: 1.2rem; margin: 0 0 6px; }
.comp-card__sub { color: var(--color-muted); font-size: .95rem; margin: 0 0 16px; }
.comp-card .checklist { margin: 0; }
.comp-card .checklist li { font-size: .95rem; }

/* ---------- 10. CTA BAND (Formazione) ---------- */
.cta-band { background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); color: #fff; padding: 64px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: 2rem; }
.cta-band p { margin: 0; max-width: 640px; color: #eaf3fb; }

/* ---------- 11. FOOTER ---------- */
.footer { background: var(--color-navy); color: #c4d0dd; padding-top: 64px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.3fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer__brand { font-size: 1.5rem; font-weight: 800; color: #fff; margin: 0 0 14px; }
.footer__brand span { color: var(--color-cyan); }
.footer__tagline { color: #9fb2c6; line-height: 1.7; margin: 0; max-width: 280px; }
.footer__title { color: #fff; font-size: 1.05rem; font-weight: 700; margin-bottom: 18px; }
.footer address { font-style: normal; line-height: 1.9; }
.footer a { color: #9fc2e3; }
.footer a:hover { color: #fff; }
.footer__logo { background: #fff; padding: 12px; border-radius: 8px; max-width: 240px; margin-bottom: 18px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 20px 0; font-size: .85rem; color: #8aa0b6; text-align: center; }

/* ---------- 12. TORNA SU ---------- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: var(--color-primary); color: #fff;
  font-size: 1.3rem; cursor: pointer; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px); transition: all var(--transition); z-index: 150;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--color-primary-d); }

/* =========================================================
   13. RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 992px) {
  .cards, .icard-grid { grid-template-columns: repeat(2, 1fr); }
  .comp-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile / menu a tendina → menu a scomparsa */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
    background: #fff; box-shadow: -8px 0 30px rgba(0,0,0,.15);
    transform: translateX(100%); transition: transform var(--transition);
    overflow-y: auto; padding: 90px 20px 40px; z-index: 199;
  }
  .nav.is-open { transform: translateX(0); }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list > li { border-bottom: 1px solid var(--color-border); }
  .nav__list > li > a { padding: 14px 8px; justify-content: space-between; color: var(--color-navy); }
  .nav__list > li > a:hover,
  .nav__list > li > a.is-active { color: var(--color-primary); }

  /* Sottomenu: accordion verticale */
  .sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-radius: 0; padding: 0 0 8px 12px;
    max-height: 0; overflow: hidden; transition: max-height var(--transition);
  }
  .has-sub.is-expanded > .sub { max-height: 600px; }
  .sub a { white-space: normal; }  /* accordion stretto: il testo lungo può andare a capo */
  .has-sub.is-expanded .caret { transform: rotate(225deg); margin-top: 3px; }

  /* overlay quando il menu è aperto */
  body.nav-open::after {
    content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 198;
  }
}

/* Smartphone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 56px 0; }
  .topbar__inner { justify-content: center; gap: 16px; font-size: .78rem; }
  .cards, .icard-grid { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .comp-grid { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; gap: 28px; text-align: center; margin-bottom: 48px; }
  .feature--reverse .feature__text { order: 0; }
  .feature__media img { max-width: 200px; }
  .tags { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__logo, .sectors, .footer__tagline { margin-inline: auto; }
  .footer__links { align-items: center; }
  .cta-band__inner { flex-direction: column; text-align: center; }
}

/* =========================================================
   14. PAGINE INTERNE (sottopagine)
   ========================================================= */
.page-hero {
  background: linear-gradient(135deg, var(--color-navy), var(--color-navy-2) 55%, var(--color-primary));
  color: #fff; padding: 72px 0; text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 22px; }
.page-hero p { color: #cfe0ef; margin: 0 auto; max-width: 760px; }
.breadcrumb { font-size: .85rem; color: #9fc2e3; margin-bottom: 18px; }
.breadcrumb a { color: #9fc2e3; }
.breadcrumb a:hover { color: #fff; }

/* Contenuto testuale (prose) */
.prose { max-width: 860px; margin-inline: auto; }
.prose p { margin: 0 0 18px; color: #444; }
.prose h2 { font-size: 1.6rem; color: var(--color-primary); margin: 40px 0 16px; }
.prose h3 { font-size: 1.25rem; margin: 28px 0 12px; }
.prose strong { color: var(--color-navy); }
.prose a { font-weight: 500; }

/* Intestazione centrata di sezione (eyebrow + titolo + lead) */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { color: var(--color-primary); margin: 0 0 12px; }
.section-head .lead { margin: 0; }

/* Card con icona (problema / soluzione) */
.icard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1040px; margin-inline: auto; }
.icard {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition);
}
.icard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.icard__icon {
  width: 50px; height: 50px; display: flex; align-items: center; justify-content: center;
  border-radius: 12px; margin-bottom: 18px;
}
.icard__icon svg { width: 26px; height: 26px; }
.icard h3 { font-size: 1.08rem; margin: 0 0 8px; color: var(--color-navy); }
.icard p { margin: 0; color: var(--color-muted); font-size: .95rem; }
.icard--problem .icard__icon { background: #fcefec; color: var(--color-danger); }
.icard--solution .icard__icon { background: #eaf2fb; color: var(--color-primary); }

/* Etichetta sopra il titolo (eyebrow) */
.eyebrow {
  display: inline-block; font-family: var(--font-head); font-weight: 800;
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-primary-d); margin: 0 0 12px;
}
.eyebrow--danger { color: var(--color-danger); }

/* Paragrafo introduttivo più grande */
.prose .lead { font-size: 1.2rem; line-height: 1.6; color: var(--color-text); }

/* Liste con spunta / con croce (problemi) */
.checklist, .painlist { margin: 22px 0 18px; display: grid; gap: 12px; }
.checklist li, .painlist li { position: relative; padding-left: 34px; color: #444; }
.checklist li::before, .painlist li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; line-height: 22px; text-align: center;
  background: var(--color-primary); color: #fff; border-radius: 50%; font-size: .8rem; font-weight: 700;
}
.painlist li::before { content: "✕"; background: var(--color-danger); font-size: .75rem; }

/* Box informativo a due colonne */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 36px auto 0; }
.info-card { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 28px; }
.info-card h3 { margin-top: 0; color: var(--color-primary); }

/* Numeri / statistiche (Chi Siamo) */
.stats { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin: 40px 0; }
.stat { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 26px 40px; text-align: center; min-width: 200px; }
.stat__num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--color-primary); line-height: 1; }
.stat__label { color: var(--color-muted); font-size: .95rem; margin-top: 8px; }

/* FAQ (accordion nativo <details>/<summary>) */
.faq { max-width: 860px; margin-inline: auto; display: grid; gap: 14px; }
.faq__item {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-family: var(--font-head); font-weight: 700; color: var(--color-navy); font-size: 1.08rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--color-primary); border-bottom: 2px solid var(--color-primary);
  transform: translateY(-65%) rotate(45deg); transition: transform var(--transition);
}
.faq__item[open] summary { color: var(--color-primary); }
.faq__item[open] summary::after { transform: translateY(-35%) rotate(225deg); }
.faq__item summary:hover { background: var(--color-bg-alt); }
.faq__answer { padding: 0 24px 22px; }
.faq__answer p { margin: 0; color: #444; }

@media (max-width: 640px) {
  .info-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   15. BANNER COOKIE
   ========================================================= */
.btn--sm { padding: 9px 18px; font-size: .85rem; text-transform: none; letter-spacing: 0; }

.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 300;
  background: #fff; border: 1px solid var(--color-border);
  border-radius: var(--radius); box-shadow: var(--shadow-hover);
}
.cookie-banner[hidden], .cookie-modal[hidden] { display: none; }
.cookie-banner__inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  max-width: var(--container); margin-inline: auto; padding: 18px 22px;
}
.cookie-banner__text { flex: 1 1 320px; margin: 0; font-size: .92rem; color: var(--color-text); }
.cookie-banner__actions { display: flex; gap: 10px; flex-wrap: wrap; }

.cookie-modal {
  position: fixed; inset: 0; z-index: 310; padding: 20px;
  background: rgba(11, 37, 69, .55);
  display: flex; align-items: center; justify-content: center;
}
.cookie-modal__box {
  background: #fff; border-radius: var(--radius); width: 100%; max-width: 520px;
  padding: 32px; box-shadow: var(--shadow-hover); max-height: 90vh; overflow: auto;
}
.cookie-modal__box h2 { color: var(--color-navy); margin: 0 0 8px; font-size: 1.4rem; }
.cookie-modal__box > p { color: var(--color-muted); margin: 0 0 18px; font-size: .95rem; }
.cookie-opt {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--color-border); font-size: .9rem;
}
.cookie-opt span { color: var(--color-text); line-height: 1.5; }
.cookie-opt input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--color-primary); }
.cookie-modal__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }
}
