/* =========================================================
   Delta Company SRL — versione "classica" (sezioni del sito storico)
   ========================================================= */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap; src: url('../fonts/inter.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 600 800; font-display: swap; src: url('../fonts/plus-jakarta-sans.woff2') format('woff2'); }

:root {
  --brand: #B3262A;        /* rosso del logo */
  --brand-dark: #8C1B1F;
  --accent: #E8952F;       /* fiamma */
  --accent-soft: #F6D9A8;
  --ink: #1C1512;
  --text: #3A302B;
  --muted: #6E625A;
  --bg: #FFFFFF;
  --bg-alt: #FAF5EE;
  --bg-dark: #1A1310;
  --line: #EAE1D6;
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --shadow-sm: 0 2px 8px rgba(28,21,18,.06);
  --shadow-md: 0 10px 30px rgba(28,21,18,.10);
  --shadow-lg: 0 24px 60px rgba(28,21,18,.18);
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --nav-h: 78px;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: rgba(255,255,255,.78); }
.section-dark h2, .section-dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.section-dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--accent-soft); }
.lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 640px; }
.text-accent { color: var(--brand); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--accent); }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px rgba(179,38,42,.28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn svg { width: 18px; height: 18px; flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); gap: 24px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-brand img { width: 52px; height: auto; }
.nav-brand span { font-family: var(--font-display); font-weight: 800; color: var(--brand); letter-spacing: .04em; font-size: 1.12rem; line-height: 1.1; }
.nav-brand small { display: block; font-family: var(--font-body); font-weight: 500; letter-spacing: .02em; color: var(--muted); font-size: .72rem; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; transition: color .2s, background .2s; }
.nav-menu a:hover { color: var(--brand); background: var(--bg-alt); }
.nav-menu a[aria-current="page"] { color: var(--brand); font-weight: 600; }
.nav-menu .nav-cta { margin-left: 10px; }
.nav-menu .nav-cta .btn { padding: 11px 22px; color: #fff; }
.nav-menu .nav-cta .btn:hover { background: var(--brand-dark); color: #fff; }

/* --- menu mobile (templates/menu.css) --- */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; position: relative; z-index: 101; }
.nav-toggle span { display: block; width: 20px; height: 1.6px; background: var(--ink); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 89; background: rgba(0,0,0,.45); border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .38s var(--ease), visibility 0s linear .38s; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu { position: fixed; inset: 0 0 0 auto; z-index: 100; width: min(86vw, 360px); background: var(--bg); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 100px 26px 40px; box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .38s var(--ease), visibility 0s linear .38s; }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu a { padding: 14px 16px; font-size: 1.05rem; border-radius: 12px; }
  .nav-menu .nav-cta { margin: 14px 0 0; }
  .nav-menu .nav-cta .btn { width: 100%; }
}

/* hero */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--bg-dark); }
.hero-bg, .page-hero-bg { position: absolute; inset: 0; }
.hero-bg img, .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,13,10,.88) 0%, rgba(20,13,10,.62) 48%, rgba(20,13,10,.25) 100%); }
.hero .container { position: relative; z-index: 1; padding: 90px 0; }
.hero h1 { color: #fff; max-width: 760px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: rgba(255,255,255,.85); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; padding: 0; list-style: none; font-size: .95rem; color: rgba(255,255,255,.8); }
.hero-badges li { display: flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 18px; height: 18px; color: var(--accent); }

/* pagine interne */
.page-hero { position: relative; padding: clamp(90px, 13vw, 150px) 0 clamp(60px, 8vw, 90px); color: #fff; background: var(--bg-dark); overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,13,10,.9), rgba(20,13,10,.55)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero .lead { color: rgba(255,255,255,.82); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 18px; font-size: .9rem; color: rgba(255,255,255,.7); }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }

/* card vantaggi */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--accent)); color: #fff; margin-bottom: 22px; }
.card-icon svg { width: 26px; height: 26px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 600; text-decoration: none; }
.card-link:hover { text-decoration: underline; }
.card-link svg { width: 16px; height: 16px; flex: none; }
.check-list svg, .hero-badges svg, .contact-list svg { flex: none; }

