:root {
  --bg: #fcfaff;
  --bg-alt: #f5eefb;
  --lilac: #cdb9e8;
  --lilac-soft: #e8dcf6;
  --pink: #f4c8de;
  --pink-soft: #fbe6f0;
  --accent: #7a58a8;       /* viola per testi/pulsanti: buon contrasto */
  --accent-dark: #5f4189;
  --ink: #3a2f4b;
  --muted: #6e6280;
  --white: #fff;
  --radius: 22px;
  --shadow: 0 12px 40px rgba(122, 88, 168, .16);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Raleway", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 17px; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
h3 { font-size: 1.45rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--accent); margin: 0 0 .8rem; }
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-alt), var(--pink-soft) 140%); }
.section-sub { color: var(--muted); margin: -.2em 0 2.2rem; }

/* Pulsanti */
.btn { display: inline-block; padding: 14px 30px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(122, 88, 168, .35); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-ghost:hover { background: var(--lilac-soft); }

/* Barra in alto */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px max(4%, 20px); background: rgba(252, 250, 255, .86); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(205, 185, 232, .35); }
.brand { text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.brand small { font-family: var(--sans); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); margin-left: 8px; font-weight: 700; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0; background: var(--pink); transition: width .25s; }
.nav a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta { background: var(--lilac-soft); padding: 9px 20px; border-radius: 999px; color: var(--accent-dark); }
.nav-cta:hover { background: var(--lilac); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: .25s; }

/* Hero */
.hero { position: relative; overflow: hidden; min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; padding: 120px max(6%, 24px) 70px; background: radial-gradient(circle at 85% 20%, var(--pink-soft), transparent 55%), radial-gradient(circle at 10% 90%, var(--lilac-soft), transparent 50%), var(--bg); }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; z-index: 0; }
.b1 { width: 320px; height: 320px; background: var(--lilac); top: -80px; left: -60px; }
.b2 { width: 280px; height: 280px; background: var(--pink); bottom: -60px; right: 30%; }
.hero-text, .hero-visual { position: relative; z-index: 1; }
.hero h1 span { display: block; font-family: var(--sans); font-size: .28em; letter-spacing: .5em; text-transform: uppercase; color: var(--accent); margin-top: .8em; font-weight: 700; }
.lead { font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--accent-dark); margin: 0 0 1rem; }
.intro { color: var(--muted); max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { height: 480px; }
.circle { position: absolute; border-radius: 50%; background: linear-gradient(135deg, var(--lilac), var(--pink)); background-size: cover; background-position: center; border: 8px solid #fff; box-shadow: var(--shadow); display: grid; place-items: center; font-family: var(--serif); color: #fff; overflow: hidden; }
.circle::before { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 3px solid var(--lilac); opacity: .6; z-index: -1; }
.c-main { width: 340px; height: 340px; right: 10%; top: 5%; font-size: 5rem; }
.c-small { width: 170px; height: 170px; left: 6%; bottom: 8%; background-image: linear-gradient(135deg, var(--pink), var(--lilac)); font-size: 2.5rem; }
.c-dot { width: 54px; height: 54px; right: 4%; bottom: 14%; background: var(--pink); border-width: 5px; }
.c-dot::before, .c-small::before { display: none; }
.circle.has-img { color: transparent; }
.circle > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }

/* Servizi */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 3rem; }
.service { background: #fff; border-radius: var(--radius); padding: 38px 32px; box-shadow: var(--shadow); border-top: 6px solid var(--lilac); transition: transform .3s; }
.service:nth-child(2) { border-top-color: var(--pink); }
.service:hover { transform: translateY(-6px); }
.service .ico { width: 62px; height: 62px; border-radius: 18px; background: linear-gradient(135deg, var(--lilac-soft), var(--pink-soft)); display: grid; place-items: center; margin-bottom: 20px; }
.service .ico svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service p { color: var(--muted); margin: 0 0 14px; }
.service ul { list-style: none; padding: 0; margin: 0; }
.service li { padding: 7px 0 7px 26px; position: relative; border-top: 1px solid var(--lilac-soft); font-size: .97rem; }
.service li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: var(--pink); }

