/* ==========================================================================
   Flavio Consolino – tema sito (responsive, senza dipendenze esterne)
   ========================================================================== */
:root {
  --primary: #0c4da2;
  --primary-700: color-mix(in srgb, var(--primary) 78%, #000);
  --primary-50: color-mix(in srgb, var(--primary) 7%, #fff);
  --accent: #00a651;
  --accent-700: color-mix(in srgb, var(--accent) 80%, #000);
  --dark: #0b1b33;
  --text: #24324a;
  --muted: #64748b;
  --line: #e3e8ef;
  --light: #f4f7fb;
  --white: #fff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 27, 51, .08);
  --shadow-lg: 0 20px 50px rgba(11, 27, 51, .16);
  --container: 1200px;
  --header-h: 84px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-700); }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--dark); line-height: 1.2; margin: 0 0 .6em; font-weight: 750; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
button { font: inherit; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.icon--sm { width: .95em; height: .95em; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 22px; }
.container-narrow { max-width: 860px; margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.mt { margin-top: 2.5rem; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--dark); color: #fff; padding: 10px 16px; z-index: 1000; }
.skip-link:focus { left: 10px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, #fff); outline-offset: 2px; }

/* Bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.5em; border-radius: 999px; border: 2px solid transparent; font-weight: 650; font-size: .98rem; line-height: 1.2; cursor: pointer; transition: transform .2s, background .2s, color .2s, box-shadow .2s, border-color .2s; text-align: center; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: .6em 1.15em; font-size: .9rem; white-space: nowrap; }
.btn--lg { padding: 1em 1.8em; font-size: 1.05rem; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--primary) 30%, transparent); }
.btn--primary:hover { background: var(--primary-700); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn--accent:hover { background: var(--accent-700); color: #fff; }
.btn--ghost { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn--ghost:hover { background: var(--primary); color: #fff; }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { color: var(--primary-700); box-shadow: var(--shadow-lg); }
.btn--outline-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--dark); border-radius: 50%; cursor: pointer; }
.icon-btn:hover { background: var(--light); }

/* Topbar */
.topbar { background: var(--dark); color: rgba(255,255,255,.82); font-size: .86rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 16px; }
.topbar a, .topbar span { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__social { display: flex; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); transition: box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11,27,51,.08); }
.site-header__inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); transition: min-height .3s; }
.site-header.is-scrolled .site-header__inner { min-height: 68px; }
.brand img { height: 62px; width: auto; transition: height .3s; }
.site-header.is-scrolled .brand img { height: 50px; }
.brand__text { font-weight: 800; font-size: 1.3rem; color: var(--primary); }
.main-nav { margin-left: auto; }
.menu { list-style: none; display: flex; gap: 2px; margin: 0; padding: 0; }
.menu__item { position: relative; }
.menu__item > a { display: flex; align-items: center; gap: 4px; padding: 10px 12px; color: var(--dark); font-weight: 600; font-size: .95rem; border-radius: 8px; white-space: nowrap; }
.menu__item > a:hover, .menu__item.is-active > a { color: var(--primary); background: var(--primary-50); }
.submenu { list-style: none; margin: 0; padding: 8px; position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .2s; }
.menu__item:hover > .submenu, .menu__item:focus-within > .submenu, .menu__item.is-open > .submenu { opacity: 1; visibility: visible; transform: none; }
.submenu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: .94rem; }
.submenu a:hover { background: var(--primary-50); color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--dark); border-radius: 2px; transition: .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-search { display: none; }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; }
.search-panel form { display: flex; align-items: center; gap: 12px; }
.search-panel input { flex: 1; border: 0; font-size: 1.15rem; padding: 10px 0; outline: none; background: transparent; }

