/* ==========================================================
   Kopia Service — Sistemi per ufficio
   Foglio di stile principale (v2 — mockup definitivi)
   ========================================================== */

@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Rubik';
  src: url('../fonts/Rubik-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --blue: #354A95;
  --blue-dark: #2C3E7E;
  --blue-light: #145D99;
  --red: #E30613;
  --red-dark: #C10511;
  --gray: #F0F0F0;
  --gray-wordmark: #E8E8E8;   /* stesso grigio dello sfondo di kopia-wordmark.jpg */
  --gray-band: #9C9C9E;
  --text: #000000;               /* da XD.css */
  --white: #FFFFFF;
  --font: 'Rubik', 'Helvetica Neue', Arial, sans-serif;
  --header-h: 90px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 300;              /* Rubik Light */
  font-size: 18px;
  line-height: 22px;
  color: var(--text);
  background: var(--white);
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
strong { font-weight: 500; }     /* Rubik Medium per le evidenziazioni (XD) */

.container { width: min(1380px, 92%); margin: 0 auto; }   /* griglia XD 1920: colonna contenuti ~1380px */

/* ---------- Bottoni ---------- */
.btn {
  display: inline-block;
  font-family: var(--font);
  font-style: normal;
  font-weight: 900;              /* Rubik Black */
  font-size: 22px;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--white);
  padding: 15px 30px;
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-blue { background: var(--blue); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-dark); }

/* ---------- Titoli ---------- */
.sec-title {
  font-family: var(--font);
  font-style: normal;
  font-weight: 900;                        /* Rubik Black */
  font-size: 35px;
  text-transform: uppercase;
  line-height: 42px;
  letter-spacing: 0;
}
.sec-sub {
  font-family: var(--font);
  font-style: normal;
  font-weight: 400;                        /* Rubik Regular */
  font-size: 30px;
  text-transform: uppercase;
  line-height: 36px;
  letter-spacing: 0;
  margin-top: 4px;
}
.t-red .sec-title, .t-red .sec-sub { color: var(--red); }
.t-blue .sec-title, .t-blue .sec-sub { color: var(--blue); }
.sec-text { margin-top: 24px; }
.sec-text p {
  font-family: var(--font);
  font-style: normal;
  font-weight: 300;                        /* Rubik Light */
  font-size: 18px;
  line-height: 22px;
}
.sec-text p + p { margin-top: 16px; }
.centered { text-align: center; }
.centered .sec-text { max-width: none; margin-left: auto; margin-right: auto; }
.sec-cta { margin-top: 32px; }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--blue);
  height: var(--header-h);
}
.header-inner {
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding-right: 4%;
}
.logo-box {
  position: relative;
  background: var(--white);
  height: 100%;
  display: flex; align-items: center;
  padding: 0 70px 0 4%;
  flex: 0 0 auto;
}
.logo-box::before {
  content: ""; position: absolute; top: 0; right: -45px; width: 90px; height: 100%;
  background: var(--white); transform: skewX(-45deg);
}
.logo-box::after {
  content: ""; position: absolute; top: 0; right: -56px; width: 11px; height: 100%;
  background: var(--red); transform: skewX(-45deg);
}
.logo-box img { height: 58px; width: auto; position: relative; z-index: 1; }

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* menu allineato a destra */
  position: relative;
  gap: 40px;
  padding-left: 90px;        /* compensa la coda obliqua del logo */
}
.main-nav > ul { display: flex; gap: 44px; align-items: center; }
.main-nav a {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--white);
  padding: 8px 0;
  transition: opacity .2s;
}
.main-nav a:hover, .main-nav li.active > a { opacity: .75; }

.has-dropdown { position: relative; }
.has-dropdown > a { cursor: default; }
.dropdown {
  position: absolute; top: 100%; left: -34px;
  min-width: 245px;
  background: var(--blue);
  box-shadow: 0 14px 25px rgba(0,0,0,.2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease;
  padding: 34px 0 22px;
}
.has-dropdown:hover .dropdown, .has-dropdown.open .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; color: var(--white); padding: 13px 34px; font-size: 16px; }
.dropdown a:hover { background: rgba(255,255,255,.1); opacity: 1; }
.dropdown .divider { height: 4px; background: var(--red); margin: 12px 0; }

.nav-social { display: flex; gap: 18px; align-items: center; }
.nav-social a { display: flex; }
.nav-social svg { width: 18px; height: 18px; fill: var(--white); transition: opacity .2s; }
.nav-social a:hover svg { opacity: .75; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 7px; align-items: center;
}
.nav-toggle span { display: block; width: 26px; height: 3px; background: var(--white); }

/* ==========================================================
   HERO
   ========================================================== */
.hero { position: relative; overflow: hidden; background: var(--blue); }
.hero img.hero-img { width: 100%; height: auto; min-height: 320px; object-fit: cover; }

/* hero con video: stesse proporzioni del video (16:9), nessun ritaglio */
.hero-video-wrap { aspect-ratio: 16 / 9; min-height: 320px; }
.hero-video-wrap video.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-play {
  position: absolute; inset: 0; margin: auto;
  width: 96px; height: 96px;
  background: var(--blue); border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}
