/*
 * Stile comune delle pagine servizio di luigipromptdesigner.it (28/09/2026)
 * Collegato come /servizi.css?v=20260928: se lo modifichi, cambia la v in tutte le pagine
 * (il server tiene CSS e JS in cache per un mese).
 * Colori e caratteri del sito: blu inchiostro, viola (contrasto AA), oro, tela.
 */
:root {
    --ink-blue: #1e3a5f;
    --viola: #7c3aed;
    --oro: #f4b643;
    --tela: #f5f2e8;
    --carbone: #2c2416;
    --grigio: #5b5446;
    --wa: #075e54;
    --wa-scuro: #054a42;
    --gradiente: linear-gradient(135deg, #6366f1, #7c3aed);
    --ombra: 0 4px 20px rgba(0, 0, 0, 0.08);
    --raggio: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--carbone);
    background: var(--tela);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--viola); }
strong { font-weight: 600; }

.salta { position: absolute; left: -9999px; top: 0; z-index: 2000; background: var(--ink-blue); color: #fff; padding: 0.75rem 1rem; border-radius: 8px; }
.salta:focus { left: 1rem; top: 1rem; }

/* Testata e menu: uguali al resto del sito */
header { position: fixed; top: 0; width: 100%; padding: 1rem 0; z-index: 1000; background: linear-gradient(to bottom, var(--tela) 0%, rgba(245, 242, 232, 0.92) 100%); backdrop-filter: blur(10px); }
nav.menu { max-width: 1200px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: 'Caveat', cursive; font-size: 2rem; font-weight: 700; color: var(--ink-blue); text-decoration: none; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-family: 'Caveat', cursive; font-size: 1.25rem; font-weight: 700; color: var(--carbone); text-decoration: none; }
.nav-links a:hover { color: var(--ink-blue); }
.nav-links a.active { color: var(--ink-blue); text-decoration: underline; text-decoration-color: var(--oro); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav-links a:focus-visible, .logo:focus-visible { outline: 3px solid var(--ink-blue); outline-offset: 3px; border-radius: 4px; }
.hamburger { display: none; cursor: pointer; z-index: 1001; background: none; border: none; padding: 10px; }
.hamburger span { display: block; width: 25px; height: 3px; background-color: var(--ink-blue); margin: 5px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.hamburger:focus-visible { outline: 3px solid var(--ink-blue); outline-offset: 3px; }
.mobile-nav { position: fixed; top: 0; left: -100%; width: 100%; height: 100vh; padding: 5rem 0 2rem; overflow-y: auto; background-color: var(--tela); z-index: 999; display: flex; flex-direction: column; justify-content: center; justify-content: safe center; align-items: center; transition: left 0.5s ease; }
.mobile-nav.open { left: 0; }
.mobile-nav ul { list-style: none; padding: 0; text-align: center; }
.mobile-nav ul li { margin: 1rem 0; }
.mobile-nav ul li a { font-family: 'Caveat', cursive; font-size: 2.2rem; color: var(--ink-blue); text-decoration: none; }
.mobile-nav ul li a:hover, .mobile-nav ul li a.active { color: var(--viola); }
@media (max-width: 768px) {
    nav.menu { padding: 0 1rem; }
    .nav-links { display: none; }
    .hamburger { display: block; }
}

/* Struttura */
.contenitore { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 4rem 0; }
section[id] { scroll-margin-top: 72px; }
.sezione-bianca { background: #fff; }
h2 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(1.6rem, 3.5vw, 2.2rem); line-height: 1.2; color: var(--ink-blue); margin-bottom: 1.75rem; }
h2::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gradiente); margin-top: 0.75rem; }
h3 { font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; line-height: 1.3; color: var(--ink-blue); margin-bottom: 0.5rem; }
p + p { margin-top: 1rem; }
.introduzione { max-width: 46em; margin-bottom: 2rem; }

/* Apertura */
.apertura { padding: 8rem 0 3.5rem; background: radial-gradient(ellipse at 88% 8%, rgba(124, 58, 237, 0.10), transparent 55%), radial-gradient(ellipse at 6% 96%, rgba(244, 182, 67, 0.16), transparent 50%); }
.briciole { font-size: 0.9rem; color: var(--grigio); margin-bottom: 1.25rem; }
.briciole ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.briciole li + li::before { content: '›'; margin-right: 0.35rem; }
.briciole a { color: var(--grigio); }
.briciole a:hover { color: var(--viola); }
.apertura h1 { font-family: 'Playfair Display', Georgia, serif; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; color: var(--ink-blue); max-width: 22em; margin-bottom: 1.25rem; }
.sottotitolo { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--grigio); max-width: 38em; margin-bottom: 2rem; }
.azioni { display: flex; flex-wrap: wrap; gap: 1rem; }
.firma { font-family: 'Caveat', cursive; font-size: 1.6rem; font-weight: 700; color: var(--viola); margin-top: 1.5rem; }

