:root {
    --red: #cc0000;
    --red-dark: #990000;
    --black: #111111;
    --white: #ffffff;
    --gray: #f5f5f5;
    --gray-mid: #dddddd;
    --text: #222222;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Lato', sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
  }

  header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 70px;
    box-shadow: 0 2px 20px rgba(0,0,0,.5);
  }

  header img.logo { height: 48px; width: auto; }

  nav { display: flex; gap: 6px; align-items: center; }

  nav a {
    color: #ccc;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color .2s, background .2s;
  }

  nav a:hover { color: #fff; background: rgba(255,255,255,.08); }

  nav a.cta { background: var(--red); color: #fff; padding: 8px 18px; border-radius: 4px; }
  nav a.cta:hover { background: var(--red-dark); }

  .hamburger-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

  .hero {
    margin-top: 70px;
    background: var(--black);
    position: relative;
    overflow: hidden;
    padding: 80px 40px 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 520px;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse at 20% 50%, rgba(204,0,0,.25) 0%, transparent 60%),
      radial-gradient(ellipse at 80% 30%, rgba(204,0,0,.12) 0%, transparent 50%);
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }

  .hero-copy h1 {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.02em;
    margin-bottom: 20px;
  }

  .hero-copy h1 span { color: var(--red); }

  .hero-copy p { color: #aaa; font-size: 1.1rem; line-height: 1.75; margin-bottom: 32px; }

  .hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: 1rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: 600;
    transition: transform .18s, box-shadow .18s;
    cursor: pointer;
    border: none;
  }

  .btn:hover { transform: translateY(-2px); }

  .btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(204,0,0,.35); }
  .btn-red:hover { background: var(--red-dark); box-shadow: 0 12px 28px rgba(204,0,0,.45); }

  .btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.3); }
  .btn-outline:hover { border-color: #fff; }

  .hero-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(204,0,0,.4);
    box-shadow: 0 20px 60px rgba(0,0,0,.6);
  }

  .hero-video iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

  .band { background: var(--red); padding: 24px 40px; display: flex; justify-content: center; gap: 60px; flex-wrap: wrap; }

  .band-item { text-align: center; color: #fff; }

  .band-item strong { display: block; font-family: 'Oswald', sans-serif; font-size: 2.2rem; font-weight: 700; line-height: 1; }
  .band-item span { font-size: .85rem; opacity: .85; letter-spacing: .06em; text-transform: uppercase; }

  section { padding: 80px 40px; }

  .section-inner { max-width: 1100px; margin: 0 auto; }

  .section-title {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: 12px;
    letter-spacing: -.02em;
  }

  .section-title span { color: var(--red); }

  .section-sub { color: #666; font-size: 1.05rem; line-height: 1.7; max-width: 60ch; margin-bottom: 48px; }

  .servizi { background: var(--white); }

  .servizi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .servizio-card {
    border: 1px solid var(--gray-mid);
    border-radius: 6px;
    padding: 32px 28px;
    transition: box-shadow .2s, transform .2s, border-color .2s;
    position: relative;
    overflow: hidden;
  }

  .servizio-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s;
  }

  .servizio-card:hover::before { transform: scaleX(1); }

  .servizio-card:hover { box-shadow: 0 12px 40px rgba(0,0,0,.12); transform: translateY(-4px); border-color: transparent; }

  .servizio-icon {
    width: 52px; height: 52px;
    background: var(--red);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    font-size: 1.4rem;
    color: #fff;
  }

  .servizio-card h3 { font-family: 'Oswald', sans-serif; font-size: 1.2rem; font-weight: 600; margin-bottom: 10px; color: var(--black); }
  .servizio-card p { color: #666; font-size: .95rem; line-height: 1.65; }

  .ai-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: .7rem;
    font-family: 'Oswald', sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    margin-left: 8px;
    vertical-align: middle;
  }

  .come-funziona { background: var(--gray); }

  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: steps; }

  .step { text-align: center; padding: 32px 20px; background: #fff; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.06); position: relative; }

  .step-num {
    width: 48px; height: 48px;
    background: var(--black);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Oswald', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 auto 16px;
  }

  .step h3 { font-family: 'Oswald', sans-serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--black); }
  .step p { color: #777; font-size: .9rem; line-height: 1.6; }

  .testimonianza { background: var(--black); padding: 80px 40px; }

  .testi-inner { max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }

  .testi-img img { width: 100%; border-radius: 6px; border: 3px solid var(--red); }

  .testi-copy blockquote {
    font-family: 'Oswald', sans-serif;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: #fff;
    line-height: 1.4;
    margin-bottom: 24px;
    position: relative;
    padding-left: 28px;
  }

  .testi-copy blockquote::before {
    content: '"';
    position: absolute;
    left: 0; top: -8px;
    font-size: 4rem;
    color: var(--red);
    font-family: Georgia, serif;
    line-height: 1;
  }

  .testi-copy cite {
    color: #aaa;
    font-style: normal;
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    border-left: 3px solid var(--red);
    padding-left: 12px;
  }

  .perche { background: var(--white); }

  .perche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

  .perche-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: 6px; background: var(--gray); transition: background .2s; }
  .perche-item:hover { background: #eee; }

  .perche-item i { color: var(--red); font-size: 1.3rem; margin-top: 2px; flex-shrink: 0; }

  .perche-item h4 { font-family: 'Oswald', sans-serif; font-size: 1rem; font-weight: 600; margin-bottom: 4px; color: var(--black); }
  .perche-item p { color: #666; font-size: .9rem; line-height: 1.55; }

  .contatti { background: var(--gray); }

  .contatti-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }

  .contatti-form { background: #fff; border-radius: 8px; padding: 40px; box-shadow: 0 8px 32px rgba(0,0,0,.08); }

  .form-row { margin-bottom: 16px; }

  .form-row label {
    display: block;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #555;
    margin-bottom: 6px;
  }

  .form-row input,
  .form-row textarea,
  .form-row select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: .97rem;
    color: var(--text);
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    background: #fafafa;
  }

  .form-row input:focus,
  .form-row textarea:focus,
  .form-row select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(204,0,0,.1);
    background: #fff;
  }

  .form-row textarea { resize: vertical; min-height: 110px; }

  .form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

  .contatti-info h3 { font-family: 'Oswald', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--black); margin-bottom: 16px; }
  .contatti-info p { color: #666; line-height: 1.7; margin-bottom: 32px; }

  .contact-item { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; color: var(--text); text-decoration: none; font-size: .97rem; }

  .contact-item i {
    width: 40px; height: 40px;
    background: var(--red);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    flex-shrink: 0;
  }

  .contact-item span { color: #333; }

  .social-row { display: flex; gap: 12px; margin-top: 32px; }

  .social-row a {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--black);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: background .2s, transform .18s;
  }

  .social-row a:hover { background: var(--red); transform: translateY(-2px); }

  footer {
    background: var(--black);
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  footer img { height: 36px; }
  footer p { color: #666; font-size: .82rem; }
  footer a { color: #888; text-decoration: none; }
  footer a:hover { color: var(--red); }

  #cookie-banner {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: #111;
    color: #ccc;
    padding: 20px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: 0 -4px 24px rgba(0,0,0,.5);
    font-size: .88rem;
    line-height: 1.6;
  }

  #cookie-banner p { flex: 1; min-width: 240px; margin: 0; }
  #cookie-banner a { color: #cc0000; text-decoration: underline; }

  .cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }

  .cookie-btn {
    padding: 10px 22px;
    border-radius: 4px;
    font-family: 'Oswald', sans-serif;
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    border: none;
    font-weight: 600;
  }

  .cookie-btn-accept { background: #cc0000; color: #fff; }
  .cookie-btn-accept:hover { background: #990000; }
  .cookie-btn-reject { background: transparent; color: #aaa; border: 1px solid #444; }
  .cookie-btn-reject:hover { border-color: #aaa; color: #fff; }

  .fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }

  @media (max-width: 768px) {
    header { padding: 0 20px; }
    nav { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: var(--black); padding: 20px; gap: 4px; }
    nav.open { display: flex; }
    nav a { width: 100%; padding: 12px 16px; }
    .hamburger-btn { display: block; }

    .hero { padding: 40px 20px; min-height: auto; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; }

    .band { gap: 28px; }

    section { padding: 50px 20px; }

    .servizi-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .libri-grid { grid-template-columns: 1fr 1fr !important; }
    .testi-inner { grid-template-columns: 1fr; }
    .perche-grid { grid-template-columns: 1fr; }
    .contatti-inner { grid-template-columns: 1fr; }
    .form-row-2 { grid-template-columns: 1fr; }

    footer { flex-direction: column; text-align: center; padding: 20px; }
  }

  @media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
  }

/* ---- Sottopagine HomeBased ---- */
.page-hero { margin-top:70px; background:var(--black); position:relative; overflow:hidden; padding:70px 40px 60px; }
.page-hero::before { content:''; position:absolute; inset:0; background: radial-gradient(ellipse at 20% 50%, rgba(204,0,0,.25) 0%, transparent 60%), radial-gradient(ellipse at 80% 30%, rgba(204,0,0,.12) 0%, transparent 50%); }
.page-hero-inner { position:relative; z-index:1; max-width:900px; margin:0 auto; }
.page-hero h1 { font-family:'Oswald',sans-serif; font-size:clamp(2rem,4vw,3rem); font-weight:700; color:#fff; line-height:1.12; letter-spacing:-.02em; margin-bottom:18px; }
.page-hero h1 span { color:var(--red); }
.page-hero p { color:#bbb; font-size:1.12rem; line-height:1.7; max-width:70ch; }
.prose { max-width:820px; margin:0 auto; }
.prose h2 { font-family:'Oswald',sans-serif; font-size:clamp(1.5rem,2.5vw,2rem); color:var(--black); margin:40px 0 14px; letter-spacing:-.01em; }
.prose h3 { font-family:'Oswald',sans-serif; font-size:1.2rem; color:var(--black); margin:28px 0 10px; }
.prose p { color:#444; font-size:1.03rem; line-height:1.8; margin-bottom:16px; }
.prose ul { color:#444; font-size:1.03rem; line-height:1.9; padding-left:22px; margin-bottom:16px; }
.prose a { color:var(--red); }
.breadcrumb { max-width:820px; margin:0 auto 8px; font-size:.85rem; color:#999; }
.breadcrumb a { color:#999; text-decoration:none; }
.breadcrumb a:hover { color:var(--red); }
.faq-item { border-bottom:1px solid var(--gray-mid); padding:18px 0; }
.faq-item h3 { margin:0 0 6px; font-size:1.08rem; }
.cta-strip { background:var(--red); text-align:center; padding:56px 40px; }
.cta-strip h2 { color:#fff; margin:0 0 20px; }
.cta-strip .btn-outline { border-color:rgba(255,255,255,.7); }