.hero-play:hover { transform: scale(1.07); }
.hero-play::after {
  content: "";
  border-left: 30px solid var(--white);
  border-top: 19px solid transparent; border-bottom: 19px solid transparent;
  margin-left: 8px;
}
/* toggle audio del video hero */
.hero-mute {
  position: absolute; left: 36px; bottom: 30px;
  width: 46px; height: 46px;
  background: none; border: none; cursor: pointer; padding: 0;
}
.hero-mute svg { width: 100%; height: 100%; fill: var(--white); filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }
.hero-mute .ic-sound { display: none; }
.hero-mute.sound .ic-muted { display: none; }
.hero-mute.sound .ic-sound { display: block; }

/* ==========================================================
   SEZIONI
   ========================================================== */
.section { padding: 90px 0; }
.section-gray { background: var(--gray); }
/* si affianca alla banda kopia-wordmark: stesso grigio dell'immagine, nessun gradino */
.section.section-gray.centered.t-red { background: var(--gray-wordmark); }

/* --- categorie a rombo (home) con stato chiuso/aperto --- */
.diamonds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; margin-top: 60px; }
.diamond-item {
  text-align: center; display: block;
  transition: transform .55s cubic-bezier(.22,.68,.28,1);
}
.diamond-item:hover { transform: translateY(-7px); }
.diamond-img { position: relative; width: 100%; max-width: 220px; margin: 0 auto; aspect-ratio: 1; }
.diamond-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform-origin: center;
  backface-visibility: hidden;          /* niente micro-sfarfallio durante la scala */
  will-change: opacity, transform;
  transition: opacity .5s cubic-bezier(.4,0,.2,1),
              transform .7s cubic-bezier(.22,.68,.28,1);
}
.diamond-img img.open { opacity: 0; transform: scale(.965); }
/* la chiusa sfuma un po' più in fretta: evita il "grigiore" a metà dissolvenza */
.diamond-item:hover .diamond-img img.closed {
  opacity: 0; transform: scale(1.035);
  transition-duration: .34s, .7s;
}
.diamond-item:hover .diamond-img img.open { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .diamond-item, .diamond-img img { transition-duration: .01ms; }
  .diamond-item:hover { transform: none; }
}
.diamond-item span {
  display: block; margin-top: 22px;
  font-weight: 900; font-size: 16px; letter-spacing: .04em;
  text-transform: uppercase; color: var(--red);
}

/* --- sezione scura con foto --- */
.dark-cta {
  position: relative; background-size: cover; background-position: center;
  color: var(--white); text-align: center; padding: 110px 0;
}
.dark-cta::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.dark-cta > .container { position: relative; z-index: 1; }
.dark-cta .sec-title, .dark-cta .sec-sub { color: var(--white); }
.dark-cta .sec-text { max-width: 1180px; margin-left: auto; margin-right: auto; }

/* --- sezione con la K --- */
.k-section { position: relative; overflow: hidden; padding: 170px 0; }
.k-section.k-blue-section {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  align-items: center;
}
.k-section.k-blue-home { height: 488px; }
.k-section.k-blue-products { height: 434px; }
.k-section .k-mark {
  position: absolute; left: 0; top: 0;
  height: 100%;               /* la K tocca il bordo superiore e inferiore della sezione */
  width: auto; max-width: none; pointer-events: none;
}
.k-section .k-mark-blue {
  top: 0;
  height: 100%;
  transform: none;
}
.k-section .k-content { position: relative; z-index: 1; margin-left: 36%; max-width: none; }
.k-section .k-mark-blue + .container .k-content { margin-left: 38%; }
/* nel mockup il titolo sfora leggermente la griglia, ma solo dove c'è margine:
   sotto i 1500px lo sforamento uscirebbe dalla sezione e verrebbe tagliato da overflow:hidden */
.k-section .k-content .sec-title { margin-right: -110px; }
@media (max-width: 1500px) {
  .k-section .k-content .sec-title { margin-right: 0; }
}
/* sezione grigia con la K blu e il rombo rosso (mockup azienda-blocco) */
.k-section.k-gray {
  background: var(--gray);
  padding: 0;
  min-height: 560px;          /* proporzione 3.43:1 del mockup a 1920 */
  display: flex;
  align-items: center;
}
.k-section.k-gray .k-mark {
  left: 0;                    /* k-new.png è già ritagliata: nessun margine a sinistra */
  right: auto;
  top: 0;
  height: 100%;               /* tocca il bordo superiore e inferiore */
  width: auto;
}
.k-section.k-gray .k-content { margin-left: 44.5%; }
/* pagine prodotto: sezione (e quindi la K) ridotte del 20% — 560 -> 448px.
   La K resta a tutta altezza, quindi tangente sopra e sotto, ma più stretta:
   così il testo non le finisce più sopra. */
