/* Taverna Consulting — stile
   Palette di brand: blu #172F83 e arancio #C15200 (principali), il resto è derivato */
:root {
  /* Blu */
  --navy: #0F1F5C;      /* blu profondo: sezioni scure e footer */
  --blue: #172F83;      /* blu principale del brand */
  --blue-mid: #304DA6;  /* blu del logo: hover e dettagli */
  --blue-soft: #E8ECF8; /* tinta chiara per sfondi */
  /* Arancio */
  --orange: #C15200;    /* arancio principale del brand */
  --orange-dark: #9A4100; /* hover */
  --orange-soft: #FBEEE4; /* tinta chiara */
  /* Neutri con una punta di blu */
  --ink: #131A3A;       /* testo */
  --slate: #525A73;     /* testo secondario */
  --mist: #DADFEC;      /* bordi */
  --snow: #F5F7FB;      /* sfondo chiaro */
  --white: #FFFFFF;

  --accent: var(--blue-mid);
  --accent-ink: var(--white);

  --font-display: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --radius: 14px;
}

body[data-lens="marketing"] { --accent: var(--orange); --accent-ink: var(--white); }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; margin: 0; letter-spacing: -0.02em; }
::selection { background: var(--orange); color: var(--white); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--white); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 247, 251, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--mist);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: 1rem; color: var(--slate); }
.nav a:hover { color: var(--ink); }
.nav a.nav-cta { color: var(--white); background: var(--blue); padding: 9px 18px; border-radius: 999px; }
.nav a.nav-cta:hover { background: var(--orange); }
.nav-toggle { display: none; font: inherit; font-weight: 600; background: none; border: 1px solid var(--mist); border-radius: 999px; padding: 6px 16px; color: var(--ink); cursor: pointer; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; font-weight: 600; padding: 14px 24px; border-radius: 999px; border: 2px solid transparent; transition: background .2s, color .2s, border-color .2s; }
.btn-primary { background: var(--orange); color: var(--white); }
.btn-primary:hover { background: var(--orange-dark); }
.btn-ghost { border-color: var(--blue); color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: var(--white); }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.hero-name { font-weight: 600; color: var(--orange); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 700; color: var(--blue); margin-bottom: 26px; }
.lead { font-size: 1.25rem; color: var(--slate); max-width: 34em; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Lens: il selettore Product / Marketing */
.lens {
  background: var(--navy); color: var(--white);
  border-radius: 22px; padding: 28px;
  border-top: 8px solid var(--accent);
  transition: border-color .35s ease;
}
.lens-switch { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255,255,255,.08); border-radius: 999px; padding: 5px; margin-bottom: 30px; }
.lens-switch button {
  font: inherit; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  background: none; border: 0; color: rgba(255,255,255,.7); padding: 11px 0; border-radius: 999px; cursor: pointer;
  transition: background .3s, color .3s;
}
.lens-switch button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.lens-q { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; margin-bottom: 20px; line-height: 1.2; }
.lens-list { list-style: none; margin: 0; padding: 0; }
.lens-list li { padding: 13px 0; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.78); }
.lens-list strong { color: var(--white); font-weight: 600; }
.lens-panel:not([hidden]) { animation: swap .35s ease; }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Aree */
.area { padding: 104px 0; }
.area-product { background: var(--white); }
.area-marketing { background: var(--navy); color: var(--white); }
.area-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: start; }
.area-tag { display: inline-block; font-weight: 600; font-size: .95rem; padding: 4px 14px; border-radius: 999px; margin-bottom: 22px; }
.area-product .area-tag { background: var(--blue-soft); color: var(--blue); }
.area-marketing .area-tag { background: var(--orange); color: var(--white); }
.area h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 22px; }
.area-head p { color: var(--slate); max-width: 32em; }
.area-marketing .area-head p { color: rgba(255,255,255,.72); }
.area-head { position: sticky; top: 110px; }