/* split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.split-media { position: relative; }
.split-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }
.split-media .media-tag { position: absolute; left: -18px; bottom: 28px; background: var(--brand); color: #fff; padding: 16px 22px; border-radius: 14px; box-shadow: var(--shadow-md); font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.split-media .media-tag strong { display: block; font-size: 1.8rem; font-weight: 800; }
.split.reverse .split-media { order: 2; }
.check-list { list-style: none; padding: 0; margin: 22px 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.check-list svg { width: 22px; height: 22px; color: var(--brand); flex: none; margin-top: 2px; }

/* servizi */
.service { display: grid; grid-template-columns: 220px 1fr; gap: 26px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-sm); scroll-margin-top: 100px; }
.service img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.service .label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 6px; }
.service h3 { margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 1rem; margin-bottom: 10px; }
.service .card-link { margin-top: 0; }

/* pilastri chi siamo */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pillar { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 34px 30px; }
.pillar .num { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--accent); line-height: 1; margin-bottom: 14px; display: block; }
.pillar p { font-size: 1rem; margin: 0; }

/* galleria */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; gap: 14px; }
.gallery a { display: block; overflow: hidden; border-radius: 14px; position: relative; aspect-ratio: 1; background: var(--bg-alt); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery a:hover img { transform: scale(1.06); }
.gallery a.wide { grid-column: span 2; aspect-ratio: auto; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(12,8,6,.94); display: none; align-items: center; justify-content: center; padding: 60px 20px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(100%, 1000px); max-height: 82vh; width: auto; border-radius: 10px; }
.lightbox figcaption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .95rem; padding: 0 20px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 50px; height: 50px; border-radius: 50%; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.lightbox button:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* CTA banner */
.cta-banner { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 70px); background: linear-gradient(120deg, var(--brand-dark), var(--brand) 55%, #C9452A); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p { color: rgba(255,255,255,.88); margin: 0; max-width: 600px; }
.cta-banner .hero-cta { margin-top: 0; }
.cta-banner .btn-primary { background: #fff; color: var(--brand); box-shadow: none; }
.cta-banner .btn-primary:hover { background: var(--accent-soft); }

/* contatti */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 60px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.contact-list .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-alt); color: var(--brand); flex: none; }
.contact-list .ic svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--font-display); color: var(--ink); margin-bottom: 2px; }
.contact-list a { color: var(--text); text-decoration: none; }
.contact-list a:hover { color: var(--brand); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo.full { grid-column: 1 / -1; }
.campo label { font-weight: 600; font-size: .95rem; color: var(--ink); }
.campo input, .campo textarea, .campo select { font: inherit; font-size: 1rem; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.campo input:focus, .campo textarea:focus, .campo select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(179,38,42,.12); }
.campo textarea { min-height: 140px; resize: vertical; }
.spunta { grid-column: 1 / -1; display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); }
.spunta input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.trappola { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-esito { margin-top: 14px; font-weight: 600; min-height: 1.4em; }
.form-esito.ok { color: #1F7A3A; }
.form-esito.ko { color: var(--brand); }
[aria-invalid="true"] { border-color: var(--brand) !important; }
.map-link { display: block; position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.map-link img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* testi legali */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }

/* footer */
.site-footer { background: var(--bg-dark); color: rgba(255,255,255,.68); padding: 76px 0 0; font-size: .97rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 50px; }
.footer-logo { width: 170px; height: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: 1rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 22px 0 26px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.footer-bottom p { margin: 0; }
.footer-credit a { color: var(--accent-soft); }

/* bottone chiamata flottante (come sul sito storico) */
.call-float { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: inline-flex; align-items: center; gap: 10px; background: var(--brand); color: #fff; text-decoration: none; padding: 13px 20px; border-radius: 999px; font-family: var(--font-display); font-weight: 700; box-shadow: 0 12px 28px rgba(179,38,42,.38); transition: transform .25s var(--ease); }
.call-float:hover { transform: translateY(-2px); }
.call-float svg { width: 20px; height: 20px; }

/* reveal: visibile di default, si anima solo se il JS è attivo */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .pillars { grid-template-columns: 1fr; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
  .split-media .media-tag { left: 14px; }
  .cta-banner { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .service { grid-template-columns: 1fr; }
  .service img { aspect-ratio: 16/10; }
  .form-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .gallery a.wide { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr; }
  .call-float span { display: none; }
  .call-float { padding: 15px; }
  .nav-brand small { display: none; }
  .hero-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
