/* Villa Giuliana — ULTRA PREMIUM (Luxury Healthcare) */
:root{
  --bg:#0b2a47;
  --bg2:#0f3c66;
  --ivory:#F6F2E8;
  --muted:rgba(246,242,232,.78);
  --muted2:rgba(246,242,232,.62);

  --gold:#B29B54;
  --gold2:#C9B574;
  --red:#941914;
  --navy:#10395D;

  --max:1180px;
  --pad:22px;
  --r:18px;
  --rl:28px;

  --shadow:0 18px 60px rgba(0,0,0,.38);
  --shadow2:0 10px 30px rgba(0,0,0,.26);
  --ease:cubic-bezier(.2,.8,.2,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(255,255,255,0.10), transparent 60%),
    radial-gradient(1000px 700px at 80% 20%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(800px 600px at 50% 100%, rgba(16,57,93,0.25), transparent 70%),
    linear-gradient(135deg,#0b2e4f 0%,#0e3c66 40%,#0b2a47 100%);
  color:var(--ivory);
  line-height:1.5;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
button,input,textarea,select{font:inherit}
::selection{background:rgba(178,155,84,.30)}

.container{max-width:var(--max); margin:0 auto; padding:0 var(--pad)}

.skip{
  position:absolute;
  left:-999px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}
.skip:focus{
  left:16px;
  top:16px;
  width:auto;
  height:auto;
  padding:10px 14px;
  background:var(--ivory);
  color:var(--bg);
  border-radius:12px;
  z-index:9999;
}

/* TOPBAR */
.topbar{
  border-bottom:1px solid rgba(246,242,232,.08);
  background:rgba(11,11,12,.55);
  backdrop-filter:blur(10px);
}
.topbar .row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  color:var(--muted2);
  font-size:13px;
}
.pills{display:flex; gap:10px; flex-wrap:wrap}
.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(246,242,232,.12);
  background:rgba(17,18,20,.45);
}
.dot{width:8px; height:8px; border-radius:999px}
.dot.gold{background:var(--gold)}
.dot.red{background:var(--red)}
.dot.navy{background:var(--navy)}

/* HEADER */
.header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(8,35,60,.65);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(255,255,255,.08);
  padding-top:2px;
  padding-bottom:2px;
}
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  padding:6px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:220px;
  line-height:1;
}
.brand img{
  height:clamp(70px, 6vw, 86px);
  width:auto;
  object-fit:contain;
  filter:drop-shadow(0 10px 26px rgba(0,0,0,.35));
}
.brand .t{display:flex; flex-direction:column; line-height:1.1}
.brand .t strong{
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:12px;
  color:var(--muted2);
}
.brand .t span{
  font-size:14px;
  color:var(--ivory);
}

.links{
  display:flex;
  gap:14px;
  align-items:center;
  flex-wrap:wrap;
}
.links a{
  color:rgba(255,255,255,.85);
  font-size:14px;
  padding:8px 12px;
  border-radius:10px;
  transition:all .25s ease;
}
.links a:hover{
  background:rgba(255,255,255,.08);
  color:#ffffff;
}
.links a.active{
  background:linear-gradient(180deg, rgba(178,155,84,.20), rgba(148,25,20,.12));
  border:1px solid rgba(178,155,84,.22);
  color:var(--ivory);
}

