/* Alfa Pack – stile del sito pubblico */
@font-face { font-family: 'Inter'; font-weight: 400; font-display: swap; src: url('/fonts/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 500; font-display: swap; src: url('/fonts/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 600; font-display: swap; src: url('/fonts/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-weight: 700; font-display: swap; src: url('/fonts/inter-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 600; font-display: swap; src: url('/fonts/barlow-condensed-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Barlow Condensed'; font-weight: 700; font-display: swap; src: url('/fonts/barlow-condensed-latin-700-normal.woff2') format('woff2'); }

:root {
  --ink: #231F20;
  --ink-2: #3A3536;
  --paper: #FAF8F4;
  --white: #FFFFFF;
  --sand: #E9E4DB;
  --sand-2: #EFEBE4;
  --line: #E2DED8;
  --muted: #4A4446;
  --muted-2: #5E5759;
  --gold: #F4B800;
  --gold-ink: #6B5A1E;
  --gold-deep: #8A6A00;
  --on-dark: #D9D4CE;
  --display: 'Barlow Condensed', 'Arial Narrow', Inter, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--ink); padding: 10px 16px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .wrap, .wrap-narrow { padding-left: 16px; padding-right: 16px; } }

/* Tipografia */
.eyebrow { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.display { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1; letter-spacing: .005em; }
h1.display { font-size: clamp(44px, 6.5vw, 72px); }
h2.display { font-size: clamp(34px, 4.5vw, 48px); }
.h3 { margin: 0; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 28px; line-height: 1.05; }
.lead { margin: 0; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--muted); max-width: 640px; }
.muted { color: var(--muted); }
.accent { color: var(--gold-deep); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 14px 24px; border-radius: 8px; font: 600 16px/1.2 var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E0A800; color: var(--ink); }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-line-light { background: transparent; color: var(--white); border-color: var(--white); }
.btn-line-light:hover { background: var(--white); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* Intestazione */
.site-header { background: var(--ink); position: relative; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 14px; padding-bottom: 14px; }
.brand img { height: 58px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav a[aria-current="page"] { font-weight: 600; }
.nav .tel { color: var(--gold); font-weight: 600; white-space: nowrap; }
.nav .btn { padding: 12px 20px; min-height: 44px; }
.nav .btn, .nav .btn:hover, .nav .btn[aria-current="page"] { color: var(--ink); }
.menu-toggle { display: none; }
@media (max-width: 960px) {
  .brand img { height: 42px; }
  .menu-toggle { display: block; }
  .menu-toggle summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; color: var(--white); font-weight: 600; padding: 10px 12px; border: 1px solid #5a5354; border-radius: 8px; min-height: 44px; }
  .menu-toggle summary::-webkit-details-marker { display: none; }
  .menu-toggle[open] .nav { display: flex; }
  .nav-desktop { display: none; }
  .menu-toggle .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-top: 1px solid var(--ink-2); padding: 8px 16px 20px; display: none; }
  .menu-toggle .nav a { padding: 14px 4px; border-bottom: 1px solid var(--ink-2); }
  .menu-toggle .nav .btn { margin-top: 12px; border-bottom: none; }
}
@media (min-width: 961px) { .menu-toggle { display: none; } }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
@media (max-width: 860px) { .hero { padding: 40px 0; } .hero .wrap { grid-template-columns: 1fr; gap: 32px; } }

/* Segnaposto per le foto */
.ph { background: var(--sand); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--gold-ink); overflow: hidden; position: relative; }
.ph svg { width: 34%; height: auto; max-width: 140px; opacity: .9; }
.ph-hero { aspect-ratio: 5 / 4; background: var(--ink); color: var(--gold); }
.ph-hero .ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 40px; width: 100%; }
.ph-hero .ph-grid svg { width: 100%; max-width: none; }
.media { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* Fascia punti di forza */
.strip { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; padding-top: 32px; padding-bottom: 32px; }
.strip h3 { margin: 0 0 4px; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 24px; line-height: 1.1; }
.strip p { margin: 0; font-size: 15px; color: var(--muted); }

/* Sezioni */
.section { padding: 80px 0; }
.section-sm { padding: 56px 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark { background: var(--ink); color: var(--white); }
.section-dark .lead, .section-dark p { color: var(--on-dark); }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 32px; }
@media (max-width: 600px) { .section { padding: 56px 0; } }

/* Schede famiglie */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--ink); transform: translateY(-2px); color: var(--ink); }
.card .ph, .card .media { border-radius: 0; aspect-ratio: 4 / 3; }
.card-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.card-body p { margin: 0; font-size: 15px; color: var(--muted); flex-grow: 1; }
.card-more { margin-top: 6px; font-weight: 600; font-size: 15px; }
@media (max-width: 600px) {
  .grid-cards { gap: 12px; }
  .card { flex-direction: row; }
  .card .ph, .card .media { aspect-ratio: auto; width: 104px; flex-shrink: 0; }
  .card .ph svg { width: 52px; }
  .card-body { padding: 16px; gap: 6px; }
  .card-body .h3 { font-size: 24px; }
  .card-body p { font-size: 14px; }
}
.hero .wrap > .ph, .hero .wrap > .media { aspect-ratio: 5 / 4; }
.hero .wrap > .media img { height: 100%; }
@media (max-width: 860px) { .hero .wrap > .ph:not(.ph-hero) { aspect-ratio: 16 / 9; } }
.display .accent { display: block; }
@media (max-width: 860px) {
  .hero .wrap > .ph-hero { aspect-ratio: auto; }
  .ph-hero .ph-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; padding: 20px; }
}