.service { display: flex; flex-direction: column; }
.service .more { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 14px 0 0; font: 700 .95rem var(--sans); color: var(--accent); cursor: pointer; }
.service .more:hover { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 4px; }
.service p { flex: 0 0 auto; }

/* Scheda servizio */
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(58, 47, 75, .55); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-box { position: relative; background: #fff; border-radius: var(--radius); width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: clamp(28px, 5vw, 46px); box-shadow: 0 30px 80px rgba(58, 47, 75, .35); border-top: 6px solid var(--lilac); animation: pop .35s both; }
.modal-box .ico { width: 62px; height: 62px; border-radius: 18px; background: linear-gradient(135deg, var(--lilac-soft), var(--pink-soft)); display: grid; place-items: center; margin-bottom: 16px; }
.modal-box .ico svg { width: 30px; height: 30px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.modal-lead { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--accent-dark); margin: 0 0 1em; }
.modal-box p { color: var(--muted); }
.modal-box h4 { font-family: var(--sans); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; color: var(--accent); margin: 1.6em 0 .6em; }
.modal-list { list-style: none; padding: 0; margin: 0 0 1.6em; display: flex; flex-wrap: wrap; gap: 8px; }
.modal-list li { background: var(--lilac-soft); color: var(--accent-dark); padding: 6px 16px; border-radius: 999px; font-weight: 600; font-size: .9rem; }
.modal-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.modal-close { position: absolute; top: 14px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--lilac-soft); color: var(--accent-dark); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal-close:hover { background: var(--lilac); }

/* Portfolio */
.cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.cat-card { text-align: left; background: #fff; border: 2px solid transparent; border-radius: var(--radius); padding: 0; cursor: pointer; font-family: inherit; color: inherit; overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, border-color .25s; }
.cat-card:hover { transform: translateY(-5px); }
.cat-card.active { border-color: var(--accent); }
.cat-thumb { height: 140px; background: linear-gradient(135deg, var(--lilac), var(--pink)); background-size: cover; background-position: center; }
.cat-body { padding: 16px 20px 20px; }
.cat-body h3 { margin: 0 0 4px; font-size: 1.3rem; }
.cat-body p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.subcats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 32px 0 6px; }
.chip { border: 2px solid var(--lilac); background: #fff; color: var(--accent-dark); padding: 9px 20px; border-radius: 999px; font: 600 .92rem var(--sans); cursor: pointer; transition: .2s; }
.chip:hover { background: var(--lilac-soft); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.gallery { columns: 3 260px; column-gap: 18px; margin-top: 30px; }
.item { break-inside: avoid; margin-bottom: 18px; position: relative; border-radius: 18px; overflow: hidden; cursor: zoom-in; background: var(--lilac-soft); box-shadow: 0 6px 20px rgba(122, 88, 168, .14); animation: pop .45s both; }
.item img, .item video { width: 100%; height: auto; transition: transform .5s; }
.item:hover img, .item:hover video { transform: scale(1.04); }
.item .play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(transparent 50%, rgba(58, 47, 75, .25)); }
.item .play::after { content: ""; width: 62px; height: 62px; border-radius: 50%; background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%237a58a8' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 34px no-repeat; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.more-btn { display: block; margin: 8px auto 0; }
.footer-legal { margin-top: 6px !important; font-size: .8rem; opacity: .8; }
.footer-links { margin-top: 10px !important; font-size: .85rem; }
.footer-links a, .footer-links button { color: #e8dcf6; background: none; border: 0; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.check a { color: var(--accent); }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; background: rgba(255, 255, 255, .6); border-radius: var(--radius); border: 2px dashed var(--lilac); margin-top: 30px; }
@keyframes pop { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Chi sono */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; }
.about-visual { position: relative; height: 380px; }
.c-about { width: 320px; height: 320px; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 4.5rem; }
.about-text p { color: var(--muted); }
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 64px; }
.story-card { position: relative; overflow: hidden; background: radial-gradient(circle at 100% 0, var(--lilac-soft), transparent 60%), radial-gradient(circle at 0 100%, var(--pink-soft), transparent 60%), #fff; border-radius: var(--radius); padding: 34px 30px; box-shadow: var(--shadow); }
.story-card h3 { font-family: "Caveat", cursive; font-weight: 700; font-size: 2.1rem; color: var(--accent-dark); margin-bottom: .4em; }
.story-card p { margin: 0 0 .9em; color: var(--ink); font-size: .98rem; }
.story-card strong { font-weight: 700; }
.circle.has-img { background-size: 112%; }
.stats { display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.stat strong { display: block; font-family: var(--serif); font-size: 2.4rem; color: var(--accent); line-height: 1; }
.stat span { font-size: .85rem; color: var(--muted); }

/* Contatti */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 24px 0; }
.contact-list li { padding: 8px 0; }
.contact-list a { text-decoration: none; font-weight: 600; }
.contact-list a:hover { color: var(--accent); }
.contact-list small { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 700; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; }
.socials a { padding: 8px 18px; border-radius: 999px; background: #fff; border: 2px solid var(--lilac); text-decoration: none; font-weight: 600; font-size: .9rem; color: var(--accent-dark); transition: .2s; }
.socials a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.form { background: #fff; padding: clamp(24px, 4vw, 42px); border-radius: var(--radius); box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=tel], select, textarea { width: 100%; padding: 13px 16px; border: 2px solid var(--lilac-soft); border-radius: 14px; font: inherit; color: var(--ink); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(122, 88, 168, .15); }
input.invalid, textarea.invalid { border-color: #d9558a; }
textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; }
.check { display: flex; gap: 10px; font-weight: 500; align-items: flex-start; margin-bottom: 22px; font-size: .85rem; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.form-msg { margin: 14px 0 0; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: #3c8a5c; } .form-msg.err { color: #c0356f; }

.footer { text-align: center; padding: 34px 20px; background: var(--ink); color: #d9cfe8; font-size: .9rem; }
.footer p { margin: 0; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(40, 30, 58, .92); display: flex; align-items: center; justify-content: center; }
.lb-stage { max-width: 90vw; max-height: 86vh; }
.lb-stage img, .lb-stage video { max-width: 90vw; max-height: 86vh; border-radius: 12px; }
.lb-close, .lb-nav { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; cursor: pointer; line-height: 1; transition: background .2s; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .3); }
.lb-close { top: 20px; right: 20px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }

/* Banner cookie (compare solo se attivi Google Analytics) */
.cookie-banner { position: fixed; z-index: 120; left: 16px; right: 16px; bottom: 16px; max-width: 760px; margin: 0 auto; background: #fff; border-radius: var(--radius); box-shadow: 0 18px 60px rgba(58, 47, 75, .3); border: 2px solid var(--lilac); padding: 18px 22px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: .9rem; line-height: 1.5; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 10px; }
.cookie-actions .btn { padding: 10px 24px; }

/* Pagine legali (privacy, cookie) */
.legal { max-width: 800px; margin: 0 auto; padding: 120px 20px 70px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); }
.legal h2 { font-size: 1.5rem; margin-top: 1.8em; }
.legal p, .legal li { color: var(--ink); }
.legal .note { background: var(--pink-soft); border-left: 5px solid var(--lilac); padding: 12px 18px; border-radius: 10px; font-size: .92rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; }
.legal th, .legal td { border: 1px solid var(--lilac-soft); padding: 8px 12px; text-align: left; vertical-align: top; }
.legal th { background: var(--bg-alt); }

/* Mobile */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 110px; text-align: center; }
  .intro { margin-inline: auto; } .hero-actions { justify-content: center; }
  .hero-visual { height: 360px; order: -1; }
  .c-main { width: 250px; height: 250px; right: 50%; transform: translateX(50%); }
  .c-small { width: 120px; height: 120px; left: 8%; } .c-dot { right: 12%; }
  .about, .contact { grid-template-columns: 1fr; gap: 36px; }
  .about-visual { height: 280px; } .c-about { width: 240px; height: 240px; }
  .row { grid-template-columns: 1fr; }
  .menu-btn { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 20px; gap: 16px; background: rgba(252, 250, 255, .98); border-bottom: 1px solid var(--lilac-soft); display: none; }
  .nav.open { display: flex; }
  .lb-nav { width: 42px; height: 42px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