.k-section.k-gray.t-red { min-height: 448px; }
/* variante azienda: sezione (e quindi la K) ridotte del 20% rispetto ai 560px iniziali */
.k-section.k-gray.t-blue { min-height: 454px; }

.check-list { margin-top: 28px; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 16px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 9px; height: 9px;
  border-right: 3px solid var(--red); border-top: 3px solid var(--red); transform: rotate(45deg);
}

/* ==========================================================
   FORM CONTATTI
   ========================================================== */
.form-section {
  background: var(--blue) url('../img/bg-form.jpg') center / cover no-repeat;
  color: var(--white); padding: 110px 0;
}
.form-section .sec-title { color: var(--white); }
.form-section .sec-sub { color: var(--white); margin-top: 12px; }
.contact-form { max-width: 560px; margin-top: 36px; }
.contact-form input, .contact-form textarea {
  display: block; width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--white);
  color: var(--white);
  font-family: var(--font); font-size: 15px;
  padding: 13px 15px; margin-bottom: 14px; border-radius: 0;
}
.contact-form textarea { min-height: 46px; resize: vertical; }
.contact-form ::placeholder { color: rgba(255,255,255,.8); }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(255,255,255,.6); }
.form-note { font-size: 11.5px; opacity: .9; margin: -2px 0 12px; }
.form-check { display: flex; gap: 9px; align-items: flex-start; font-size: 11.5px; margin-bottom: 8px; }
.form-check input { width: auto; margin: 2px 0 0; }
.contact-form .btn { margin-top: 24px; }
.form-feedback { margin-top: 18px; font-weight: 700; display: none; }
.form-feedback.ok { display: block; }               /* .ok = visibile */
.form-feedback.is-error { color: #FFC9CD; }         /* leggibile sul fondo blu */
.form-feedback.is-success { color: var(--white); }

/* ==========================================================
   FOOTER
   ========================================================== */
/* misure prese dal footer di HOME.png (a 1920: barra 23px, grigio 212px) */
.site-footer { background: var(--gray); border-top: 12px solid var(--red); }
.site-footer.no-bar { border-top: none; }
.footer-inner {
  width: min(1452px, 92%);          /* più larga del container standard */
  display: flex; flex-wrap: wrap;
  gap: 0 62px;                      /* nessuno spazio di riga: il titolo resta sulle colonne */
  padding: 60px 0 50px;
  color: var(--blue); font-size: 18px;
}
.footer-inner h4 {
  font-weight: 800; text-transform: uppercase;
  font-size: 18px; margin-bottom: 10px; width: 100%;
}
.footer-col { min-width: 332px; }
.footer-col p { margin-bottom: 1.5px; }   /* righe a 23,5px come nel mockup */
.footer-links { margin-left: auto; align-self: flex-end; }
.footer-links a:hover { text-decoration: underline; }

/* ==========================================================
   WIDGET ASSISTENZA FLOTTANTE
   ========================================================== */
.support-widget { position: fixed; right: 26px; bottom: 26px; z-index: 1100; display: flex; align-items: center; }

/* barra delle azioni: "srotola" da dietro il pulsante crescendo verso sinistra.
   Chiusa è un cerchio 72x72 perfettamente nascosto sotto il pulsante;
   aperta diventa la pill di CTA2 e le icone si scoprono da destra a sinistra. */
.support-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;   /* il contenuto resta ancorato al pulsante */
  gap: 42px;
  height: 72px;
  width: 72px;                 /* arrotolata */
  padding: 0;
  margin-right: -72px;         /* il pulsante ci sta sopra */
  background: var(--red);
  border-radius: 36px;
  overflow: hidden;
  pointer-events: none;
  transition: width .5s cubic-bezier(.22,.85,.28,1);
}
.support-widget:hover .support-actions,
.support-widget:focus-within .support-actions,
.support-widget.open .support-actions {
  width: 295px;                /* srotolata (CTA2) */
  pointer-events: auto;
}
.support-actions a {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s ease;
}
.support-actions a:last-child { margin-right: 100px; }  /* spazio sotto al pulsante */
.support-actions a:hover { transform: scale(1.12); }
.support-actions svg { height: 30px; width: auto; fill: var(--white); display: block; }
.support-actions a:nth-child(2) svg { height: 40px; }   /* WhatsApp: nel design è più grande */