/* Riquadro macchinari / blocchi scuri */
.feature { background: var(--ink); color: var(--white); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1.3fr 1fr; }
.feature-body { padding: 48px; display: flex; flex-direction: column; gap: 18px; }
.feature-body p { margin: 0; color: var(--on-dark); }
.feature .eyebrow { color: var(--gold); }
.feature ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 24px; }
.feature li::before { content: '— '; color: var(--gold); }
.feature .ph, .feature .media { border-radius: 0; background: var(--ink-2); color: var(--gold); min-height: 300px; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-body { padding: 32px 24px; } }

.panel-dark { background: var(--ink); color: var(--white); border-radius: var(--radius); padding: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.panel-dark .panel-text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.panel-dark .eyebrow { color: var(--gold); }
.panel-dark p { margin: 0; color: var(--on-dark); font-size: 17px; }
.panel-dark .h-big { margin: 0; font-family: var(--display); font-size: clamp(30px, 3.5vw, 40px); line-height: 1.05; font-weight: 700; text-transform: uppercase; color: var(--white); }
@media (max-width: 600px) { .panel-dark { padding: 28px 20px; } }

.cta-gold { background: var(--gold); border-radius: var(--radius); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-gold p { margin: 0; flex: 1 1 420px; min-width: 0; font-family: var(--display); font-size: clamp(30px, 3.5vw, 40px); line-height: 1.05; font-weight: 700; text-transform: uppercase; }
@media (max-width: 600px) { .cta-gold { padding: 28px 20px; } }

/* Promo */
.promo { background: var(--gold); border-radius: var(--radius); padding: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.promo + .promo { margin-top: 16px; }
.promo-text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.promo-text .eyebrow { color: var(--ink); font-weight: 700; }
.promo-text h3 { margin: 0; font-family: var(--display); font-size: clamp(34px, 4vw, 44px); line-height: 1; font-weight: 700; text-transform: uppercase; }
.promo-text p { margin: 0; }
.promo-dates { font-size: 14px; font-weight: 600; }
@media (max-width: 600px) { .promo { padding: 28px 20px; } }

/* Pagina famiglia */
.back { font-size: 15px; font-weight: 600; text-decoration: none; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .type-grid { grid-template-columns: 1fr; } }
.type { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.type .media { aspect-ratio: 16 / 10; margin: -8px -8px 6px; }
.type p { margin: 0; font-size: 15px; color: var(--muted); flex-grow: 1; }
.tag { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.guide-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.guide-item p { margin: 0; color: var(--muted); }
.guide-item .ideal { color: var(--ink); font-size: 15px; }

/* Passi / come lavoriamo */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.step { border-top: 3px solid var(--gold); padding-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { margin: 0; font-family: var(--display); font-size: 30px; font-weight: 700; text-transform: uppercase; color: var(--white); }
.service-num { margin: 0; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--gold-ink); }
.box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.box p { margin: 0; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.grid-boxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
@media (max-width: 400px) { .grid-boxes { grid-template-columns: 1fr; } }

/* Contatti */
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.info-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.info-card .tag { margin-bottom: 2px; }
.info-card .big { font-size: 20px; font-weight: 600; text-decoration: none; }
.info-card p { margin: 0; }
.highlight { display: flex; gap: 14px; align-items: center; background: var(--gold); border-radius: var(--radius); padding: 18px 20px; font-weight: 600; }
.highlight strong { font-family: var(--display); font-size: 30px; line-height: 1; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
@media (max-width: 600px) { .form-card { padding: 24px 18px; } }
.form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: 16px/1.4 var(--body); padding: 12px 14px; border: 1px solid #B9B2AA; border-radius: 8px; background: var(--paper); color: var(--ink); min-height: 48px; width: 100%; }
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: 2px solid var(--gold); outline-offset: 0; }
.field .err { color: #A3240F; font-size: 14px; font-weight: 600; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--ink); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 8px; padding: 14px 16px; font-weight: 600; }
.alert-err { background: #FBE9E6; color: #7A1B0B; border: 1px solid #F1C2B9; }
.alert-ok { background: #EEF6E8; color: #2D5016; border: 1px solid #CFE3BF; }
.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.form-foot p { margin: 0; font-size: 13px; color: var(--muted-2); }

/* FAQ */
.faq-group { margin-top: 40px; }
.faq-group h2 { margin: 0 0 8px; font-family: var(--display); font-size: 32px; line-height: 1; font-weight: 700; text-transform: uppercase; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 18px; font-weight: 600; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 48px 22px 0; color: var(--muted); }

/* Testi lunghi (privacy, cookie) */
.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-size: 30px; text-transform: uppercase; margin: 40px 0 10px; line-height: 1.05; }
.prose h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--muted); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; }

/* Piè di pagina */
.site-footer { background: var(--ink); color: var(--on-dark); }
.site-footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 32px; padding-top: 56px; padding-bottom: 32px; }
.site-footer p { margin: 0; font-size: 15px; line-height: 1.6; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer .slogan { font-family: var(--display); font-size: 24px; font-weight: 700; text-transform: uppercase; color: var(--gold); line-height: 1.1; margin-top: 14px; }
.foot-title { margin: 0 0 8px !important; font-size: 13px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.legal { border-top: 1px solid var(--ink-2); padding-top: 20px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.legal a { color: var(--on-dark); text-decoration: underline; }
.legal p { color: #B8B1AA; font-size: 14px; }

/* Elenco articoli richiudibile */
.articles { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.articles summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px; }
.articles summary::-webkit-details-marker { display: none; }
.articles summary::after { content: '+'; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.articles[open] summary::after { content: '−'; }
.articles p { margin: 0; padding: 0 22px 10px; font-size: 15px; }
.articles ul { margin: 0; padding: 4px 22px 22px 40px; columns: 3 240px; column-gap: 32px; }
.articles li { break-inside: avoid; padding: 3px 0; color: var(--muted); }

/* Pulsante WhatsApp */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 10px; background: #1F8A4C; color: #fff; text-decoration: none; font-weight: 600; padding: 12px 18px 12px 14px; border-radius: 99px; box-shadow: 0 6px 20px rgba(0,0,0,.25); min-height: 52px; }
.wa-float:hover { background: #17703D; color: #fff; }
@media (max-width: 600px) { .wa-float span { display: none; } .wa-float { padding: 12px; width: 56px; height: 56px; justify-content: center; } }
