/* Hugin Analytics: foglio di stile unico (sostituisce i blocchi <style> per pagina e il vecchio style.css). */
:root {
  --ink:       #1C1C1E;
  --ink-soft:  #3A3A3C;
  --muted:     #6E6E73;   /* più scuro di #888 per contrasto AA sul bianco */
  --muted-lt:  #888888;
  --warm-bg:   #FAFAF8;
  --surface:   #F2F1EF;
  --accent:    #C4500E;
  --accent-dk: #A33F0A;
  --accent-lt: #FAF0EA;
  --border:    #E4E2DF;
  --white:     #FFFFFF;
  --black:     #111111;
  --radius:    8px;
  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); background: var(--warm-bg); color: var(--ink); font-size: 16px; line-height: 1.7; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
a:hover { color: var(--accent-dk); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 300; }
.skip:focus { left: 8px; top: 8px; }

.wrap    { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap-md { max-width: 820px;  margin: 0 auto; padding: 0 24px; }
.wrap-sm { max-width: 680px;  margin: 0 auto; padding: 0 24px; }

/* ── Header / nav (unico, in includes/header.php) ── */
.site-header { background: var(--white); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.header-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 28px; height: auto; }
.brand-name { font-family: var(--serif); font-size: 19px; font-weight: 700; letter-spacing: -0.3px; color: var(--ink); }
.brand-name span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 18px; }
.site-nav ul { list-style: none; display: flex; gap: 2px; }
.site-nav ul a { display: block; padding: 8px 10px; font-size: 14px; font-weight: 500; color: var(--ink-soft); text-decoration: none; border-radius: 6px; white-space: nowrap; }
.site-nav ul a:hover { color: var(--ink); background: var(--surface); }
.site-nav ul a.active { color: var(--accent); }
.nav-toggle, .nav-burger { display: none; }