.cta{display:flex; gap:10px; align-items:center}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:11px 14px;
  border-radius:5px;
  border:1px solid rgba(246,242,232,.14);
  background:rgba(17,18,20,.45);
  color:var(--ivory);
  box-shadow:var(--shadow2);
  transition:transform .2s var(--ease), border .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover{
  transform:translateY(-1px);
  border-color:rgba(178,155,84,.35);
}
.btn.primary{
  background:linear-gradient(135deg,#1e5c8f,#2e79b7);
  color:#ffffff;
  font-weight:700;
  border-color:rgba(255,255,255,.15);
  letter-spacing:.02em;
}
.btn.primary:hover{
  transform:translateY(-2px) scale(1.02);
  background:linear-gradient(135deg,#2e79b7,#3d8ed1);
  box-shadow:0 12px 30px rgba(0,0,0,.35);
}
.btn.small{
  padding:9px 12px;
  font-size:14px;
  background:rgba(178,155,84,.15);
  border:1px solid rgba(178,155,84,.35);
}
.btn.small:hover{
  background:rgba(178,155,84,.25);
}
.btn.ghost{background:rgba(11,11,12,.35)}

.burger{
  display:none;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(246,242,232,.14);
  background:rgba(17,18,20,.45);
  color:var(--ivory);
  z-index:1001;
}

/* MOBILE MENU */
.mobile{
  display:none;
  transform:translateY(-10px);
  opacity:0;
  transition:all .25s ease;
  will-change: transform, opacity;
}

.mobile[hidden]{
  display:none !important;
}

.mobile:not([hidden]){
  display:block;
  transform:translateY(0);
  opacity:1;
}
.mobile a{
  display:flex;
  padding:12px 10px;
  border-radius:14px;
  color:var(--muted);
}
.mobile a:hover{
  background:rgba(246,242,232,.08);
  color:var(--ivory);
}
.hr{
  height:1px;
  background:rgba(246,242,232,.10);
  margin:16px 0;
}

/* HERO */
.hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid rgba(246,242,232,.10);
}
.hero .media{
  position:absolute;
  inset:0;
}
.hero .media img{
  width:100%;
  height:100%;
  object-fit:cover;
  transform:scale(1.02);
  filter:contrast(1.05) saturate(1.06);
}
.hero .overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1000px 600px at 28% 20%, rgba(178,155,84,.22), transparent 60%),
    linear-gradient(180deg, rgba(11,11,12,.25), rgba(11,11,12,.82));
}
.hero .content{
  position:relative;
  padding:72px 0 54px;
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:28px;
  align-items:center;
}
.kicker{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(178,155,84,.22);
  background:linear-gradient(180deg, rgba(178,155,84,.12), rgba(16,57,93,.12));
  color:var(--muted);
  font-size:13px;
}
.h1{
  margin:16px 0 12px;
  font-size:clamp(36px, 4.4vw, 60px);
  line-height:1.02;
  letter-spacing:-0.02em;
}
.h1 em{
  font-style:normal;
  background:linear-gradient(90deg, var(--gold), var(--gold2), rgba(246,242,232,.96));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.lead{
  margin:0 0 18px;
  color:var(--muted);
  font-size:17px;
  line-height:1.6;
  max-width:60ch;
}
.hero-actions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}
.trust{
  margin-top:20px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted2);
  font-size:13px;
}
.trust .item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(246,242,232,.10);
  background:rgba(17,18,20,.35);
  font-size:13.5px;
}

.hero-card{
  border-radius:var(--rl);
  overflow:hidden;
  border:1px solid rgba(246,242,232,.12);
  background:rgba(17,18,20,.35);
  box-shadow:var(--shadow);
  min-height:420px;
  position:relative;
}
.hero-card img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
}
.hero-card .glass{
  position:absolute;
  inset:auto 14px 14px 14px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(246,242,232,.14);
  background:rgba(11,11,12,.55);
  backdrop-filter:blur(10px);
}
.hero-card .glass strong{display:block; font-size:14px}
.hero-card .glass span{display:block; margin-top:4px; color:var(--muted2); font-size:13px}

/* SECTIONS */
.section{padding:56px 0}
.section-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:18px;
  margin-bottom:18px;
}
.h2{
  margin:0;
  font-size:clamp(22px, 2.6vw, 36px);
  letter-spacing:-0.01em;
}
.sub{
  margin:6px 0 0;
  color:var(--muted);
  max-width:72ch;
}

.grid{display:grid; gap:14px}
.grid.c2{grid-template-columns:repeat(2, minmax(0,1fr))}
.grid.c3{grid-template-columns:repeat(3, minmax(0,1fr))}

.card{
  border-radius:var(--r);
  border:1px solid rgba(246,242,232,.12);
  background:linear-gradient(180deg, rgba(17,18,20,.55), rgba(17,18,20,.25));
  box-shadow:var(--shadow2);
  padding:18px;
  position:relative;
  overflow:hidden;
  transition:all .3s ease;
}
.card:hover{
  transform:translateY(-4px);
  border-color:rgba(178,155,84,.25);
}
.card::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 240px at 18% 10%, rgba(178,155,84,.14), transparent 60%),
    radial-gradient(520px 240px at 82% 55%, rgba(148,25,20,.12), transparent 60%);
  opacity:.85;
  pointer-events:none;
}
.card > *{position:relative; z-index:1}
.card h3{margin:0 0 6px; font-size:16px}
.card p{margin:0; color:var(--muted); font-size:14px}

.tags{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(246,242,232,.12);
  background:rgba(11,11,12,.35);
  color:var(--muted2);
}