/* Hero slider */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #fff; }
.hero--medium .hero__slide { min-height: 440px; }
.hero--large .hero__slide { min-height: min(680px, 82vh); }
.hero--full .hero__slide { min-height: calc(100vh - var(--header-h) - 40px); }
.hero__track { display: grid; }
.hero__slide { grid-area: 1 / 1; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; position: relative; }
.hero__slide.is-active { opacity: 1; visibility: visible; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero__slide.is-active .hero__bg { transform: scale(1); }
.hero__slide::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.hero--overlay-dark .hero__slide::after { background: linear-gradient(90deg, rgba(8,20,40,.88) 0%, rgba(8,20,40,.6) 50%, rgba(8,20,40,.25) 100%); }
.hero--overlay-brand .hero__slide::after { background: linear-gradient(100deg, color-mix(in srgb, var(--primary) 92%, #000) 0%, color-mix(in srgb, var(--primary) 55%, transparent) 70%); }
.hero--overlay-light .hero__slide::after { background: rgba(8,20,40,.35); }
.hero__content { position: relative; z-index: 2; padding-top: 80px; padding-bottom: 100px; }
.hero__content--left > * { max-width: 680px; }
.hero__content--center { text-align: center; }
.hero__content--center > * { margin-left: auto; margin-right: auto; max-width: 820px; }
.hero__content--center .btn-row { justify-content: center; }
.hero__eyebrow { display: inline-block; padding: 6px 14px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 90%, transparent); font-weight: 700; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.hero__title { color: #fff; font-size: clamp(2.1rem, 5vw, 3.6rem); margin-bottom: .4em; text-wrap: balance; }
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.88); margin-bottom: 1.8em; }
.hero__slide .hero__content > * { opacity: 0; transform: translateY(24px); transition: .8s cubic-bezier(.2,.7,.2,1); }
.hero__slide.is-active .hero__content > * { opacity: 1; transform: none; }
.hero__slide.is-active .hero__content > *:nth-child(2) { transition-delay: .12s; }
.hero__slide.is-active .hero__content > *:nth-child(3) { transition-delay: .24s; }
.hero__slide.is-active .hero__content > *:nth-child(4) { transition-delay: .36s; }
.hero__arrow { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(4px); transition: .2s; }
.hero__arrow:hover { background: #fff; color: var(--dark); }
.hero__arrow--prev { left: 22px; }
.hero__arrow--next { right: 22px; }
.hero__dots { position: absolute; z-index: 3; bottom: 30px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero__dots button { width: 12px; height: 12px; border-radius: 999px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; padding: 0; }
.hero__dots button.is-active { width: 34px; background: var(--accent); }

/* Sezioni */
.section { padding: clamp(60px, 8vw, 100px) 0; }
.section--light { background: var(--light); }
.section--brand { background: linear-gradient(135deg, var(--primary), var(--primary-700)); color: #fff; }
.section--dark { background: var(--dark); color: rgba(255,255,255,.85); }
.section--brand h2, .section--brand h3, .section--dark h2, .section--dark h3 { color: #fff; }
.section--content + .section--gallery { padding-top: 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head--left { text-align: left; margin-left: 0; }
.eyebrow { display: inline-block; color: var(--accent-700); font-weight: 750; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.section--brand .eyebrow, .section--dark .eyebrow { color: color-mix(in srgb, var(--accent) 60%, #fff); }
.lead { font-size: 1.12rem; color: var(--muted); }
.section--brand .lead, .section--dark .lead { color: rgba(255,255,255,.8); }
.grid { display: grid; gap: 28px; grid-template-columns: repeat(var(--g, 3), minmax(0, 1fr)); }
.grid--2 { --g: 2; } .grid--3 { --g: 3; } .grid--4 { --g: 4; }

/* Testo + immagine */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--img-left .split__media { order: -1; }
.split__media { position: relative; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.badge-float { position: absolute; left: -24px; bottom: -24px; background: var(--accent); color: #fff; border-radius: var(--radius); padding: 18px 26px; box-shadow: var(--shadow-lg); text-align: center; }
.split--img-left .badge-float { left: auto; right: -24px; }
.badge-float small { display: block; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; font-size: .78rem; opacity: .9; }
.badge-float strong { font-size: 2.3rem; line-height: 1; }
.checklist { list-style: none; padding: 0; margin: 1.2em 0 1.8em; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 550; }
.checklist .icon { color: var(--accent); margin-top: .2em; }

/* Prose (contenuti editor) */
.prose { font-size: 1.05rem; }
.prose--narrow { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: 1.6em; } .prose h3, .prose h4 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose iframe { width: 100%; max-width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius-sm); margin: 1em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose th { background: var(--light); }
.prose blockquote { border-left: 4px solid var(--accent); margin: 1.5em 0; padding: .5em 1.2em; background: var(--light); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.post-meta { color: var(--muted); display: flex; gap: 6px; align-items: center; }

/* Servizi */
.service { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; border: 1px solid var(--line); }
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service__media { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; }
.service__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service:hover .service__media img { transform: scale(1.07); }
.service__icon { position: relative; z-index: 1; margin: -50px 0 14px;  width: 52px; height: 52px; border-radius: 14px; background: var(--primary); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 18px color-mix(in srgb, var(--primary) 40%, transparent); }
.service__icon .icon { width: 26px; height: 26px; }
.service__icon--static { margin: 28px 24px 0; }
.service__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.service--icon .service__body { padding-top: 18px; }
.service__body h3 a { color: var(--dark); }
.service__body h3 a:hover { color: var(--primary); }
.service__body p { color: var(--muted); font-size: .98rem; flex: 1; }

/* Card news/prodotti */
.card { background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; height: 100%; transition: transform .3s, box-shadow .3s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card__media { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; background: var(--light); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card--product .card__media img { object-fit: contain; padding: 18px; background: #fff; }
.card:hover .card__media img { transform: scale(1.05); }
.card__placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
.card__badge { position: absolute; top: 12px; left: 12px; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__date { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 6px; }
.card__title { font-size: 1.12rem; margin-bottom: .3em; }
.card__title a { color: var(--dark); }
.card__title a:hover { color: var(--primary); }
.card__subtitle { color: var(--primary); font-weight: 600; font-size: .95rem; margin-bottom: .6em; }
.card__text { color: var(--muted); font-size: .95rem; flex: 1; }
.card__link { margin-top: auto; font-weight: 700; font-size: .93rem; display: inline-flex; align-items: center; gap: 6px; }
.card__link .icon { transition: transform .2s; }
.card__link:hover .icon { transform: translateX(4px); }

/* Carosello */
.carousel { position: relative; }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--cols, 3) - 1) * 24px) / var(--cols, 3)); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 18px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { scroll-snap-align: start; }
.carousel__btn { position: absolute; top: 40%; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--dark); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: .2s; }
.carousel__btn:hover { background: var(--primary); color: #fff; }
.carousel__btn--prev { left: -22px; } .carousel__btn--next { right: -22px; }

/* Punti di forza */
.feature { text-align: center; padding: 10px 12px; }
.feature__icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 20px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); transition: .3s; }
.feature:hover .feature__icon { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.feature__icon .icon { width: 32px; height: 32px; }
.feature p { color: var(--muted); font-size: .98rem; }
.section--brand .feature p, .section--dark .feature p { color: rgba(255,255,255,.75); }
.section--brand .feature__icon, .section--dark .feature__icon { background: rgba(255,255,255,.1); color: #fff; }

/* Numeri */
.section--stats { padding: 64px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; text-align: center; }
.stat__icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.12); margin-bottom: 10px; }
.section--white .stat__icon, .section--light .stat__icon { background: var(--primary-50); color: var(--primary); }
.stat__icon .icon { width: 26px; height: 26px; }
.stat__num { display: block; font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 800; line-height: 1.1; }
.section--white .stat__num, .section--light .stat__num { color: var(--primary); }
.stat__label { opacity: .85; font-weight: 550; }

/* Marchi */
.brands { overflow: hidden; }
.brands--carousel { mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.brands__track { display: flex; align-items: center; gap: 56px; }
.brands--carousel .brands__track { width: max-content; animation: marquee 32s linear infinite; }
.brands--carousel:hover .brands__track { animation-play-state: paused; }
.brands--grid .brands__track { flex-wrap: wrap; justify-content: center; }
.brand-logo { display: grid; place-items: center; height: 90px; min-width: 150px; padding: 10px 18px; }
.brand-logo img { max-height: 70px; max-width: 190px; width: auto; object-fit: contain; transition: filter .3s, opacity .3s; }
.brands--gray .brand-logo img { filter: grayscale(1); opacity: .65; }
.brands--gray .brand-logo:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(calc(-50% - 28px)); } }

/* Galleria */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-grid__item { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: var(--radius-sm); background: var(--light); }
.gallery-grid__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid__zoom { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--primary) 55%, transparent); color: #fff; opacity: 0; transition: .3s; }
.gallery-grid__item:hover img { transform: scale(1.08); }
.gallery-grid__item:hover .gallery-grid__zoom { opacity: 1; }
.gallery-grid__zoom .icon { width: 32px; height: 32px; }

/* CTA */
.cta { position: relative; padding: 70px 0; color: #fff; overflow: hidden; }
.cta--brand { background: linear-gradient(120deg, var(--primary), color-mix(in srgb, var(--primary) 70%, var(--accent))); }
.cta--green { background: linear-gradient(120deg, var(--accent-700), var(--accent)); }
.cta--dark { background: var(--dark); }
.cta--image::before { content: ""; position: absolute; inset: 0; background: rgba(8,20,40,.72); z-index: 1; }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__inner { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: .25em; }
.cta p { color: rgba(255,255,255,.88); margin: 0; font-size: 1.1rem; }
.cta::after { content: ""; position: absolute; right: -120px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.07); }

/* Recensioni */
.testimonial { margin: 0; background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.stars { display: flex; gap: 3px; color: #cbd5e1; margin-bottom: 12px; }
.stars .is-on { color: #f5b301; fill: #f5b301; }
.testimonial blockquote { margin: 0 0 18px; font-size: 1.02rem; }
.testimonial figcaption strong { display: block; color: var(--dark); }
.testimonial figcaption span { color: var(--muted); font-size: .9rem; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq__item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 650; color: var(--dark); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { transition: transform .3s; color: var(--primary); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__answer { padding: 0 22px 20px; color: var(--muted); }

/* Video */
.split--video { grid-template-columns: 1fr 1.3fr; }
.video-embed { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--dark), var(--primary)); box-shadow: var(--shadow-lg); }
.video-embed img { width: 100%; height: 100%; object-fit: cover; opacity: .8; }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-embed__play { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255,255,255,.18); transition: transform .2s; }
.video-embed__play:hover { transform: scale(1.08); }
.video-embed__play svg { width: 34px; height: 34px; margin-left: 4px; }
.video-embed__note { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .78rem; }

/* Contatti */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 36px; align-items: start; }
.contact-info { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-card__icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; }
.contact-card strong { display: block; color: var(--dark); margin-bottom: 4px; }
.contact-card p { margin: 0; }
.contact-card small { color: var(--muted); }
.contact-form-wrap { background: #fff; border-radius: var(--radius); padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: .92rem; font-weight: 600; color: var(--dark); }
.field--full { grid-column: 1 / -1; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fbfcfe; color: var(--text); transition: border-color .2s, box-shadow .2s; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); background: #fff; }
.field--captcha { grid-column: 1 / -1; background: var(--light); padding: 14px; border-radius: 10px; }
.field--captcha input { max-width: 180px; }
.field--captcha strong { color: var(--primary); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { margin-top: .3em; width: 18px; height: 18px; accent-color: var(--primary); }
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.alert { padding: 14px 16px; border-radius: 10px; margin-bottom: 18px; display: flex; gap: 10px; align-items: flex-start; font-weight: 550; }
.alert--success { background: #e7f8ef; color: #0d6b3a; border: 1px solid #b9ebcf; }
.alert--error { background: #fdecec; color: #a01d1d; border: 1px solid #f6c6c6; }
.map-embed { margin-top: 36px; border-radius: var(--radius); overflow: hidden; height: 400px; background: var(--light); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-embed__placeholder { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--muted); padding: 20px; }
.map-embed__placeholder > .icon { width: 42px; height: 42px; color: var(--primary); }

/* Header pagina interna */
.page-hero { position: relative; background: linear-gradient(120deg, var(--dark), var(--primary)); color: #fff; padding: clamp(50px, 7vw, 90px) 0; overflow: hidden; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,20,40,.9), rgba(8,20,40,.55)); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__inner { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; margin-bottom: .2em; max-width: 900px; }
.page-hero__subtitle { font-size: 1.2rem; color: rgba(255,255,255,.85); margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 14px; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.9); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* Prodotto */
.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(30px, 5vw, 60px); margin-bottom: 50px; align-items: start; }
.product__main { display: block; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 20px; }
.product__main img { width: 100%; aspect-ratio: 4/3; object-fit: contain; }
.product__thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.product__thumbs button { width: 82px; height: 82px; padding: 6px; border-radius: 10px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.product__thumbs button.is-active { border-color: var(--primary); }
.product__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product__title { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.product__desc { max-width: none; border-top: 1px solid var(--line); padding-top: 40px; }
.product__desc div { margin-bottom: .3em; }

/* Ricerca, paginazione, 404 */
.search-big { display: flex; gap: 12px; margin-bottom: 30px; }
.search-big input { flex: 1; font: inherit; padding: 14px 18px; border: 1.5px solid var(--line); border-radius: 999px; }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.search-results a { display: flex; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--text); align-items: center; }
.search-results a:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.search-results img { width: 80px; height: 80px; object-fit: contain; border-radius: 8px; background: var(--light); }
.search-results span { display: flex; flex-direction: column; }
.search-results small { color: var(--accent-700); font-weight: 700; text-transform: uppercase; font-size: .75rem; letter-spacing: .08em; }
.search-results strong { color: var(--dark); }
.search-results em { font-style: normal; color: var(--muted); font-size: .94rem; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 44px; }
.pagination a { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); font-weight: 650; }
.pagination a.is-current { background: var(--primary); border-color: var(--primary); color: #fff; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }
.big-404 { font-size: clamp(6rem, 18vw, 11rem); font-weight: 900; line-height: 1; margin: 0; background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Footer */
.site-footer { background: var(--dark); color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 70px; padding-bottom: 50px; }
.footer-logo { background: #fff; display: inline-block; padding: 10px 14px; border-radius: 10px; margin-bottom: 18px; }
.footer-logo img { height: 52px; width: auto; }
.site-footer h3 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.site-footer h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--accent); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; }
.contact-list .icon { color: var(--accent); margin-top: .25em; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); }
.footer-social a:hover { background: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: .86rem; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; }

/* Elementi flottanti */
.whatsapp-fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 25px rgba(37,211,102,.45); transition: transform .2s; }
.whatsapp-fab:hover { transform: scale(1.08); color: #fff; }
.whatsapp-fab .icon { width: 30px; height: 30px; }
.to-top { position: fixed; right: 30px; bottom: 92px; z-index: 89; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: .3s; }
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top:hover { color: #fff; background: var(--primary-700); }
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 200; max-width: 520px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px; border: 1px solid var(--line); display: grid; gap: 14px; font-size: .92rem; }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 4px 0 0; color: var(--muted); }
.cookie-banner__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(5,12,25,.94); display: flex; align-items: center; justify-content: center; padding: 60px 70px; }
.lightbox img { max-height: 100%; max-width: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255,255,255,.25); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 14px; top: 50%; transform: translateY(-50%); }
.lightbox__caption { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.85); }

/* Animazioni */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 1240px) {
  .menu__item > a { padding: 10px 8px; font-size: .9rem; }
  .brand img { height: 54px; }
}
@media (max-width: 1100px) {
  .grid--4 { --g: 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --header-h: 72px; }
  .site-header { backdrop-filter: none; background: #fff; }
  .nav-toggle { display: inline-flex; }
  .search-toggle { display: none; }
  .brand img { height: 52px; }
  .main-nav { position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-top, 112px); height: auto; background: #fff; padding: 16px 22px 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility .35s; margin: 0; z-index: 99; }
  .main-nav.is-open { transform: none; visibility: visible; }
  .menu { flex-direction: column; gap: 0; }
  .menu__item > a { padding: 14px 6px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; justify-content: space-between; }
  .submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; display: none; padding: 4px 0 8px 12px; min-width: 0; }
  .menu__item.is-open > .submenu { display: block; }
  .menu__item.is-open > a .icon { transform: rotate(180deg); }
  .nav-search { display: flex; margin-top: 20px; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; }
  .nav-search input { flex: 1; border: 0; padding: 12px 18px; font: inherit; outline: none; }
  .nav-search button { border: 0; background: var(--primary); color: #fff; padding: 0 18px; }
  body.nav-open { overflow: hidden; }
  .split, .split--video, .contact-grid, .product { grid-template-columns: 1fr; }
  .split--img-left .split__media { order: 0; }
  .badge-float { left: 16px; bottom: -20px; }
  .split--img-left .badge-float { right: 16px; }
  .grid--3, .grid--4 { --g: 2; }
  .carousel__track { grid-auto-columns: calc((100% - 24px) / 2); }
  .carousel__btn--prev { left: -8px; } .carousel__btn--next { right: -8px; }
  .hero__arrow { display: none; }
  .hide-md { display: none !important; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hide-sm { display: none !important; }
  .grid, .grid--2, .grid--3, .grid--4 { --g: 1; }
  .carousel__track { grid-auto-columns: 85%; }
  .carousel__btn { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .hero__content { padding-top: 60px; padding-bottom: 80px; }
  .hero--large .hero__slide { min-height: 560px; }
  .hero__overlay-dark .hero__slide::after { background: rgba(8,20,40,.7); }
  .topbar__info { gap: 14px; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
  .lightbox { padding: 60px 10px; }
  .search-big { flex-direction: column; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media print {
  .topbar, .site-header, .whatsapp-fab, .to-top, .cookie-banner, .site-footer { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}
