
:root{font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#45243b;background:#f9f0f4}*{box-sizing:border-box}body{margin:0}.shell{width:min(100%,460px);min-height:100dvh;margin:auto;background:linear-gradient(160deg,#fff9fb,#f8eaf2);padding:calc(18px + env(safe-area-inset-top)) 20px calc(25px + env(safe-area-inset-bottom));box-shadow:0 0 45px #7c3e5920}.hero{background:linear-gradient(180deg,#fff9fbe8 0%,#fff9fbc9 37%,#fff9fb22 65%,#fff9fb 100%),url("coppia-romantica.png") center bottom/cover no-repeat;min-height:680px;padding:22px 0 250px;margin:-6px -2px 0}.hero h1{max-width:370px}.hero p{max-width:360px}.langrow{display:flex;justify-content:space-between;align-items:center;gap:12px}.langrow select{border:1px solid #dcbacc;border-radius:10px;padding:9px;background:white;color:#63334e;max-width:55%}.brand{display:flex;align-items:center;justify-content:space-between;font-weight:800;letter-spacing:.08em;font-size:13px}.heart{color:#c35084;font-size:26px}h1{font-family:Georgia,serif;font-size:38px;line-height:1.07;margin:32px 0 14px}h2{font-family:Georgia,serif;font-size:28px;line-height:1.18;margin:24px 0}p{line-height:1.6}.muted{color:#876b7c;font-size:13px}.pill{display:inline-block;border-radius:40px;padding:8px 12px;background:#f3dbe7;font-size:12px;font-weight:700;color:#803e61}.panel{background:#fff;border:1px solid #eedce5;border-radius:22px;padding:19px;margin:18px 0;box-shadow:0 12px 28px #6e31550d}.ad{border:1px dashed #cdbac6;background:#fff8fb;border-radius:14px;min-height:78px;display:flex;align-items:center;justify-content:center;text-align:center;padding:12px;color:#9a8490;font-size:12px;margin:22px 0}.btn{width:100%;border:0;background:#79375c;color:white;padding:17px 20px;border-radius:15px;font-weight:750;font-size:16px;cursor:pointer}.btn:focus-visible,.opt:focus-visible{outline:3px solid #f0a4c9}.secondary{background:#f2dce7;color:#79375c}.opt{width:100%;display:block;text-align:left;border:1px solid #e7cbd9;background:white;border-radius:14px;padding:15px;margin:10px 0;font-size:15px;color:#542f47;cursor:pointer}.opt.selected{background:#f4dce8;border-color:#9b4c77;font-weight:700}.progress{height:7px;border-radius:20px;background:#eedce5;overflow:hidden;margin:16px 0}.progress>div{height:100%;background:#b85585;transition:width .2s}.hidden{display:none}.score{display:flex;justify-content:space-between;border-bottom:1px solid #f1e4eb;padding:12px 0;gap:12px}.score strong{font-size:21px}.note{font-size:12px;line-height:1.5;color:#886f7e}footer{font-size:12px;color:#886f7e;margin-top:24px}.top{margin-top:22px}.back{background:none;border:0;color:#7a3c5e;font-size:14px;padding:8px 0;cursor:pointer}label{display:block;font-size:13px;margin:12px 0}.consent{display:flex;align-items:flex-start;gap:9px}.consent input{margin-top:4px}a{color:#7d355e}#detail{white-space:pre-line}

.brand-amp{color:#ba5684}.no-top{margin-top:0}.compact-bottom{margin-bottom:12px}.spacing-top{margin-top:10px}

.site-nav{display:flex;justify-content:space-between;gap:6px;flex-wrap:wrap;padding:16px 0 10px;border-bottom:1px solid #f0dce7}.site-nav a{text-decoration:none;color:#743957;font-size:12px;font-weight:700;padding:5px 1px}.welcome-path{margin-top:28px}.welcome-path h2{font-size:29px;margin:10px 0}.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;color:#9d4e78}.path-grid{display:grid;grid-template-columns:1fr;gap:12px}.path-card{text-decoration:none;color:#64344c;background:#fff;border:1px solid #ecd9e3;border-radius:17px;padding:17px;display:grid;gap:6px;box-shadow:0 5px 15px #6e315508}.path-card span{font-size:13px;line-height:1.5;color:#866578}.tag{display:inline-block;font-size:12px;color:#74425f;background:#f5e4ec;border-radius:99px;padding:6px 10px}.article h1{font-size:35px}.article h2{font-size:24px;margin:30px 0 8px}.article p,.article li{font-size:15px;line-height:1.72}.article ul{padding-left:21px}.article .lead{font-size:17px;color:#65475b}.article .sources{font-size:13px;border-top:1px solid #e8d8e1;padding-top:14px;margin-top:30px}.article .sources a{word-break:break-word}.article .takeaway{padding:16px;background:#fff;border-left:4px solid #b85c89;border-radius:8px}.article-card{background:white;border:1px solid #efdae5;padding:19px;border-radius:18px;margin:12px 0}.article-card h2{font-size:22px;margin:6px 0}.article-card p{margin:6px 0 15px;color:#6d5262}.article-card a{font-weight:700}.diary-form{margin-top:24px}.diary-question{padding:15px 0;border-bottom:1px solid #ecdce6}.diary-question legend{font-weight:650;padding:0;margin-bottom:10px}.diary-question label{font-size:13px;padding:9px 0;margin:0}.diary-question input{margin-right:8px}.small-status{font-size:13px;color:#784c65}.results-note{border-radius:15px;padding:17px;background:#fff;border:1px solid #e7d0df;margin-top:16px;white-space:pre-line}.muted-link{font-size:12px;color:#71536b}.nav-footer{margin:25px 0;font-size:13px}html{scroll-behavior:smooth}a:focus-visible,button:focus-visible,select:focus-visible{outline:3px solid #b95585;outline-offset:3px}@media(min-width:700px){.shell{width:min(100%,720px)}.path-grid{grid-template-columns:1fr 1fr}.hero{min-height:620px}.hero h1{max-width:500px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.progress>div{transition:none}}

/* V5 - Finale della coppia / ruota mobile */
.couple-form label{font-size:14px;font-weight:700;color:#653b54;margin:14px 0 6px}
.couple-form input,.couple-form select{display:block;width:100%;padding:14px 13px;border:1px solid #dcbacc;border-radius:13px;background:#fffafc;color:#4b2a40;font:inherit;font-size:16px;min-height:48px}
.couple-form .btn{margin-top:18px}
.couple-form input:focus-visible,.couple-form select:focus-visible{outline:3px solid #dfa3c2;outline-offset:1px}
.wheel-panel{background:radial-gradient(ellipse at top,#ffecf5 5%,#fbf3f7 70%);padding:20px 10px 24px;border:1px solid #ead3df;border-radius:22px;text-align:center;margin:20px 0 24px;overflow:hidden}
.wheel-panel .eyebrow{margin:3px 0 6px}
.couple-heading{font-size:28px;margin:7px 0 12px;overflow-wrap:anywhere;color:#6d3352}
.wheel-stage{width:100%;max-width:286px;aspect-ratio:1;margin:15px auto 14px;position:relative;display:grid;place-items:center}
.roulette-wheel{--spin-degrees:0deg;position:absolute;inset:10px;border-radius:50%;background:repeating-conic-gradient(from -90deg,transparent 0deg 27deg,#fff7 27deg 29deg,transparent 29deg 30deg),conic-gradient(from -90deg,#9a4a77,#b55b88,#edb3ce,#f6c5d6,#df96b7,#99446e);box-shadow:inset 0 0 0 9px #fff7,inset 0 0 0 13px #b46a8d,0 7px 30px #8f3c6b35;transform:rotate(0deg)}
.roulette-wheel.spinning{transform:rotate(var(--spin-degrees));transition:transform 2.6s cubic-bezier(.11,.76,.16,1)}
.wheel-inner{position:absolute;inset:23%;border-radius:50%;background:#fff9fc;box-shadow:0 0 0 5px #e7aec7,0 4px 12px #8e47653d;display:grid;place-items:center}
.wheel-heart{font-family:Georgia,serif;font-size:42px;color:#b35d87}
.wheel-pointer{position:absolute;z-index:3;top:-5px;left:calc(50% - 12px);width:0;height:0;border-left:12px solid transparent;border-right:12px solid transparent;border-top:23px solid #6a3450;filter:drop-shadow(0 3px 2px #ffffffae)}
.wheel-readout{position:relative;z-index:2;display:flex;align-items:baseline;justify-content:center;gap:3px;background:#fffdfefa;border:1px solid #dca1c0;border-radius:100px;padding:8px 17px;min-width:121px;box-shadow:0 4px 19px #542c4630;pointer-events:none}
.wheel-readout strong{font-size:43px;line-height:1.15;font-variant-numeric:tabular-nums;color:#713855}
.wheel-readout span{font-size:16px;font-weight:650;color:#8d6a7f}
.wheel-title{font-size:17px;line-height:1.4;margin:12px 7px;color:#6a3153}
.wheel-explanation{font-size:13px;line-height:1.55;color:#73586a;padding:0 12px;margin:8px auto;max-width:360px}
@media(prefers-reduced-motion:reduce){.roulette-wheel.spinning{transition:none}}

/* V6 — Ruota cinematografica 10–100 e animazioni fluide senza librerie esterne */
.wheel-panel{position:relative;isolation:isolate;background:
 radial-gradient(ellipse 95% 55% at 50% 0%,#fff8eb 0%,#ffe9f3 53%,transparent 100%),
 linear-gradient(145deg,#fff9fb 0%,#f8e1ed 60%,#f9dbea 100%);
 border:1px solid #e0b7ce;box-shadow:0 15px 38px #6e31551c, inset 0 1px 0 #ffffffee;
 padding:24px 10px 29px;}
.wheel-panel::before{content:"";position:absolute;z-index:-1;inset:-60px;opacity:.55;pointer-events:none;
 background:radial-gradient(circle at 12% 20%,#fffbeb 0 3px,transparent 6px),radial-gradient(circle at 87% 15%,#fdf1d8 0 4px,transparent 11px),radial-gradient(circle at 93% 80%,#ffffff 0 2px,transparent 8px),radial-gradient(circle at 20% 84%,#ffffff 0 3px,transparent 11px);}
.wheel-stage{max-width:348px;margin:20px auto 18px;filter:drop-shadow(0 18px 20px #65304a35)}
.wheel-halo{position:absolute;inset:0;border-radius:50%;background:conic-gradient(from 30deg,#fff2c3,#d493b0,#fffcfa,#c96b96,#fff4c9);
 opacity:.83;box-shadow:0 0 0 2px #e4bdcb,0 0 25px #d49aaf88;}
.roulette-wheel{inset:11px;--spin-degrees:0deg;transform:rotate(0deg);overflow:hidden;
 background:repeating-conic-gradient(from -18deg,#fff8ffb0 0deg 1.1deg,transparent 1.1deg 36deg),
 conic-gradient(from -18deg,
 #e9aec9 0deg 36deg,#fee5ed 36deg 72deg,#c96d9b 72deg 108deg,#fce0e9 108deg 144deg,
 #e6a5c5 144deg 180deg,#fff0e9 180deg 216deg,#bf6c99 216deg 252deg,#f6ccdc 252deg 288deg,
 #d887ad 288deg 324deg,#ffe6ad 324deg 360deg);
 box-shadow:inset 0 0 0 3px #fffaf2,inset 0 0 0 9px #bb7c9b,0 4px 10px #8b477344;
 will-change:transform;}
.roulette-wheel::after{content:"";position:absolute;inset:0;border-radius:50%;background:radial-gradient(circle at 32% 24%,#ffffffa8,transparent 38%);pointer-events:none}
.roulette-wheel.spinning{transform:rotate(var(--spin-degrees));transition:transform 3.8s cubic-bezier(.105,.81,.13,1)}
.wheel-marks{position:absolute;inset:0}
.wheel-mark{position:absolute;left:50%;top:50%;width:42px;height:33px;margin-left:-21px;margin-top:-16.5px;
 display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:900;
 color:#63314c;text-shadow:0 1px 0 #fff9;letter-spacing:-.035em;
 transform:rotate(var(--a)) translateY(-115px) rotate(calc(-1 * var(--a)));
 background:linear-gradient(165deg,#fffdf0e8,#fff6ffe8);border:1px solid #fff9;
 border-radius:8px;box-shadow:0 3px 8px #6c3d5130,inset 0 1px 0 #fff;}
.wheel-mark[data-decade="100"]{background:linear-gradient(140deg,#fffce5,#fbd99f);color:#7c4c26;border-color:#f7ddb1}
.wheel-inner{inset:34%;background:radial-gradient(circle at 35% 30%,#ffffff 0%,#ffe6f1 78%);box-shadow:0 0 0 5px #fff7,0 0 0 8px #d9a7bd,0 5px 19px #51254155;z-index:1}
.wheel-heart{font-size:46px;color:#a44975;text-shadow:0 1px 8px #ffffff}
.wheel-pointer{z-index:5;top:-4px;border-left:14px solid transparent;border-right:14px solid transparent;border-top:31px solid #713553;left:calc(50% - 14px);filter:drop-shadow(0 3px 1px #fff9) drop-shadow(0 1px 5px #48233d55)}
.wheel-readout{z-index:6;background:linear-gradient(180deg,#fffdfefc,#ffeaf6f9);border:2px solid #dcb3c7;box-shadow:0 5px 16px #652c4f42,inset 0 1px 0 #fff;border-radius:100px;padding:8px 14px;min-width:118px}
.wheel-readout strong{font-size:43px;color:#60304c}
.wheel-title{font-size:20px;font-family:Georgia,serif}
#celebrationCanvas{position:fixed;inset:0;width:100%;height:100%;pointer-events:none;z-index:100;display:none}
#celebrationCanvas.show{display:block}
@media(max-width:380px){.wheel-stage{max-width:295px}.wheel-mark{transform:rotate(var(--a)) translateY(-93px) rotate(calc(-1 * var(--a)));width:37px;margin-left:-18.5px;font-size:13px}}
@media(min-width:700px){.wheel-stage{max-width:348px}}
@media(prefers-reduced-motion:reduce){.roulette-wheel.spinning{transition:none}#celebrationCanvas{display:none!important}}

/* Optional photographic fireworks overlay: appears only at exactly 100. */
#celebrationBackdrop{position:fixed;inset:0;z-index:99;pointer-events:none;opacity:0;visibility:hidden;
 background:linear-gradient(180deg,#180a20aa 0%,#210e2c28 60%,transparent 100%),url("./fuochi_overlay_hd.webp") top center/cover no-repeat;
 transition:opacity .7s ease,visibility .7s}
#celebrationBackdrop.show{opacity:.95;visibility:visible}
@media(prefers-reduced-motion:reduce){#celebrationBackdrop{display:none!important}}