.split{
  display:grid;
  gap:16px;
  grid-template-columns:1fr 1fr;
  align-items:stretch;
}
.panel{
  border-radius:var(--rl);
  border:1px solid rgba(246,242,232,.12);
  background:rgba(17,18,20,.35);
  overflow:hidden;
  box-shadow:var(--shadow);
}
.panel .img{
  height:320px;
  position:relative;
  background:#0b0b0c;
}
.panel .img img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.panel .body{padding:18px}
.panel ul{
  margin:10px 0 0;
  padding:0 0 0 18px;
  color:var(--muted);
}
.panel li{margin:6px 0}

/* SLIDER */
.slider{
  position:relative;
  border-radius:var(--rl);
  border:1px solid rgba(246,242,232,.12);
  overflow:hidden;
  box-shadow:var(--shadow);
  background:rgba(17,18,20,.35);
}
.slides{display:flex; transition:transform .7s var(--ease)}
.slide{
  min-width:100%;
  height:460px;
  position:relative;
}
.slide img{
  width:100%;
  height:100%;
  object-fit:cover;
  filter:contrast(1.05) saturate(1.05);
}
.slide .cap{
  position:absolute;
  left:16px;
  right:16px;
  bottom:16px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(246,242,232,.14);
  background:rgba(11,11,12,.55);
  backdrop-filter:blur(10px);
}
.slide .cap strong{display:block; font-size:14px}
.slide .cap span{display:block; margin-top:4px; color:var(--muted2); font-size:13px}
.slider .controls{
  position:absolute;
  inset:16px 16px auto 16px;
  display:flex;
  justify-content:space-between;
  pointer-events:none;
}
.iconbtn{
  pointer-events:auto;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(246,242,232,.14);
  background:rgba(11,11,12,.55);
  color:var(--ivory);
  backdrop-filter:blur(10px);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  box-shadow:var(--shadow2);
}
.dots{
  position:absolute;
  left:0;
  right:0;
  bottom:12px;
  display:flex;
  justify-content:center;
  gap:8px;
}
.dot2{
  width:8px;
  height:8px;
  border-radius:999px;
  background:rgba(246,242,232,.35);
  border:1px solid rgba(246,242,232,.18);
}
.dot2.on{background:rgba(178,155,84,.95)}

/* GALLERY */
.gallery{
  display:grid;
  grid-template-columns:1.4fr .6fr;
  gap:14px;
}
.gallery .big,
.gallery .small{
  border-radius:var(--rl);
  overflow:hidden;
  border:1px solid rgba(246,242,232,.12);
  background:rgba(17,18,20,.35);
  box-shadow:var(--shadow);
  position:relative;
}
.gallery .big{min-height:460px}
.gallery img{
  width:100%;
  height:100%;
  object-fit:cover;
}
.stack{display:grid; gap:14px}
.caption{
  position:absolute;
  left:14px;
  right:14px;
  bottom:14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(246,242,232,.14);
  background:rgba(11,11,12,.55);
  backdrop-filter:blur(10px);
}
.caption strong{display:block; font-size:14px}
.caption span{display:block; margin-top:4px; color:var(--muted2); font-size:13px}

/* FORM */
.form{
  display:grid;
  gap:10px;
  background:rgba(17,18,20,.35);
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(246,242,232,.12);
}
.field{display:grid; gap:6px}
label{font-size:13px; color:var(--muted2)}
input, textarea, select{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(246,242,232,.14);
  background:rgba(11,11,12,.35);
  color:var(--ivory);
  outline:none;
  transition:border .25s ease, background .25s ease;
}
input:focus, textarea:focus, select:focus{
  border-color:rgba(178,155,84,.40);
  background:rgba(11,11,12,.55);
}
textarea{
  min-height:120px;
  resize:vertical;
}
.help{
  font-size:12px;
  color:var(--muted2);
}
.notice{
  border-radius:var(--r);
  border:1px solid rgba(246,242,232,.12);
  background:rgba(17,18,20,.35);
  padding:14px;
  color:var(--muted);
  font-size:13px;
}

/* AI TRANSPARENCY NOTICE */
.ai-notice{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex-wrap:wrap;
  text-align:center;
  padding:10px 16px;
  font-size:13px;
  line-height:1.5;
  color:var(--muted2);
  background:rgba(178,155,84,.10);
  border-bottom:1px solid rgba(178,155,84,.22);
}
.ai-notice a{
  text-decoration:underline;
  color:var(--ivory);
  font-weight:600;
  white-space:nowrap;
}