/* pulsante: cerchio rosso disegnato dal CSS, l'immagine è il solo glifo cuffia */
.support-toggle {
  position: relative; z-index: 1;
  width: 72px; height: 72px;
  border: none; border-radius: 50%;
  background: var(--red);
  padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s ease;
}
.support-widget:hover .support-toggle,
.support-widget:focus-within .support-toggle,
.support-widget.open .support-toggle { background: #BA111B; }  /* stato selezionato (CTA2) */
.support-toggle img { width: 71%; height: auto; }

/* ==========================================================
   PAGINA SOLUZIONI — mosaico con hover
   ========================================================== */
.mosaic { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 26px; margin-top: 60px; }
.mosaic-col { display: flex; flex-direction: column; gap: 26px; }
.mosaic-card {
  position: relative; background: var(--blue); color: var(--white);
  padding: 26px; display: block; overflow: hidden; text-align: left;
}
.mosaic-card h3 { font-weight: 900; text-transform: uppercase; font-size: 19px; letter-spacing: .03em; position: relative; z-index: 2; }
.mosaic-card .card-sub {
  position: relative; z-index: 2;
  font-size: 17px; margin-top: 4px; max-width: 210px; line-height: 1.25;
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s ease .1s, transform .4s ease .1s;
}
.mosaic-card:hover .card-sub { opacity: 1; transform: translateY(0); }
/* stato INIZIO: prodotto grande che sborda in basso a destra;
   stato FINE (hover): prodotto ridotto, ancorato in basso a destra */
.mosaic-card img {
  position: absolute; right: 0; bottom: 0;
  max-height: 110%; max-width: 82%; width: auto; object-fit: contain;
  transform-origin: bottom right;
  transform: scale(1.15) translate(3%, 8%);
  transition: transform .5s cubic-bezier(.25,.8,.3,1);
}
.mosaic-card:hover img { transform: scale(1.035) translate(1%, 3%); }   /* -10% rispetto allo stato iniziale */
.card-full img { max-height: 105%; max-width: 100%; transform: scale(1.18) translate(8%, 8%); }
.card-full:hover img { transform: scale(1.06) translate(6%, 16%); }
.mosaic-card .arrow {
  position: absolute; left: 26px; bottom: 22px; z-index: 2;
  width: 34px; height: 34px; background: var(--red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: transform .3s;
}
.mosaic-card:hover .arrow { transform: translateX(6px); }
.mosaic-card .arrow::after {
  content: ""; width: 8px; height: 8px;
  border-right: 2.5px solid var(--white); border-top: 2.5px solid var(--white);
  transform: rotate(45deg) translate(-1px, 1px);
}
.card-sm { min-height: 240px; }
.card-tall { min-height: 380px; flex: 1; }
.card-full { min-height: 646px; flex: 1; }

/* ==========================================================
   GALLERIE
   ========================================================== */
.gallery-single { margin-top: 60px; }
.gallery-masonry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 60px; }
.gallery-masonry .g-col { display: flex; flex-direction: column; gap: 14px; }
.gallery-masonry img { width: 100%; object-fit: cover; }
.gallery-masonry img.tall { aspect-ratio: 1102 / 1188; }
.gallery-masonry img.short { aspect-ratio: 1102 / 594; }

/* ==========================================================
   BANNER OFFERTA
   ========================================================== */
/* Geometria ripresa dal mockup PRODOTTI - MULTIFUNZIONE.png:
   composizione (stampante + rettangolo) larga l'87% e centrata; il rettangolo
   parte al 18.4% del blocco, la stampante lo sfora sopra e sotto. */
.offer-banner { padding: 90px 0; }
.offer-wrap {
  position: relative;
  width: min(1673px, 90%);
  margin: 0 auto;
  display: flex;
}
.offer-inner {
  position: relative;
  margin-left: 18.4%;
  flex: 1;
  min-height: 0;
  aspect-ratio: 2.575;                 /* 2732 x 1061 del mockup */
  background: linear-gradient(90deg, #E30613 0%, #E30613 15%, #AF000A 100%);
  color: var(--white);
  padding: 6% 5% 6% 7.7%;
  display: flex; flex-direction: column; justify-content: center;
}
/* il rosso prosegue dietro la stampante: senza questo, dove la sagoma si
   restringe affiora una striscia di sfondo bianco lungo il bordo sinistro */
.offer-inner::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 100%;
  width: 70px;
  background: #E30613;                 /* la tinta piatta con cui inizia il gradiente */
  z-index: 0;
}
.offer-inner > * { position: relative; z-index: 1; }
.offer-wrap .offer-img {
  position: absolute;
  left: 0; bottom: -4.6%;              /* i piedini escono sotto il rettangolo */
  height: 107%;                        /* 1134 / 1061 */
  width: auto; max-width: none;
  z-index: 2;
  pointer-events: none;
}
.offer-inner h2 {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(22px, 2.85vw, 56px); line-height: 1.08;
  max-width: none;                     /* così l'a capo cade dopo "NOLEGGIO", come nel mockup */
}
.offer-tag {
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(13px, 1.05vw, 18px);
  color: #A8000A;                       /* rosso più scuro, come nel mockup */
  margin-bottom: .7em;
}
.offer-meta {
  font-size: clamp(13px, 1.05vw, 18px);
  margin-top: 1.6em; display: flex; align-items: center; gap: 10px;
}
.offer-right .offer-meta { justify-content: flex-end; }
.offer-inner .offer-lead { font-weight: 700; margin-top: 18px; }
.offer-price {
  align-self: flex-start;
  font-weight: 900; text-transform: uppercase;
  font-size: clamp(28px, 2.95vw, 58px); line-height: 1;
  border: 3px solid var(--white); padding: .22em .35em; margin-top: .35em;
  letter-spacing: .01em;
}
.offer-right .offer-price { align-self: flex-end; }
.offer-info {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto;
  width: 22px; height: 22px; border: 2px solid var(--white); border-radius: 50%;
  font-size: 13px; font-weight: 700; font-style: italic; margin: 0; cursor: pointer;
  background: none; color: var(--white); font-family: Georgia, serif;
}
.offer-info:hover { background: rgba(255,255,255,.2); }
.offer-inner .btn {
  align-self: flex-start;
  margin-top: 1.5em;
  font-size: clamp(13px, 1.15vw, 20px);
  padding: .8em 1.5em;
}
/* variante etichettatrici (mockup promo-etichettatrice.png): testo a destra,
   rettangolo più basso e stampante che sborda sotto */
.offer-inner.offer-right { text-align: right; }
.offer-inner.offer-right h2 { margin-left: auto; }
.offer-inner.offer-right .btn { align-self: flex-end; }
.offer-wrap.offer-right-wrap .offer-inner {
  margin-left: 7.43%;                  /* il rosso parte al 12,8% della pagina, dietro la stampante */
  aspect-ratio: 3.478;                 /* 3113 x 895 del mockup */
  /* attenzione: i padding in % si calcolano sulla larghezza del wrapper, non del riquadro */
  padding: 5% 8.05% 5% 20%;
}
/* qui il rosso arriva già dietro la stampante e sopra di essa il bordo si vede:
   l'estensione userebbe fuori dal riquadro, quindi va disattivata */
.offer-wrap.offer-right-wrap .offer-inner::before { display: none; }
.offer-wrap.offer-right-wrap .offer-img {
  height: 88%;
  bottom: -10%;                        /* la stampante esce sotto il rettangolo */
}

/* ==========================================================
   BANDA PARTNER
   ========================================================== */
.partner-band { background: var(--gray-band); }
.partner-band img { width: 100%; max-width: 1920px; margin: 0 auto; }

/* ==========================================================
   VANTAGGI NOLEGGIO
   ========================================================== */
.split-blue {
  height: 500px;
  background: var(--blue);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.split-blue .split-img { height: 100%; overflow: hidden; }
.split-blue .split-img img { width: 100%; height: 100%; object-fit: cover; }
.split-blue .split-content { align-self: center; padding: 40px 8% 40px 60px; }
.split-blue .sec-title { color: var(--white); }
.split-photo-right { display: grid; grid-template-columns: 1fr 1fr; align-items: center; }
.split-photo-right .split-content { padding: 70px 60px 70px 8%; }
.split-photo-right .split-img img { width: 100%; height: 100%; object-fit: cover; }
.wordmark-band { background: var(--gray-wordmark); }
.wordmark-band img { width: 100%; }

/* ==========================================================
   ASSISTENZA — slider/accordion orizzontale
   ========================================================== */
.supremo-wrap { display: flex; gap: 14px; align-items: stretch; margin-top: 40px; height: 470px; }
.acc-item { display: flex; min-width: 74px; flex: 0 0 74px; overflow: hidden; transition: flex-grow .55s ease, flex-basis .55s ease; }
.acc-item.open { flex: 1 1 100%; }
.feature-tab {
  flex: 0 0 74px; width: 74px; border: none; cursor: pointer; background: var(--gray);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding: 26px 0; gap: 22px;
  transition: flex-basis .55s ease, opacity .3s ease, background .2s ease;
}
.feature-tab:hover { background: #E4E4E4; }
.acc-item.open .feature-tab { flex-basis: 0; width: 0; min-width: 0; padding-left: 0; padding-right: 0; opacity: 0; pointer-events: none; }
.feature-tab span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-weight: 400; font-size: 16px; letter-spacing: .04em; text-transform: uppercase; color: var(--text); white-space: nowrap;
}
.feature-tab img { width: 30px; height: 30px; }
.acc-panel { flex: 1 1 auto; min-width: 0; height: 100%; display: flex; text-align: left; opacity: 0; transition: opacity .45s ease .12s; }
.acc-item.open .acc-panel { opacity: 1; }
.supremo-panel {
  position: relative; width: 100%; min-width: min(860px, 72vw); height: 100%;
  background: var(--blue); color: var(--white);
  display: grid; grid-template-columns: 1fr 1.1fr; overflow: hidden;
}
.supremo-panel .sp-content { padding: 48px; position: relative; z-index: 1; }
.supremo-panel .sp-content h2 { font-weight: 900; text-transform: uppercase; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.12; }
.supremo-panel .sp-content p { margin-top: 18px; font-size: 15px; }
.supremo-panel .sp-content .btn { margin-top: 26px; }
.supremo-panel .sp-img { position: relative; overflow: hidden; }
.supremo-panel .sp-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--blue) 0%, rgba(53,74,149,.55) 100%);
  pointer-events: none;
}
.supremo-panel .sp-img img {
  position: absolute;
  top: 5%;
  right: 0;
  width: auto;
  max-width: none;
  height: 90%;
  object-fit: contain;
  object-position: right center;
}
/* pannelli con foto di sfondo tinta di blu */
.supremo-panel.sp-photo {
  display: block;
  background-size: 90% auto;
  background-position: center right;
  background-repeat: no-repeat;
}
.supremo-panel.sp-photo::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--blue) 0%, var(--blue) 48%, rgba(53,74,149,.55) 100%);
}
.supremo-panel.sp-photo .sp-content { max-width: 640px; height: 100%; display: flex; flex-direction: column; justify-content: center; }