.skills { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.skill { padding: 28px 28px 30px 0; border-top: 2px solid var(--mist); }
.area-product .skill:nth-child(-n+2) { border-top-color: var(--blue); }
.area-product h2, .area-product .skill h3 { color: var(--blue); }
.area-marketing .skill { border-top-color: rgba(255,255,255,.16); }
.area-marketing .skill:nth-child(-n+2) { border-top-color: var(--orange); }
.skill h3 { font-size: 1.3rem; margin-bottom: 10px; }
.skill p { font-size: 1.02rem; color: var(--slate); }
.area-marketing .skill p { color: rgba(255,255,255,.7); }

/* Metodo */
.method { padding: 104px 0; }
.method h2, .results h2 { color: var(--blue); }
.method h2, .results h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: 16px; }
.section-intro { color: var(--slate); max-width: 36em; margin-bottom: 52px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 40px; height: 40px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--blue);
  background: var(--white); border: 2px solid var(--blue); border-radius: 50%;
}
.steps li::after { content: ""; position: absolute; top: 20px; left: 48px; right: -8px; height: 2px; background: var(--mist); }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--orange); border-color: var(--orange); color: var(--white); }
.steps h3 { font-size: 1.25rem; margin-bottom: 8px; }
.steps p { font-size: 1rem; color: var(--slate); }

/* Risultati */
.results { padding: 104px 0; background: var(--white); border-top: 1px solid var(--mist); }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin: 40px 0 64px; }
.case { background: var(--orange-soft); border-radius: var(--radius); padding: 34px; border-left: 6px solid var(--orange); }
.case-client { font-weight: 600; color: var(--orange-dark); margin-bottom: 8px; }
.case-figure { font-family: var(--font-display); font-weight: 700; color: var(--blue); font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; margin-bottom: 12px; }
.case-detail { color: var(--slate); }
.sites-title { font-size: 1.3rem; margin-bottom: 18px; }
.sites { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sites a { display: inline-block; text-decoration: none; padding: 8px 16px; border: 1px solid var(--mist); border-radius: 999px; font-weight: 600; font-size: 1rem; }
.sites a { color: var(--blue); }
.sites a:hover { border-color: var(--blue); background: var(--blue); color: var(--white); }

/* Contatti */
.contact { padding: 104px 0; background: var(--blue); color: var(--white); position: relative; overflow: hidden; }
.contact::after { content: ""; position: absolute; right: -80px; bottom: -120px; width: 420px; height: 420px; background: url("../img/monogram.svg") center / contain no-repeat; opacity: .08; pointer-events: none; }
.contact .wrap { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.contact h2 { font-size: clamp(2rem, 4vw, 3.2rem); margin-bottom: 20px; }
.contact p { color: rgba(255,255,255,.82); max-width: 30em; }
.contact-links { display: grid; gap: 12px; }
.contact-item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; text-decoration: none; background: rgba(255,255,255,.1); padding: 20px 24px; border-radius: var(--radius); transition: background .2s; }
a.contact-item:hover { background: var(--orange); color: var(--white); }
.contact-label { font-size: .95rem; opacity: .8; }
.contact-value { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; word-break: break-word; }

/* Footer */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: .95rem; padding: 32px 0; }
.footer-logo { height: 34px; width: auto; filter: brightness(0) invert(1); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.footer-inner a:hover { color: var(--white); }

/* Pagine semplici (privacy, 404) */
.page { padding: 80px 0 120px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 24px; color: var(--blue); }
.page h2 { font-size: 1.4rem; margin: 36px 0 10px; }
.page p { margin-bottom: 14px; color: var(--slate); }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .area-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .area-head { position: static; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 28px 60px; }
  .steps li::after { top: 44px; left: 19px; right: auto; bottom: 4px; width: 2px; height: auto; }
}
@media (max-width: 760px) {
  body { font-size: 1.0625rem; }
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--snow); border-bottom: 1px solid var(--mist); padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav a.nav-cta { text-align: center; margin-top: 8px; }
  .hero { padding: 56px 0 72px; }
  .brand img { height: 34px; }
  .area, .method, .results, .contact { padding: 72px 0; }
  .skills, .cases { grid-template-columns: 1fr; }
  .skill { padding-right: 0; }
  .area-product .skill:nth-child(2), .area-marketing .skill:nth-child(2) { border-top-color: var(--mist); }
  .area-marketing .skill:nth-child(2) { border-top-color: rgba(255,255,255,.16); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