/* FOOTER */
.footer{
  border-top:1px solid rgba(246,242,232,.10);
  padding:34px 0;
  background:rgba(11,11,12,.55);
}
.footer .cols{
  display:grid;
  gap:14px;
  grid-template-columns:1.1fr .7fr .7fr .8fr;
}
.footer h4{
  margin:0 0 10px;
  font-size:14px;
}
.footer p,
.footer a{
  margin:0;
  color:var(--muted);
  font-size:13px;
}
.footer a:hover{color:var(--ivory)}
.footer .bottom{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid rgba(246,242,232,.10);
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted2);
  font-size:12px;
}

/* REVEAL */
.reveal{
  opacity:0;
  transform:translateY(14px);
  transition:opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.in{
  opacity:1;
  transform:translateY(0);
}
.par{
  transform:translateY(0);
  transition:transform .2s linear;
}

/* LIGHTBOX */
.lightbox{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.78);
  backdrop-filter:blur(6px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:18px;
  z-index:2000;
}
.lightbox.on{display:flex}
.lightbox .box{
  width:min(1080px, 96vw);
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(246,242,232,.14);
  background:#0b0b0c;
  box-shadow:var(--shadow);
  position:relative;
}
.lightbox img{
  width:100%;
  height:auto;
  display:block;
}
.lightbox button{
  position:absolute;
  top:12px;
  right:12px;
  width:44px;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(246,242,232,.14);
  background:rgba(11,11,12,.55);
  color:var(--ivory);
  backdrop-filter:blur(10px);
}

/* COOKIE BANNER */
.cookie-banner{
  position:fixed;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  width:min(960px, 92%);
  background:rgba(11,11,12,.95);
  border:1px solid rgba(246,242,232,.15);
  border-radius:16px;
  padding:18px;
  z-index:3000;
  box-shadow:0 20px 60px rgba(0,0,0,.5);
  backdrop-filter:blur(10px);
}
.cookie-content{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.cookie-content p{
  margin:0;
  font-size:13px;
  color:var(--muted);
}
.cookie-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.cookie-banner.hidden{
  display:none;
}

/* MOBILE CTA */
.mobile-cta{
  position:fixed;
  bottom:0;
  left:0;
  width:100%;
  display:none;
  z-index:9999;
}
.mobile-cta a{
  flex:1;
  text-align:center;
  padding:14px;
  font-size:14px;
  font-weight:600;
}
.mobile-cta a:first-child{
  background:#2e7d32;
  color:#fff;
}
.mobile-cta a:last-child{
  background:#1565c0;
  color:#fff;
}

/* ACCESSIBILITÀ */
a[href^="tel"]{
  font-weight:600;
}
a:focus,
button:focus{
  outline:2px solid var(--gold);
  outline-offset:2px;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .hero .content{
    grid-template-columns:1fr;
    padding:54px 0 32px;
  }

  .hero-card{min-height:360px}
  .grid.c3,
  .grid.c2,
  .split,
  .gallery,
  .footer .cols{
    grid-template-columns:1fr;
  }

  .links,
  .cta{
    display:none;
  }

  .burger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
  }

  .mobile{
    position:fixed;
    top:82px;
    left:0;
    width:100%;
    height:calc(100vh - 82px);
    background:rgba(8,35,60,.98);
    backdrop-filter:blur(14px);
    padding:20px 20px 90px;
    overflow-y:auto;
    z-index:999;
  }

  .mobile a{
    font-size:18px;
    padding:14px 12px;
    border-bottom:1px solid rgba(255,255,255,.08);
  }

  .slide{height:380px}
}

@media (max-width: 768px){
  .topbar{
    display:none !important;
  }

  .mobile-cta{
    display:flex;
  }

  body{
    padding-bottom:60px;
  }

  .cookie-banner{
    bottom:74px;
    width:min(94%, 94%);
  }
}

/* PRINT */
@media print{
  .topbar,
  .header,
  .btn,
  .burger,
  .mobile,
  .slider .controls,
  .dots,
  .mobile-cta,
  .cookie-banner,
  .ai-notice{
    display:none !important;
  }

  body{
    background:#fff;
    color:#000;
  }

  .card,
  .panel,
  .slider,
  .gallery .big,
  .gallery .small{
    box-shadow:none;
  }
}
.mobile{
  will-change:transform, opacity;
}
.cookie-banner{
  animation:fadeUp .4s ease;
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translate(-50%, 20px);
  }
  to{
    opacity:1;
    transform:translate(-50%, 0);
  }
}

a, button{
  -webkit-tap-highlight-color: transparent;
}

.cookie-banner{
  animation:fadeUp .4s ease;
}

@keyframes fadeUp{
  from{
    opacity:0;
    transform:translate(-50%, 20px);
  }
  to{
    opacity:1;
    transform:translate(-50%, 0);
  }
}