/* ==========================================================
   AZIENDA — valori
   ========================================================== */
.valori-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 50px; }
.valore-card { position: relative; overflow: hidden; }
.valore-card img { width: 100%; height: 100%; object-fit: cover; }
.valore-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 26px; color: var(--white);
  background: linear-gradient(transparent, rgba(38,52,110,.92) 45%);
}
.valore-card h3 { font-weight: 900; text-transform: uppercase; font-size: 17px; letter-spacing: .03em; }
.valore-card p { font-size: 14px; margin-top: 6px; }

/* ==========================================================
   CONTATTI
   ========================================================== */
.contact-grid { display: grid; grid-template-columns: 1fr 2.2fr; gap: 24px; margin-top: 60px; }
.info-card { background: var(--blue); color: var(--white); display: flex; flex-direction: column; justify-content: center; gap: 44px; padding: 55px 30px; text-align: center; }
.info-item img { width: 44px; margin: 0 auto 14px; }
.info-item a:hover { text-decoration: underline; }
.map-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================
   THANK YOU PAGE
   ========================================================== */
.thanks-section { padding: 100px 0 110px; text-align: center; }
.thanks-section .sec-title { color: var(--red); }
.thanks-section .sec-title span { text-decoration: underline; }
.thanks-section .sec-title span:not(:empty) { margin-left: .28em; }
.thanks-section p { margin-top: 22px; max-width: 900px; margin-left: auto; margin-right: auto; }

