/* ======================================================================
   azdistributionsrl.com – foglio di stile unico
   Valori misurati sul tema originale (Jupiter + WPBakery) il 9/11/2026:
   blu #1e73be, titoli Roboto 600 36px #404040, testo 16px #777, contenitore 1140px,
   menu a tendina sotto 1140px, blocchi desktop/mobile a 765px.
   ====================================================================== */

/* Roboto variabile (un solo file per i pesi 400-700), ospitato sul nostro server */
@font-face { font-family: Roboto; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/roboto-latin-var.woff2) format("woff2"); }

:root {
  --primary: #1e73be;
  --heading: #404040;
  --text: #777;
  --header-h: 90px;
  --container: 1140px;
  --gutter: 20px;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font: 400 14px/1.66 Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: #fff; overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
picture { display: contents; }
source { display: none; }
a { color: var(--primary); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; }
p { margin: 0 0 20px; }
strong, b { font-weight: 700; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 10px 16px; }
.skip-link:focus { left: 10px; top: 10px; }
.ta-center { text-align: center; }
.ta-left { text-align: left; }
@media (max-width: 765px) { .hide-mobile { display: none !important; } }
@media (min-width: 766px) { .hide-desktop { display: none !important; } }

/* ---------------------------------------------------------------- Titoli e testi */
.title {
  font-size: 36px; line-height: 1.3; font-weight: 600; text-transform: uppercase;
  color: var(--heading); margin: 0 0 16px;
}
.title--white { color: #fff; }
.subtitle { font-size: 24px; line-height: 1.3; font-weight: 600; color: var(--heading); text-align: center; }
.text p { font-size: 16px; line-height: 1.66; }
.text strong { color: var(--text); }
.list { margin: 0 0 14px 21px; padding: 0; list-style: square; font-size: 14px; line-height: 1.66; }

/* ---------------------------------------------------------------- Pulsanti */
.btn {
  display: inline-block; padding: 13px 24px; border: 0; border-radius: 3px;
  font: 600 13px/1 Roboto, Arial, sans-serif; letter-spacing: .5px; text-transform: uppercase;
  color: #fff; background: var(--primary); cursor: pointer; transition: box-shadow .2s, background-color .2s;
}
.btn:hover, .btn:focus-visible { text-decoration: none; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.btn--light { background: #fff; color: #252525; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.link-button:hover { text-decoration: underline; }

/* ---------------------------------------------------------------- Header
   Fisso in alto come lo "sticky header" di Jupiter. */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--primary);
}
.site-header__inner {
  position: relative; height: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}
.site-logo { display: block; line-height: 0; }
.site-logo__img { height: var(--header-h); width: auto; }
.main-nav__list { display: flex; margin: 0; padding: 0; list-style: none; }
.main-nav__list a {
  display: block; height: var(--header-h); padding: 2px 20px 0; line-height: calc(var(--header-h) - 2px);
  font-size: 13px; font-weight: 600; text-transform: uppercase; color: #fff; white-space: nowrap;
  transition: opacity .2s;
}
.main-nav__list a:hover, .main-nav__list a:focus-visible { text-decoration: none; opacity: .75; }
.nav-toggle { display: none; }

@media (max-width: 1140px) {
  .site-header__inner { padding-right: var(--gutter); }
  .nav-toggle {
    display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px;
    padding: 0; border: 0; background: none; cursor: pointer;
  }
  .nav-toggle__bars { position: relative; width: 22px; height: 18px; }
  .nav-toggle__bars span {
    position: absolute; left: 0; width: 100%; height: 3px; border-radius: 2px; background: #fff;
    transition: transform .3s var(--ease), opacity .2s, top .3s var(--ease);
  }
  .nav-toggle__bars span:nth-child(1) { top: 0; }
  .nav-toggle__bars span:nth-child(2) { top: 7.5px; }
  .nav-toggle__bars span:nth-child(3) { top: 15px; }
  .nav-open .nav-toggle__bars span:nth-child(1) { top: 7.5px; transform: rotate(45deg); }
  .nav-open .nav-toggle__bars span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle__bars span:nth-child(3) { top: 7.5px; transform: rotate(-45deg); }
  .main-nav {
    display: none; position: fixed; top: var(--header-h); left: 0; right: 0; max-height: calc(100vh - var(--header-h));
    overflow-y: auto; background: #fff; box-shadow: 0 6px 12px rgba(0, 0, 0, .12);
  }
  .nav-open .main-nav { display: block; }
  .main-nav__list { display: block; }
  .main-nav__list li { border-bottom: 1px solid #ededed; }
  .main-nav__list a { height: auto; padding: 15px 20px; line-height: 1.5; color: #444; }
}
@media (max-width: 765px) {
  .site-logo__img { height: auto; width: 150px; }
}

/* ---------------------------------------------------------------- Testata */
.hero { line-height: 0; }
.hero__img { width: 100%; height: auto; }

/* ---------------------------------------------------------------- Sezioni
   Le righe del vecchio sito sono a tutta larghezza con colonne in dodicesimi
   della finestra: 8/12 centrati = 66,667% meno i margini delle colonne. */
.sec { position: relative; }
.cols2 {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 29px;
  width: calc(66.667% - 57px); margin: 0 auto;
}
.cols2 > * { min-width: 0; }

.sec--chi { padding: 60px 0 80px; }

/* Servizi: foto di sfondo + riquadro bianco semitrasparente 8/12 */
.sec--servizi { padding: 60px 0 120px; isolation: isolate; overflow: hidden; }
.sec__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.servizi-box { width: calc(66.667% - 57px); margin: 0 auto; padding: 60px 15px 0; background: rgba(255, 255, 255, .9); }
.servizi-box__intro { padding: 0 56px; text-align: center; }
.servizi-box__lists { display: grid; grid-template-columns: repeat(2, minmax(0, 310px)); column-gap: min(70px, 6%); justify-content: center; }
.servizi-box .subtitle { margin: 60px 0 70px; }

/* Soluzioni espositive */
.sec--espositori { padding: 60px 0 80px; background: #e0e0e0; }
.espositori__text { width: calc(83.333% - 63px); margin: 0 auto; }
.espositori__wide { max-width: var(--container); margin: 0 auto; }
.espositori__wide .zoom { margin-bottom: 5px; }
.espositori__wide img { width: 100%; }

/* Mosaico (galleria Modula del vecchio sito) */
.masonry { --cols: 5; --gap: 10px; columns: var(--cols); column-gap: var(--gap); }
.masonry__item { break-inside: avoid; margin-bottom: var(--gap); }
.masonry.is-masonry { display: flex; gap: var(--gap); columns: auto; align-items: flex-start; }
.masonry__col { flex: 1 1 0; min-width: 0; }
.masonry img { width: 100%; max-height: var(--max-h, none); object-fit: cover; }
.masonry--sambro { --max-h: 300px; }   /* come Modula: foto alte tagliate a 300px */
.zoom { display: block; position: relative; overflow: hidden; line-height: 0; cursor: zoom-in; }
.zoom img { transition: transform .4s var(--ease); }
.zoom:hover img, .zoom:focus-visible img { transform: scale(1.03); }

/* Sezioni metà testo blu / metà foto (Clienti, Fornitori) */
.half { display: grid; grid-template-columns: 1fr 1fr; background: var(--primary); color: #fff; }
.half > * { min-width: 0; }
.half__text { padding: 70px 63px 75px; }
.half__text p { font-size: 16px; line-height: 1.66; }
.half--text-right .half__text { order: 2; }
.half__img { position: relative; min-height: 320px; }
.half__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Contatti */
.sec--contatti { padding: 90px 0 128px; }
.contatti { margin-top: 29px; }
.contatti__text { padding-top: 50px; }
.contatti__text a { color: inherit; }

/* Mappa caricata al clic (M5) */
.map { height: var(--map-h, 350px); background: #e5e3df; }
.map iframe { display: block; width: 100%; height: 100%; border: 0; }
.map__ph {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center; color: #555;
}
.map__pin { width: 40px; height: 40px; fill: var(--primary); margin-bottom: 6px; }
.map__addr { margin: 0 0 14px; font-size: 15px; font-weight: 600; color: var(--heading); }
.map__note { margin: 14px 0 0; font-size: 12px; line-height: 1.5; }

@media (max-width: 765px) {
  .title { overflow-wrap: break-word; }
  .cols2 { grid-template-columns: 1fr; width: auto; margin: 0 35px; }
  .sec--chi { padding: 60px 0 60px; }
  .sec--chi .title, .sec--espositori .title { padding: 0 35px; }
  .sec--servizi { padding: 60px 0 120px; }
  .servizi-box { width: auto; margin: 0 35px; }
  .servizi-box__intro { padding: 0 20px; }
  .servizi-box__lists { display: block; padding: 0 20px; }
  .servizi-box .subtitle { margin: 46px 0 70px; }
  .masonry--sambro { --cols: 2; }
  .espositori__text { width: auto; margin: 0 35px; }
  .masonry--espositori { --cols: 2; --gap: 3px; margin: 0 35px; }
  .half { grid-template-columns: 1fr; }
  .half__text, .half--text-right .half__text { order: 0; padding: 70px 20px 0; }
  .half__img { min-height: 0; padding: 0 20px 10px; }
  .half__img img { position: static; height: auto; }
  .sec--contatti { padding: 40px 0 10px; }
  .contatti { margin-top: 0; row-gap: 29px; }
  .contatti__text { padding-top: 0; }
}

/* ---------------------------------------------------------------- Lightbox (M10) */
.lightbox {
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(0, 0, 0, .92); color: #fff;
}
.lightbox::backdrop { background: rgba(0, 0, 0, .6); }
.lightbox__fig { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 60px 40px; }
.lightbox__img { max-width: 100%; max-height: calc(100% - 40px); width: auto; height: auto; object-fit: contain; }
.lightbox__cap { margin-top: 12px; font-size: 14px; text-align: center; }
.lightbox__count { position: absolute; top: 14px; left: 20px; margin: 0; font-size: 14px; }
.lightbox__btn {
  position: absolute; width: 48px; height: 48px; padding: 10px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer;
}
.lightbox__btn:hover, .lightbox__btn:focus-visible { background: rgba(255, 255, 255, .28); }
.lightbox__btn svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__close { top: 8px; right: 8px; }
.lightbox__prev { left: 8px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 8px; top: 50%; margin-top: -24px; }
.lightbox__btn[hidden] { display: none; }
.lightbox-open { overflow: hidden; }
@media (max-width: 765px) {
  .lightbox__fig { padding: 56px 10px 30px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 10px; margin-top: 0; }
}

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--primary); color: #fff; font-size: 14px; line-height: 1.66; }
.site-footer a { color: #fff; }
.site-footer__inner {
  display: grid; grid-template-columns: 1fr 1fr; align-items: start;
  max-width: var(--container); margin: 0 auto; padding: 40px 0 50px;
}
.site-footer__col { padding: 0 22px 0 42px; }
.site-footer__legal { margin: 0 0 8px; }
.site-footer__links { margin: 0; font-size: 13px; }
.site-footer__col--credits { display: flex; justify-content: center; padding: 20px 20px 0 0; }
.site-footer__credits { display: block; line-height: 0; }
.site-footer__credits-img { width: 200px; height: auto; }
@media (max-width: 765px) {
  .site-footer__inner { grid-template-columns: 1fr; padding: 60px 0 30px; text-align: center; }
  .site-footer__col { padding: 0 27px; }
  .site-footer__col--credits { padding-top: 40px; }
}

/* ---------------------------------------------------------------- Pagine semplici (privacy, cookie, 404) */
.page-simple { padding: 60px var(--gutter) 80px; }
.narrow { max-width: 860px; margin: 0 auto; }
.prose { font-size: 16px; line-height: 1.66; }
.prose .title { font-size: 32px; }
.prose h2 { font-size: 20px; color: var(--heading); margin: 30px 0 10px; }
.prose ul { padding-left: 20px; margin: 0 0 20px; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 14px; }
.prose th, .prose td { border: 1px solid #ddd; padding: 8px; text-align: left; vertical-align: top; }
.prose th { background: #f2f6fa; }
.table-wrap { overflow-x: auto; }

/* ---------------------------------------------------------------- Banner cookie */
.cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--primary); color: #fff;
  padding: 18px max(var(--gutter), calc((100% - 1140px) / 2));
  box-shadow: 0 -4px 16px rgba(0, 0, 0, .25);
  display: grid; grid-template-columns: 1fr auto; gap: 6px 30px; align-items: center;
}
.cookie[hidden] { display: none; }
.cookie { max-height: 100vh; max-height: 100dvh; overflow-y: auto; }
.cookie__title { grid-column: 1; margin: 0; font-weight: 700; font-size: 15px; padding-right: 30px; }
.cookie__text { grid-column: 1; margin: 0; font-size: 13px; line-height: 1.5; }
.cookie__text a { color: #fff; text-decoration: underline; }
.cookie__prefs { grid-column: 1 / -1; display: grid; gap: 8px; margin: 8px 0; font-size: 13px; }
.cookie__prefs[hidden] { display: none; }
.cookie__opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.cookie__opt input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: #fff; }
.cookie__actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cookie__prefs:not([hidden]) ~ .cookie__actions { grid-column: 1 / -1; grid-row: auto; }
.cookie .btn { padding: 11px 18px; }
.cookie .btn[hidden] { display: none; }
.btn--outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.btn--outline:hover, .btn--outline:focus-visible { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 2px #fff; }
.cookie__close { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cookie__close .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; }
@media (max-width: 899px) {
  .cookie { grid-template-columns: 1fr; padding: 16px var(--gutter); }
  .cookie__actions { grid-column: 1; grid-row: auto; justify-content: stretch; }
  .cookie__actions .btn { flex: 1 1 auto; }
}