/* Pulsanti */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 48px; padding: 0.85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; text-decoration: none; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 4px 14px rgba(7, 94, 84, 0.3); }
.btn-wa:hover { background: var(--wa-scuro); }
.btn-secondario { background: transparent; color: var(--ink-blue); border: 2px solid var(--ink-blue); }
.btn-secondario:hover { background: var(--ink-blue); color: #fff; }

/* Il problema, detto dal cliente */
.problemi { list-style: none; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.problemi li { background: #fff; border-radius: var(--raggio); padding: 1.25rem 1.25rem 1.25rem 1.5rem; box-shadow: var(--ombra); border-left: 5px solid var(--oro); font-size: 1.05rem; }

/* Cosa ottieni */
.lista-check { list-style: none; display: grid; gap: 0.9rem; max-width: 50em; }
.lista-check li { position: relative; padding-left: 2.3rem; }
.lista-check li::before { content: ''; position: absolute; left: 0; top: 0.3em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--viola) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z' fill='%23fff'/%3E%3C/svg%3E") center / 72% no-repeat; }

/* Come funziona */
.passi { list-style: none; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: passo; }
.passi li { counter-increment: passo; background: #fff; border-radius: var(--raggio); padding: 1.5rem; box-shadow: var(--ombra); }
.sezione-bianca .passi li { background: var(--tela); box-shadow: none; }
.passi li::before { content: counter(passo); display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--gradiente); color: #fff; font-weight: 700; margin-bottom: 0.75rem; }
.nota { margin-top: 1.5rem; font-weight: 500; max-width: 46em; }

/* Lavori veri */
.casi { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.caso { background: #fff; border-radius: var(--raggio); padding: 1.5rem; box-shadow: var(--ombra); border-top: 5px solid var(--oro); }
.sezione-bianca .caso { background: var(--tela); box-shadow: none; }
.etichetta { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--viola); margin-bottom: 0.35rem; }
.caso a { font-weight: 600; }

/* Pagina Servizi: un riquadro per ogni problema */
.servizi { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.servizio { display: flex; flex-direction: column; background: #fff; border-radius: var(--raggio); padding: 1.5rem; box-shadow: var(--ombra); border-top: 5px solid var(--viola); }
.servizio .dolore { font-style: italic; color: var(--grigio); margin-bottom: 0.9rem; }
.servizio .da { font-weight: 700; color: var(--ink-blue); margin: 0.75rem 0 1rem; }
.servizio .vai { margin-top: auto; font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.servizio .vai:hover { text-decoration: underline; }
.servizio .vai.wa { color: var(--wa); }
.fascia { text-align: center; }
.fascia h2::after { margin-left: auto; margin-right: auto; }
.fascia p { max-width: 38em; margin: 0 auto 1.5rem; }
.fascia .azioni { justify-content: center; }

/* Prezzi */
.prezzi { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: stretch; }
.prezzo { display: flex; flex-direction: column; background: #fff; border-radius: var(--raggio); padding: 1.75rem; box-shadow: var(--ombra); border: 2px solid transparent; }
.prezzo.evidenza { border-color: var(--viola); }
@media (min-width: 900px) { .prezzo h3 { min-height: 2.6em; } }
.cifra { font-family: 'Playfair Display', Georgia, serif; font-size: 2.4rem; line-height: 1.1; color: var(--ink-blue); margin: 0.4rem 0 0.2rem; font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.cifra small { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 500; color: var(--grigio); }
.quando { font-size: 0.95rem; color: var(--grigio); margin-bottom: 1rem; }
.prezzo ul { margin: 0.5rem 0 1rem 1.2rem; }
.prezzo li { margin: 0.3rem 0; }
.mensile { margin-top: auto; background: var(--tela); border-radius: 12px; padding: 1rem; font-size: 0.95rem; }
.note-prezzi { margin-top: 1.75rem; max-width: 50em; }
.note-prezzi p { font-size: 0.98rem; }

/* Domande frequenti */
.domande { max-width: 50em; }
.domande details { background: #fff; border-radius: 12px; margin-bottom: 0.75rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.sezione-bianca .domande details { background: var(--tela); box-shadow: none; }
.domande summary { list-style: none; cursor: pointer; position: relative; min-height: 48px; padding: 1.1rem 3.2rem 1.1rem 1.25rem; font-weight: 600; color: var(--ink-blue); }
.domande summary::-webkit-details-marker { display: none; }
.domande summary::after { content: '+'; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.6rem; font-weight: 400; color: var(--viola); }
.domande details[open] summary::after { content: '−'; }
.domande summary:focus-visible { outline: 3px solid var(--oro); outline-offset: 2px; border-radius: 12px; }
.risposta { padding: 0 1.25rem 1.25rem; }

/* Chi ti segue */
.chi { display: grid; gap: 2rem; grid-template-columns: 180px 1fr; align-items: center; max-width: 52em; }
.chi img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; object-position: center 30%; border: 4px solid #fff; box-shadow: var(--ombra); }
.chi .firma { margin-top: 0.75rem; }
@media (max-width: 600px) {
    .chi { grid-template-columns: 1fr; text-align: center; }
    .chi img { margin: 0 auto; }
}

/* Chiusura */
.chiusura { background: var(--ink-blue); color: #fff; text-align: center; }
.chiusura h2 { color: #fff; }
.chiusura h2::after { margin-left: auto; margin-right: auto; background: var(--oro); }
.chiusura p { max-width: 38em; margin: 0 auto 2rem; color: rgba(255, 255, 255, 0.92); }
.chiusura .azioni { justify-content: center; }
.chiusura .btn-wa { background: #fff; color: var(--wa); box-shadow: none; }
.chiusura .btn-wa:hover { background: var(--tela); }
.chiusura .btn-secondario { color: #fff; border-color: #fff; }
.chiusura .btn-secondario:hover { background: #fff; color: var(--ink-blue); }
.chiusura .altri { margin: 2.5rem auto 0; font-size: 0.98rem; }
.chiusura .altri a { color: var(--oro); }

/* Fondo pagina */
footer { padding: 3rem 1.5rem 6rem; text-align: center; border-top: 1px solid rgba(0, 0, 0, 0.1); }
.footer-text { font-family: 'Caveat', cursive; font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-arte, .footer-contatti { font-size: 0.92rem; margin-bottom: 0.9rem; }
.footer-arte a, .footer-contatti a { color: var(--ink-blue); }
.footer-links { display: flex; gap: 0.5rem 1.5rem; justify-content: center; flex-wrap: wrap; list-style: none; font-size: 0.875rem; }
.footer-links a { color: var(--carbone); }
.footer-piva { font-size: 0.8rem; color: var(--grigio); margin-top: 1rem; }

/* Pulsante WhatsApp fisso (come nel resto del sito) */
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 990; width: 60px; height: 60px; border-radius: 50%; background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease, bottom 0.3s ease; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3); }
.wa-float:focus-visible { outline: 3px solid var(--ink-blue); outline-offset: 3px; }
.wa-float svg { width: 32px; height: 32px; fill: currentColor; }
@media (max-width: 600px) {
    section { padding: 3rem 0; }
    .apertura { padding: 6.5rem 0 2.5rem; }
    .contenitore { padding: 0 1rem; }
    .azioni .btn { width: 100%; }
    .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; }
    .wa-float svg { width: 30px; height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .wa-float, .mobile-nav, .hamburger span { transition: none; }
    .btn:hover { transform: none; }
}
@media print {
    header, .mobile-nav, .wa-float, .azioni { display: none; }
    .apertura { padding-top: 1rem; }
}