/* ==========================================================
   PAGINE LEGALI (cookie / privacy policy)
   ========================================================== */
.legal .sec-title { color: var(--red); }
.legal-body {
  margin-top: 38px; max-width: 980px;
  overflow-wrap: break-word;        /* le URL lunghe dei browser sfondavano la pagina */
  word-break: break-word;
}
.legal-body h2 {
  font-weight: 800; text-transform: uppercase;
  font-size: clamp(18px, 1.4vw, 22px); line-height: 1.2;
  color: var(--blue);
  margin: 42px 0 12px;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin-bottom: 16px; }
.legal-body a { color: var(--blue); text-decoration: underline; }
.legal-body a:hover { color: var(--red); }
.legal-body strong { font-weight: 500; }

.legal-table-wrap { overflow-x: auto; margin: 26px 0 34px; }
.legal-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 15px; }
.legal-table td {
  border-bottom: 1px solid #C9C9C9;
  padding: 13px 18px 13px 0;
  vertical-align: top;
  width: 33.33%;
}
.legal-table tr.cat td {
  background: var(--gray);
  font-weight: 500;
  border-bottom: 2px solid var(--blue);
  padding-left: 14px;
}
.legal-table tr.cat td:first-child { color: var(--blue); text-transform: uppercase; }

/* ==========================================================
   MODALI (specifiche tecniche, video)
   ========================================================== */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,16,40,.78);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.modal.open { opacity: 1; visibility: visible; }
