:root{
--c1:#0f3e7a; --c2:#22c55e; --c3:#f59e0b;
--bg:#0b1020; --card:#0f152b; --ink:#e7eefc; --muted:#96a1c0; --line:#223055; --white:#fff;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;scroll-behavior:smooth}
body{font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:linear-gradient(180deg,#0b1020 0%, #0b1020 55%, #0d1327 100%);color:var(--ink)}
a{color:inherit;text-decoration:none}
.wrap{max-width:1150px;margin:0 auto;padding:0 16px}
header{position:sticky;top:0;background:rgba(11,16,32,.7);backdrop-filter:blur(8px);border-bottom:1px solid rgba(255,255,255,.06);z-index:20}
.nav{display:flex;align-items:center;justify-content:space-between;padding:12px 0}
.brand{display:flex;gap:12px;align-items:center}
.logo{width:38px;height:38px;background-image:url("../images/logo2.png"); background-repeat:no-repeat; background-size:cover; background-position:center; border-radius:8px}
.brand b{font-size:16px;letter-spacing:.2px}
.brand small{color:#aab8e8}
.cta{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.btn{appearance:none;border:1px solid #3653a5;background:#15214a;color:var(--ink);padding:10px 14px;border-radius:10px;cursor:pointer;transition:.2s;display:inline-flex;align-items:center;gap:8px}
.btn:hover{transform:translateY(-1px);border-color:#5b7cff}
.btn.primary{background:linear-gradient(135deg,#2563eb,#0ea5e9);border-color:transparent;color:#fff;box-shadow:0 8px 24px rgba(14,165,233,.28)}
.btn.success{background:linear-gradient(135deg,#16a34a,#22c55e);border-color:transparent;color:#062314;box-shadow:0 8px 24px rgba(34,197,94,.25)}
.btn.light{background:#0c1739;border-color:#2a3f7c}

/* Burger */
.burger{display:none; width:44px;height:38px;border:1px solid #2a3f7c;background:#0c1739;color:#cfe0ff;border-radius:10px;align-items:center;justify-content:center;cursor:pointer}
.burger .bars{position:relative;width:20px;height:2px;background:#cfe0ff;border-radius:2px}
.burger .bars::before,.burger .bars::after{content:"";position:absolute;left:0;width:20px;height:2px;background:#cfe0ff;border-radius:2px;transition:.25s}
.burger .bars::before{top:-6px}
.burger .bars::after{top:6px}
.burger.open .bars{background:transparent}
.burger.open .bars::before{transform:translateY(6px) rotate(45deg)}
.burger.open .bars::after{transform:translateY(-6px) rotate(-45deg)}

/* Mobile panel */
.mobile-panel{display:none;position:absolute;top:100%;left:0;right:0;background:rgba(17,24,54,.98);border-bottom:1px solid #223055}
.mobile-panel .inner{padding:12px 16px;display:grid;gap:8px}
.mobile-panel a{padding:10px 12px;border:1px solid #2a3f7c;border-radius:10px;background:#0c1739}
.mobile-panel .cta{gap:6px}

/* Sections */
.hero{padding:54px 0 16px}
.hero h1{font-size:38px;line-height:1.15;margin:6px 0 12px}
.hero p{color:#cfe0ff;font-size:16px;margin:0 0 16px}
.badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.badge{font-size:12px;padding:6px 10px;border-radius:999px;border:1px solid #2a3f7c;background:#0c1739;color:#c8d6ff}

.grid{display:grid;gap:14px}
.g3{grid-template-columns:1fr}
.g2{grid-template-columns:1fr}
@media(min-width:880px){.g3{grid-template-columns:1fr 1fr 1fr}.g2{grid-template-columns:1fr 1fr}}

.card{background:rgba(17,24,54,.9);border:1px solid var(--line);border-radius:14px;padding:16px}
.section{padding:24px 0}
.title{font-size:22px;margin:0 0 10px}
.sub{font-size:14px;color:#d7e3ff;margin:0 0 12px}
.hr{height:1px;background:linear-gradient(90deg,transparent, #22c55e 40%, #22c55e 60%, transparent);margin:14px 0}
.chips{display:flex;gap:8px;flex-wrap:wrap}
.chip{border:1px dashed #33509d;background:#101a3b;color:#d7e3ff;font-size:12px;padding:6px 10px;border-radius:10px}
.muted{color:var(--muted)}
.right{text-align:right}
.tot{font-size:22px;color:#22c55e;font-weight:800}

table{width:100%;border-collapse:collapse;background:rgba(17,24,54,.9);border:1px solid var(--line);border-radius:12px;overflow:hidden}
th,td{padding:10px;border-bottom:1px solid #1b2751}
thead th{background:#0f1a3c}
tfoot td{background:#101a3b;font-weight:800}
input,select{background:#0c1739;border:1px solid #2a3f7c;color:#cfe0ff;border-radius:8px;padding:8px 10px}

/* Hero visuale */
.hero-visual{display:grid;gap:12px;grid-template-columns:1fr}
@media(min-width:880px){.hero-visual{grid-template-columns:3fr 2fr}}
.ph{position:relative;border:1px dashed #35519e;background:#0e1738;border-radius:12px;overflow:hidden;color:#9db2ff}
.ph.ratio-16x9{aspect-ratio:16/9}
.ph.ratio-1x1{aspect-ratio:1/1}
.ph.ratio-4x3{aspect-ratio:4/3}
.ph .cap{position:absolute;inset:auto 10px 10px 10px;background:rgba(16,24,54,.9);border:1px solid #27418b;border-radius:10px;padding:8px;font-size:12px}
.ph .hint{position:absolute;top:10px;left:10px;background:#122a61;border:1px solid #27418b;color:#cfe0ff;border-radius:999px;padding:4px 8px;font-size:11px}
.ph img{width:100%;height:100%;object-fit:cover;opacity:.60}

/* Pacchetti */
section{scroll-margin-top:84px}
.pkg-grid{display:grid;gap:12px;grid-template-columns:1fr}
@media(min-width:880px){.pkg-grid{grid-template-columns:repeat(3,1fr)}}
.pkg-card{position:relative;border:1px solid #223055;border-radius:14px;padding:14px;background:#0f1837;cursor:pointer;transition:.3s;transform:translateY(0)}
.pkg-card:hover{transform:translateY(-3px);border-color:#3a58b8}
.pkg-card.selected{outline:2px solid #4f7dff; box-shadow:0 10px 24px rgba(79,125,255,.2)}
.pkg-card .hd{display:flex;align-items:center;gap:10px}
.pkg-card .hd i{font-size:20px;color:#60a5fa}
.pkg-card .pill{position:absolute;top:10px;right:10px;font-size:11px;background:#12306b;border:1px solid #22c55e;color:#cfe0ff;border-radius:999px;padding:3px 8px}
.pkg-price{font-size:22px;font-weight:800;color:#22c55e;margin:8px 0 6px}
.mini{font-size:12px;color:#9db2ff}

/* Servizi */
.svc-grid{display:grid;gap:10px;grid-template-columns:1fr 1fr}
@media(min-width:880px){.svc-grid{grid-template-columns:repeat(4,1fr)}}
.svc-card{position:relative;border:1px solid #223055;border-radius:12px;background:#101a3b;padding:12px;cursor:pointer;transition:.25s;min-height:120px;display:flex;flex-direction:column;justify-content:space-between;transform:translateY(0)}
.svc-card:hover{border-color:#3a58b8;transform:translateY(-3px)}
.svc-card .ico{width:34px;height:34px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:#0e244f;color:#9dc0ff}
.svc-card h4{margin:8px 0 4px;font-size:14px}
.svc-card p{margin:0;font-size:12px;color:#aab8e8}
.svc-card .price{font-size:14px;color:#22c55e;font-weight:700}
.svc-card .check{position:absolute;top:10px;right:10px;width:22px;height:22px;border-radius:50%;border:1px solid #3653a5;display:flex;align-items:center;justify-content:center;color:transparent;background:#0c1739}
.svc-card.selected{outline:2px solid #4f7dff; box-shadow:0 10px 20px rgba(79,125,255,.18)}
.svc-card.selected .check{color:#0f2a14;background:linear-gradient(135deg,#16a34a,#22c55e);border-color:transparent}
.svc-card.dim{opacity:.55;pointer-events:none}
.incl{font-size:11px;background:#12306b;border:1px solid #2b4ab0;color:#cfe0ff;border-radius:6px;padding:2px 6px;display:inline-block;margin-top:6px}
.incl.badge{position:absolute;bottom:10px;right:10px}

/* Stepper quantità */
.stepper{display:flex;align-items:center;gap:8px;margin-top:8px}
.stepper .btnS{width:30px;height:30px;border-radius:8px;border:1px solid #2a3f7c;background:#0c1739;color:#cfe0ff;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:.2s}
.stepper .btnS:hover{transform:translateY(-1px)}
.stepper .qty{min-width:30px;text-align:center}

/* Footer */
footer{border-top:1px solid rgba(255,255,255,.06);margin-top:28px;padding:20px 0;color:#a8b5df}
.contact-line{display:flex;gap:12px;flex-wrap:wrap;font-size:14px;color:#cfe0ff;align-items:center}
.contact-line a{color:#cfe0ff}
.price{font-size:26px;font-weight:800;color:#22c55e;margin:4px 0 10px}

/* Animazioni di ingresso */
@media (prefers-reduced-motion:no-preference){
.reveal{opacity:0;transform:translateY(14px);transition:opacity .6s ease, transform .6s ease}
.reveal.in{opacity:1;transform:none}
.reveal.delay-1{transition-delay:.08s}
.reveal.delay-2{transition-delay:.16s}
.reveal.delay-3{transition-delay:.24s}
}

/* CART: pulsante fisso + bottom sheet */
.cart-fab {
position: fixed;
bottom: 0;
left: 0; right: 0;
z-index: 30;
display: inline-flex; justify-content:center; align-items: center;
gap: 10px;
background: linear-gradient(360deg, #16a34a, #00ff5e);
color: #000;
border: none;
padding: 25px 12px;
box-shadow: 0 10px 24px rgba(34,197,94,.28);
font-weight: 700;
cursor: pointer;
width: 100%;
text-align: center;
}
.cart-fab i{font-size:16px}
.cart-fab .total{font-weight:800}
@media(min-width:900px){
.cart-fab {
        right: 0;
        left: auto;
        width: auto;
        padding: 25px 16px;
        border-radius: 25px 25px 0px 0px;
        width: 100%;
    }
}

.cart-backdrop{
position:fixed; inset:0; background:rgba(8,12,26,.6); backdrop-filter:blur(2px);
display:none; z-index:24;
}
.cart-backdrop.open{display:block}
.cart-panel{
position:fixed; left:0; right:0; bottom:0; z-index:25;
background:rgba(17,24,54,.98); border-top:1px solid #223055; border-radius:14px 14px 0 0;
max-height:80vh; transform:translateY(100%); transition:.28s ease;
box-shadow:0 -10px 30px rgba(0,0,0,.35);
}
.cart-panel.open{transform:translateY(0)}
.cart-panel .head{display:flex;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid #223055}
.cart-panel .head b{font-size:16px}
.cart-panel .body{padding:12px 14px; overflow:auto; max-height:calc(80vh - 52px)}
.cart-panel .foot{padding:12px 14px;border-top:1px solid #223055;background:#0e1738}
.cart-panel .actions{display:flex;flex-wrap:wrap;gap:8px; position: relative; padding-bottom: 70px; justify-content: center;}
.cart-close{appearance:none;border:1px solid #2a3f7c;background:#0c1739;color:#cfe0ff;border-radius:8px;padding:8px 10px;cursor:pointer}

/* Desktop actions dock */
.actions-dock{
position:fixed; right:18px; bottom:18px; z-index:28;
display:none; gap:8px; flex-wrap:wrap;
}
.actions-dock .btn{ box-shadow:0 8px 18px rgba(34,197,94,.18) }
@media(min-width:900px){ .actions-dock{ display:none } }

/* Stampa */
@media print{
header,.mobile-panel,.burger,.cart-fab,.cart-backdrop,.cart-panel,.actions-dock{display:none!important}
body{background:#fff;color:#000}
.card,table{box-shadow:none;border-color:#ddd}
.wrap{max-width:none}
a.btn{border:1px solid #ccc !important; background:#fff !important; color:#000 !important}
}

/* Responsive header */
@media (max-width:880px){
.cta.desktop-only{display:none}
.burger{display:inline-flex}
.mobile-panel{display:none}
.mobile-panel.open{display:block;animation:slideDown .25s ease}
@keyframes slideDown{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
}

/* FAQ */
.faq{display:grid;gap:10px}
.faq details{
background:rgba(17,24,54,.9);
border:1px solid var(--line);
border-radius:12px;
padding:10px 12px;
transition:border-color .2s, box-shadow .2s;
}
.faq details[open]{border-color:#3a58b8; box-shadow:0 6px 18px rgba(0,0,0,.18)}
.faq summary{
list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:10px;
}
.faq summary::-webkit-details-marker{display:none}
.faq .q{display:flex; align-items:center; gap:10px; font-weight:700}
.faq .q i{color:#9dc0ff}
.faq .chev{color:#9db2ff; transition:transform .25s}
.faq details[open] .chev{transform:rotate(180deg)}
.faq .a{margin-top:8px; color:#d7e3ff; font-size:14px}
.faq .a p{margin:0}

    :root {
      --cb-bg: #0f172a;        /* slate-900 */
      --cb-fg: #ffffff;        /* white */
      --cb-accent: #22c55e;    /* green-500 */
      --cb-accent-2: #64748b;  /* slate-500 */
      --cb-danger: #ef4444;    /* red-500 */
      --cb-shadow: 0 10px 25px rgba(2, 6, 23, 0.25);
      --radius: 14px;
    }
   /* Banner */
    #cookie-banner {
      position: fixed;
      inset: auto 16px 16px 16px;
      z-index: 99999;
      background: var(--cb-bg);
      color: var(--cb-fg);
      border-radius: var(--radius);
      box-shadow: var(--cb-shadow);
      padding: 18px 16px;
      display: none; /* shown by JS if needed */
      max-width: 980px;
      margin: 0 auto;
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    }
    #cookie-banner .cb-row { display: grid; gap: 12px; align-items: center; }
    @media (min-width: 768px){
      #cookie-banner .cb-row { grid-template-columns: 1fr auto; }
    }
    #cookie-banner h3 { margin: 0 0 8px; font-size: 16px; }
    #cookie-banner p { margin: 0; font-size: 14px; opacity: .9; }
    #cookie-banner a { color: #93c5fd; text-decoration: underline; }
    .cb-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
    .cb-btn { cursor: pointer; border: 0; border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: 14px; }
    .cb-btn-primary { background: var(--cb-accent); color: #062a12; }
    .cb-btn-secondary { background: #1f2937; color: #e5e7eb; }
    .cb-btn-outline { background: transparent; color: #e5e7eb; outline: 1px solid #334155; }
    .cb-btn-danger { background: var(--cb-danger); color: #fff; }

    /* Modal Preferenze */
    #cookie-modal {
      position: fixed; inset: 0; z-index: 100000; display: none; backdrop-filter: blur(1.5px);
      background: rgba(2,6,23,.55);
      font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    }
    #cookie-modal .cb-card {
      background: #0b1220; color: #fff; max-width: 720px; margin: 8vh auto; border-radius: 16px; box-shadow: var(--cb-shadow);
      padding: 20px;
    }
    #cookie-modal h3 { margin: 0 0 14px; font-size: 20px; }
    #cookie-modal p { margin: 0 0 12px; opacity: .9; }
    .cb-list { display: grid; gap: 10px; margin: 16px 0; }
    .cb-item { display: flex; align-items: flex-start; gap: 12px; background: #0f172a; border: 1px solid #1f2937; border-radius: 12px; padding: 12px; }
    .cb-item h4 { margin: 0 0 6px; font-size: 15px; }
    .cb-item p { margin: 0; font-size: 13px; opacity: .9; }
    .cb-switch { margin-left: auto; }
    .cb-switch input { width: 44px; height: 24px; appearance: none; background: #334155; border-radius: 999px; position: relative; outline: 0; cursor: pointer; }
    .cb-switch input:before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #e5e7eb; transition: transform .2s ease; }
    .cb-switch input:checked { background: var(--cb-accent); }
    .cb-switch input:checked:before { transform: translateX(20px); }
    .cb-switch input:disabled { opacity: .5; cursor: not-allowed; }

    .cb-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; }

    /* Pulsante per riaprire preferenze */
    #cookie-pref-btn {
      position: fixed; right: 16px; bottom: 16px; z-index: 99998; display: none;
      background: #111827; color: #e5e7eb; border: 1px solid #30363d; border-radius: 999px; padding: 10px 14px; cursor: pointer; font-weight: 600; box-shadow: var(--cb-shadow);
    }

/* MINI-MENU: burger + panel (hover + tap support) */
.msm{
position:fixed;
left:12px;
top:50%;
transform:translateY(-50%);
z-index:9999;
display:flex;
align-items:flex-start;
gap:8px;
font-family:system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* burger button */
.msm-burger{
width:44px;
height:44px;
border-radius:10px;
background:#0d1220;
border:1px solid rgba(255,255,255,0.03);
color:#fff;
display:flex;
align-items:center;
justify-content:center;
cursor:pointer;
box-shadow:0 8px 20px rgba(2,6,23,0.6);
transition:transform .14s ease, background .12s ease;
}
.msm-burger i{ font-size:16px; color: #22c55e;}
.msm-burger:focus{ outline:2px solid rgba(14,165,255,0.12); outline-offset:3px; }

.msm-panel {
    background: #0d1220;
    padding: 10px 8px;
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(2,6,23,0.6);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(.98);
    transform-origin: top left;
    transition: opacity .28s ease, transform .28s cubic-bezier(.2,.9,.2,1), visibility 0s linear .28s;
    position: relative;
    left: -50px !important;
    top: 50px;
}

/* items */
.msm-item{
width:32px;
height:32px;
border-radius:10px;
display:inline-flex;
align-items:center;
justify-content:center;
text-decoration:none;
color:#fff;
background:transparent;
transition:background .14s ease, transform .12s ease;
outline:none;
}
.msm-item i{ font-size:18px; }
.msm-item i:hover{color: #22c55e;}

/* hover/focus on items */
.msm-item:hover,
.msm-item:focus{
background: rgba(255,255,255,0.03);
transform: translateY(-3px);
}

/* keyframes fadeInDown (dal pulsante verso il basso) */
@keyframes msmFadeInDown {
from { opacity:0; transform: translateY(-12px) scale(.98); }
to { opacity:1; transform: translateY(0) scale(1); }
}

/* Show panel on hover / focus-within (desktop) */
.msm:hover .msm-panel,
.msm:focus-within .msm-panel {
opacity:1;
visibility:visible;
transform: translateY(0) scale(1);
transition-delay:0s;
animation: msmFadeInDown .26s cubic-bezier(.2,.9,.2,1);
}

/* Show panel when JS toggles .msm-open (mobile tap) */
.msm.msm-open .msm-panel {
opacity:1;
visibility:visible;
transform: translateY(0) scale(1);
animation: msmFadeInDown .26s cubic-bezier(.2,.9,.2,1);
}

/* cosmetic: icon lift on hover or open */
.msm:hover .msm-item i,
.msm:focus-within .msm-item i,
.msm.msm-open .msm-item i {
transform: translateY(-3px);
transition: transform .12s ease;
}

/* responsive: keep panel usable on mobile (we support tap) */
@media (max-width:560px){
.msm{ left:8px; }
.msm-burger{ width:48px; height:48px; }
.msm-panel { right: auto; left: 56px; }
}

/* rounding */
.msm-panel{ border-top-right-radius:14px; border-bottom-right-radius:14px; }