/* ── Buttons ── */
.btn { display: inline-block; font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1.3; padding: 14px 26px; border-radius: 6px; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, color .15s; text-align: center; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dk); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--accent-lt); color: var(--ink); }
.btn-ghost-dark { background: transparent; color: var(--white); border-color: #555; }
.btn-ghost-dark:hover { border-color: var(--white); color: var(--white); }
.btn-sm { font-size: 14px; padding: 9px 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ── Typography / sections ── */
.label { font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
h1, h2, h3 { color: var(--ink); }
h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 56px); line-height: 1.12; letter-spacing: -1px; font-weight: 700; }
h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 38px); line-height: 1.2; letter-spacing: -0.5px; font-weight: 700; margin-bottom: 16px; }
h3 { font-size: 18px; font-weight: 600; line-height: 1.35; margin-bottom: 8px; }
p + p { margin-top: 14px; }
.lead { font-size: 18px; color: var(--ink-soft); line-height: 1.7; max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

.section { padding: 84px 0; }
.section-alt { background: var(--surface); }
.section-white { background: var(--white); }
.section-dark { background: var(--ink); color: #D8D8D8; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark .lead { color: #B8B8B8; }
.section-head { margin-bottom: 40px; }

.page-hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 72px 0 60px; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 18px; }

/* ── Home hero ── */
.hero { background: var(--white); border-bottom: 1px solid var(--border); padding: 88px 0 80px; }
.hero-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub { font-size: 14px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.hero .lead { margin-bottom: 32px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: min(300px, 70%); }

/* ── Cards ── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card-accent { border-top: 3px solid var(--accent); }
.card p { color: var(--ink-soft); font-size: 15px; }
.card .more { display: inline-block; margin-top: 14px; font-weight: 600; font-size: 15px; text-decoration: none; }
.num { font-family: var(--serif); font-size: 28px; font-weight: 700; color: var(--accent); line-height: 1; margin-bottom: 12px; }
.problem { padding: 24px 0; border-top: 2px solid var(--ink); }
.problem h3 { font-size: 19px; }
.problem p { color: var(--ink-soft); font-size: 15px; }

.callout { background: var(--accent-lt); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 20px 24px; font-size: 16px; color: var(--ink); }
.callout strong { color: var(--ink); }
.callout-dark { background: var(--black); color: #CFCFCF; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 26px; }
.callout-dark strong { color: var(--white); }

/* ── Case ── */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.case-meta { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: var(--black); color: #BBBBBB; border-radius: var(--radius); padding: 22px; }
.stat b { display: block; font-family: var(--serif); font-size: 30px; color: var(--accent); line-height: 1.1; margin-bottom: 6px; }
.stat span { font-size: 14px; line-height: 1.5; display: block; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; background: var(--ink); color: var(--white); border-radius: 4px; padding: 3px 8px; vertical-align: middle; }
.tag-accent { background: var(--accent); }
.ticks { list-style: none; }
.ticks li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--border); font-size: 15px; color: var(--ink-soft); }
.ticks li:last-child { border-bottom: none; }
.ticks li::before { content: "→"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.section-dark .ticks li { color: #CFCFCF; border-color: #333; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 4px; }
.step-num { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--white); font-family: var(--serif); font-size: 20px; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step p { color: var(--ink-soft); font-size: 15px; }
.section-dark .step p { color: #BBBBBB; }

/* ── Services ── */
.service { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; padding: 48px 0; border-top: 1px solid var(--border); scroll-margin-top: 80px; }
.service:first-of-type { border-top: none; }
.service .price { font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink); margin: 6px 0 4px; }
.service .price-note { font-size: 13px; color: var(--muted); }
.service aside { background: var(--surface); border-radius: var(--radius); padding: 24px; }
.example { margin-top: 18px; background: var(--white); border: 1px dashed var(--border); border-radius: var(--radius); padding: 16px 18px; font-size: 14px; color: var(--ink-soft); }
.example .tag { margin-right: 6px; }

/* ── About strip ── */
.about { display: grid; grid-template-columns: 160px 1fr; gap: 36px; align-items: center; }
.avatar { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; object-position: 50% 30%; display: block; }
.avatar-lg { width: 260px; height: 260px; }

/* ── Placeholders / TODO (visibili di proposito finché non compilati) ── */
.todo { display: inline-block; background: #FFF3CD; color: #7A4B00; border: 1px dashed #C4500E; border-radius: 4px; padding: 0 6px; font-size: .9em; font-weight: 600; font-family: var(--sans); }
.ph-box { border: 2px dashed var(--accent); background: repeating-linear-gradient(45deg, #FAF0EA, #FAF0EA 12px, #FFFFFF 12px, #FFFFFF 24px); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; text-align: center; min-height: 180px; padding: 18px; color: #7A4B00; font-weight: 600; font-size: 14px; }

/* ── Benchmark preview ── */
.preview { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.preview img { border-radius: 4px; }

/* ── Forms ── */
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 40px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--ink); margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--muted-lt); text-transform: none; letter-spacing: 0; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: 6px; font-size: 16px; font-family: var(--sans); color: var(--ink); background: var(--white); appearance: none; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); margin: 4px 0 18px; line-height: 1.5; }
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.btn-submit { width: 100%; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; line-height: 1.5; }
.alert-s { background: #EAF7EA; color: #1A5C1A; border-left: 3px solid #27AE60; border-radius: 6px; padding: 14px 16px; font-size: 15px; margin-bottom: 20px; }
.alert-e { background: #FBE9E9; color: #6B1A1A; border-left: 3px solid #C03030; border-radius: 6px; padding: 14px 16px; font-size: 15px; margin-bottom: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-list { list-style: none; margin-top: 24px; }
.contact-list li { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
.contact-list li b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }

/* ── Legal pages ── */
.legal h2 { font-size: 24px; margin: 40px 0 12px; }
.legal h3 { margin-top: 24px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 16px; }
.legal ul { margin: 10px 0 10px 22px; }
.legal li + li { margin-top: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
.legal th, .legal td { text-align: left; border-bottom: 1px solid var(--border); padding: 10px 8px; vertical-align: top; }
.legal th { background: var(--surface); }

/* ── Final CTA ── */
.final-cta { background: var(--ink); padding: 88px 0; text-align: center; }
.final-cta h2 { color: var(--white); }
.final-cta p { color: #A8A8A8; font-size: 18px; margin-bottom: 30px; }

/* ── Footer ── */
.site-footer { background: var(--black); color: #9A9A9A; font-size: 14px; padding: 56px 0 28px; }
.site-footer a { color: #C8C8C8; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid #2A2A2A; }
.brand-footer .brand-name { color: var(--white); }
.brand-footer img { filter: invert(1) hue-rotate(180deg); }
.footer-tag { margin-top: 12px; line-height: 1.6; }
.footer-h { color: var(--white); font-weight: 600; margin-bottom: 10px; }
.footer-links { list-style: none; }
.footer-links li { padding: 3px 0; }
.footer-legal { padding-top: 22px; font-size: 12.5px; line-height: 1.7; color: #8A8A8A; }
.footer-legal-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 18px; }

/* ── Cookie banner ── */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 200; display: flex; justify-content: center; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { max-width: 880px; width: 100%; background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 18px 22px; display: flex; gap: 20px; align-items: center; }
.cookie-inner p { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── 404 ── */
.notfound { padding: 110px 0; text-align: center; }
.notfound .code { font-family: var(--serif); font-size: 96px; font-weight: 700; color: var(--accent); line-height: 1; }

/* ── Responsive ── */
@media (max-width: 1000px) {
  .nav-burger { display: flex; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; margin-right: -10px; }
  .nav-burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; padding: 8px 24px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.06); }
  .site-nav ul { flex-direction: column; }
  .site-nav ul a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .nav-cta { margin-top: 12px; }
  .nav-toggle:checked ~ .site-nav { display: flex; }
  .nav-toggle:checked + .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked + .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked + .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .hero { padding: 56px 0 56px; }
  .hero-grid, .case, .service, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-art { display: none; }
  .grid-3, .grid-2, .steps { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .page-hero { padding: 52px 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .cookie-inner { flex-direction: column; align-items: stretch; }
  .cookie-actions .btn { flex: 1; }
}
@media (max-width: 560px) {
  .grid-4, .stats, .form-row { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; text-align: center; }
  .about .avatar { margin: 0 auto; }
  .form-card { padding: 28px 20px; }
  .btn-row .btn { width: 100%; }
  .avatar-lg { width: 200px; height: 200px; }
}

/* ── Prezzi in sintesi + Voucher ── */
.price-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table td { padding: 12px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); padding-left: 16px; white-space: nowrap; }
.price-table td:last-child .small { white-space: normal; font-weight: 400; }
.price-table a { color: var(--ink); text-decoration: none; font-weight: 500; }
.price-table a:hover { color: var(--accent); }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }
.about picture { display: block; }
@media (max-width: 560px) { .about picture { display: flex; justify-content: center; } }
.about-lg { grid-template-columns: 260px 1fr; }
@media (max-width: 560px) { .about-lg { grid-template-columns: 1fr; } }

/* ── Screenshot demo (Casi › Hospitality) ── */
.shot { margin: 0 0 14px; }
.shot figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 4px 2px; }
.shot img { border-radius: 4px; }