.modal-box {
  position: relative; background: var(--gray); color: var(--text);
  width: min(1100px, 100%); max-height: 90vh; overflow: auto;
  padding: 60px 64px; transform: translateY(16px); transition: transform .3s ease;
}
.modal.open .modal-box { transform: translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 18px; width: 40px; height: 40px;
  border: none; background: none; cursor: pointer; font-size: 30px; line-height: 1; color: var(--blue);
}
.modal-box h2 { color: var(--blue); font-weight: 900; text-transform: uppercase; font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 30px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.spec-table th, .spec-table td { text-align: left; padding: 16px 0; border-bottom: 1px solid #9a9a9a; vertical-align: top; }
.spec-table th { font-weight: 500; width: 34%; padding-right: 30px; }
.modal-video .modal-box { background: #000; padding: 0; width: min(1280px, 100%); overflow: hidden; }
.modal-video video { width: 100%; height: auto; display: block; max-height: 90vh; }
.modal-video .modal-close { color: var(--white); z-index: 2; text-shadow: 0 0 6px rgba(0,0,0,.6); }

/* ==========================================================
   PAGINE LEGALI (privacy / cookie)
   ========================================================== */
.legal-head {
  position: relative;
  background: var(--blue);
  color: var(--white);
  padding: 70px 0 60px;
  overflow: hidden;
}
.legal-head::before {                      /* diagonale rossa, richiamo del logo */
  content: '';
  position: absolute; top: 0; right: -60px; bottom: 0;
  width: 220px; background: var(--red);
  transform: skewX(-45deg); opacity: .9;
}
.legal-head .container { position: relative; z-index: 1; }
.legal-kicker {
  font-weight: 500; font-size: 16px; letter-spacing: .12em;
  text-transform: uppercase; opacity: .85;
}
.legal-head .sec-title { color: var(--white); margin-top: 8px; }
.legal-updated { margin-top: 14px; font-size: 16px; opacity: .8; }

.legal-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.legal-tabs a {
  display: inline-block; padding: 10px 24px;
  font-weight: 500; font-size: 16px; text-transform: uppercase;
  color: var(--white); border: 2px solid rgba(255,255,255,.5);
  transition: background .2s ease, border-color .2s ease;
}
.legal-tabs a:hover { border-color: var(--white); background: rgba(255,255,255,.12); }
.legal-tabs a.current { background: var(--white); color: var(--blue); border-color: var(--white); }

.legal-section { padding: 70px 0 90px; }
.legal-content { max-width: 980px; }
.legal-content p { font-size: 18px; line-height: 28px; margin-bottom: 18px; }
.legal-content a { color: var(--blue); text-decoration: underline; word-break: break-word; }
.legal-content a:hover { color: var(--red); }
.legal-content > *:first-child { margin-top: 0; }

.legal-lead {
  border-left: 5px solid var(--red);
  padding: 4px 0 4px 22px;
  font-size: 20px !important; line-height: 30px !important;
  font-weight: 400;
}
h1.legal-title,
h2.legal-title {
  margin: 56px 0 20px;
  font-weight: 900; font-size: 26px; line-height: 32px;
  text-transform: uppercase; color: var(--red);
  padding-bottom: 12px; border-bottom: 3px solid var(--gray-band);
}
h3.legal-title {
  margin: 36px 0 12px;
  font-weight: 500; font-size: 21px; line-height: 28px; color: var(--blue);
}
.legal-list { margin: 0 0 20px; padding-left: 4px; }
.legal-list li {
  position: relative; padding-left: 26px; margin-bottom: 10px;
  font-size: 18px; line-height: 28px;
}
.legal-list li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 9px; height: 9px; background: var(--red); transform: skewX(-45deg);
}
.legal-links li { margin-bottom: 12px; }

.legal-table-wrap { overflow-x: auto; margin: 8px 0 26px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.legal-table td {
  text-align: left; vertical-align: top;
  padding: 14px 18px; border-bottom: 1px solid #c9c9c9; width: 33.33%;
}
.legal-table tr:nth-child(even):not(.legal-row-head) { background: var(--gray); }
.legal-table .legal-row-head td { background: var(--blue); color: var(--white); border-bottom: none; }
.legal-table .legal-row-head td a { color: var(--white); }
.legal-table .legal-row-head td strong {
  font-weight: 900; text-transform: uppercase; font-size: 15px; letter-spacing: .04em;
}

@media (max-width: 900px) {
  .legal-head { padding: 50px 0 44px; }
  .legal-head::before { width: 130px; right: -50px; }
  .legal-section { padding: 50px 0 70px; }
  h1.legal-title,
  h2.legal-title { font-size: 22px; line-height: 28px; margin-top: 44px; }
  h3.legal-title { font-size: 19px; }
  .legal-lead { font-size: 18px !important; line-height: 27px !important; }
  .legal-table td { display: block; width: auto; border-bottom: none; padding: 4px 16px; }
  .legal-table tr:not(.legal-row-head) { display: block; padding: 12px 0; border-bottom: 1px solid #c9c9c9; }
  .legal-table .legal-row-head { display: block; padding: 12px 0; }
  .legal-table .legal-row-head td:first-child { padding-top: 12px; }
  .legal-table .legal-row-head td:last-child { padding-bottom: 12px; }
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  /* sotto i 1100px la K diventa uno sfondo attenuato e il testo ci galleggia sopra */
  .k-section,
  .k-section.k-gray,
  .k-section.k-gray.t-blue,
  .k-section.k-blue-section,
  .k-section.k-blue-home,
  .k-section.k-blue-products {
    display: block;
    height: auto;
    min-height: 0;
    padding: 70px 0;
  }
  /* specificità pari a quella delle regole desktop, altrimenti non vincono */
  .k-section .k-mark,
  .k-section .k-mark-blue,
  .k-section.k-gray .k-mark,
  .k-section.k-gray.t-blue .k-mark {
    display: block;
    left: 0; right: auto; top: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: left center;
    opacity: .13;
  }
  .k-section .k-content,
  .k-section.k-gray .k-content,
  .k-section .k-mark-blue + .container .k-content {
    margin-left: 0;
    max-width: none;
  }
  .k-section .k-content .sec-title { margin-right: 0; }
  .supremo-wrap { flex-direction: column; height: auto; }
  .acc-item { flex: none; min-width: 0; flex-direction: column; transition: none; }
  .feature-tab, .acc-item.open .feature-tab {
    flex: none; width: auto; min-width: 0; opacity: 1; pointer-events: auto;
    flex-direction: row; justify-content: center; padding: 16px; gap: 14px;
  }
  .acc-item.open .feature-tab { pointer-events: none; }
  .feature-tab span { writing-mode: horizontal-tb; transform: none; }
  .acc-panel { height: auto; max-height: 0; overflow: hidden; transition: max-height .5s ease, opacity .4s ease; }
  .acc-item.open .acc-panel { max-height: 1500px; }
  .supremo-panel { min-width: 0; height: auto; }
  .supremo-panel.sp-photo .sp-content { height: auto; }
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: var(--blue); flex-direction: column; align-items: flex-start;
    padding: 20px 6% 30px; gap: 0; margin: 0;
    transform: translateY(-130%); transition: transform .3s ease;
    box-shadow: 0 20px 30px rgba(0,0,0,.25);
  }
  .main-nav.open { transform: translateY(0); }
  .main-nav > ul { flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; }
  .main-nav a { display: block; padding: 12px 0; font-size: 18px; }
  .has-dropdown > a::after {
    content: ""; display: inline-block; margin-left: 10px; width: 8px; height: 8px;
    border-right: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(45deg) translateY(-3px);
  }
  .dropdown {
    position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    background: rgba(255,255,255,.08); display: none; min-width: 0; width: 100%; padding: 6px 0;
  }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown a { color: var(--white); padding: 12px 22px; font-size: 16px; }
  .nav-social { margin-top: 18px; }

  .hero-video-wrap { aspect-ratio: 16 / 9; }
  .diamonds { grid-template-columns: repeat(2, 1fr); }
  .mosaic { grid-template-columns: 1fr; }
  .card-full, .card-tall, .card-sm { min-height: 300px; }
  .split-blue, .split-photo-right { grid-template-columns: 1fr; }
  .split-blue { height: auto; }
  .split-blue .split-img { height: auto; }
  .split-blue .split-img img { height: auto; object-fit: initial; }
  .split-photo-right .split-img { order: -1; }
  .supremo-panel { grid-template-columns: 1fr; }
  .supremo-panel .sp-img { min-height: 320px; }
  .contact-grid { grid-template-columns: 1fr; }
  .valori-grid { grid-template-columns: 1fr; }
  .gallery-masonry { grid-template-columns: 1fr 1fr; }
  /* promo in colonna: prodotto sopra, riquadro rosso sotto a tutta larghezza */
  .offer-banner { padding: 40px 0 60px; }
  .offer-wrap, .offer-wrap.offer-right-wrap { display: block; width: 92%; }
  .offer-wrap .offer-img,
  .offer-wrap.offer-right-wrap .offer-img {
    position: relative; z-index: 2;
    left: auto; bottom: auto;
    display: block; margin: 0 auto -18px;
    height: auto; width: auto;
    max-width: 60%; max-height: 300px;
  }
  .offer-inner,
  .offer-wrap.offer-right-wrap .offer-inner {
    margin-left: 0;
    aspect-ratio: auto;
    padding: 34px 24px 38px;
    text-align: center;
    align-items: center;
  }
  .offer-inner::before { display: none; }
  .offer-inner h2, .offer-inner.offer-right h2 { font-size: clamp(20px, 5.4vw, 30px); margin: 0 auto; }
  .offer-inner.offer-right { text-align: center; }
  .offer-tag { font-size: 13px; }
  .offer-meta, .offer-right .offer-meta { justify-content: center; font-size: 14px; }
  .offer-price, .offer-right .offer-price { align-self: center; font-size: clamp(30px, 8.5vw, 44px); }
  .offer-inner .btn, .offer-inner.offer-right .btn { align-self: center; font-size: 14px; }
  .footer-links { margin-left: 0; }
  .modal-box { padding: 50px 24px 30px; }
  .spec-table th, .spec-table td { display: block; width: auto; padding: 6px 0; border: none; }
  .spec-table td { padding-bottom: 16px; border-bottom: 1px solid #9a9a9a; }
}

@media (max-width: 560px) {
  .section { padding: 60px 0; }
  .diamonds { gap: 18px; }
  .gallery-masonry { grid-template-columns: 1fr; }
  .hero-play { width: 68px; height: 68px; }
  .hero-play::after { border-left-width: 22px; border-top-width: 14px; border-bottom-width: 14px; }
  .logo-box img { height: 46px; }
  .logo-box { padding-right: 40px; }
}

/* ==========================================================
   PAGINA DI ERRORE (template generic.html)
   ========================================================== */
.error-box {
  background: var(--gray);
  border-left: 6px solid var(--red);
  padding: 22px 26px;
  margin: 26px 0 34px;
  overflow-x: auto;                  /* i traceback lunghi scorrono qui dentro */
}
.error-box h3, .error-box H3 {
  font-size: 17px; font-weight: 800; text-transform: uppercase;
  color: var(--red); margin: 0 0 12px;
}
.error-box pre, .error-box PRE {
  margin: 0; font-size: 13px; line-height: 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap; word-break: break-word; color: var(--text);
}
.error-box p { margin: 0; }
.error-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
/* dentro .legal-content i link sono blu e sottolineati: i bottoni no */
.error-actions .btn { color: var(--white); text-decoration: none; }
.error-actions .btn:hover { color: var(--white); }
