/* =========================
   RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

/* =========================
   VARIABILI
========================= */
:root{
  --gold:#b89b5e;
  --text:#1f1f1f;
  --muted:#555;
  --line:#e8e2d7;
  --bg1:#ffffff;
  --bg2:#f9f7f3;
  --ink:#1f1f1f;

  --shadow-soft: 0 12px 45px rgba(0,0,0,0.05);
  --shadow-strong: 0 28px 85px rgba(0,0,0,0.12);
}

/* =========================
   FIX OVERFLOW IPHONE
========================= */
html, body{
  width:100%;
  overflow-x:hidden;
}

/* scroll morbido */
html{
  scroll-behavior:smooth;
}

/* =========================
   BASE
========================= */
body{
  font-family:'Montserrat', sans-serif;
  color:var(--text);
  line-height:1.65;
  background: linear-gradient(
    to bottom,
    var(--bg1) 0%,
    var(--bg2) 45%,
    var(--bg1) 100%
  );
}

/* selezione testo */
::selection{
  background: rgba(184,155,94,0.25);
}

img{
  max-width:100%;
  display:block;
}

a{
  color:inherit;
  text-decoration:none;
}

/* =========================
   CONTAINER
========================= */
.container{
  max-width:1200px;
  margin:0 auto;
  padding:0 20px;
}

/* =========================
   BOTTONI (LUXURY MEDICAL)
========================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  padding:12px 18px;
  border-radius:14px;

  font-weight:600;
  letter-spacing:0.2px;
  font-size:15px;

  transition: 0.25s ease;
  border:1px solid rgba(184,155,94,0.55);

  background: rgba(255,255,255,0.78);
  color: var(--ink);
  backdrop-filter: blur(6px);
}

.btn:hover{
  transform: translateY(-2px);
  border-color: rgba(184,155,94,0.95);
  box-shadow: 0 16px 40px rgba(0,0,0,0.10);
}

.btn:active{
  transform: translateY(0px) scale(0.99);
}

.btn-primary{
  background: linear-gradient(180deg, #1f1f1f 0%, #121212 100%);
  color:#fff;
  border:1px solid rgba(184,155,94,0.65);
}

.btn-primary:hover{
  box-shadow: 0 18px 55px rgba(0,0,0,0.20);
}

.btn-outline{
  background: transparent;
  color: var(--ink);
  border:1px solid rgba(31,31,31,0.22);
}

.btn-outline:hover{
  border-color: rgba(184,155,94,0.85);
}

/* =========================
   NAVBAR
========================= */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding-top:22px;
  padding-bottom:12px;
}

/* logo */
.logo{
  display:flex;
  flex-direction:column;
  gap:3px;
  transition:0.25s ease;
}

.logo:hover{
  transform: translateY(-1px);
}

.logo-mark{
  font-family:'Playfair Display', serif;
  font-size:42px;
  font-weight:700;
  color:var(--gold);
  letter-spacing:2px;
  line-height:1;

  /* animazione premium */
  position:relative;
}

.logo-mark::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-6px;
  height:2px;
  width:0;
  background: linear-gradient(
    90deg,
    rgba(184,155,94,0) 0%,
    rgba(184,155,94,0.95) 50%,
    rgba(184,155,94,0) 100%
  );
  transition: width 0.6s ease;
}

.logo:hover .logo-mark::after{
  width:100%;
}

.logo-sub{
  font-size:12px;
  color:#777;
  letter-spacing:0.6px;
  text-transform:uppercase;
}

/* link nav */
.nav-links{
  display:flex;
  align-items:center;
  gap:18px;
}

.nav-links a{
  font-weight:500;
  color:#333;
  opacity:0.92;
  transition:0.25s ease;
}

.nav-links a:hover{
  color:var(--gold);
}

/* =========================
   STICKY NAVBAR (compare scrollando)
========================= */
.navbar-sticky{
  position:fixed;
  top:14px;
  left:50%;
  transform: translateX(-50%) translateY(-30px);
  width:min(1160px, calc(100% - 28px));
  z-index:9990;

  opacity:0;
  pointer-events:none;

  padding:14px 18px;
  border-radius:18px;

  background: rgba(255,255,255,0.70);
  border:1px solid rgba(184,155,94,0.22);
  backdrop-filter: blur(12px);

  box-shadow: 0 18px 55px rgba(0,0,0,0.10);
  transition:0.35s ease;
}

.navbar-sticky.show{
  opacity:1;
  pointer-events:auto;
  transform: translateX(-50%) translateY(0);
}

.navbar-sticky .nav{
  padding:0;
}

/* =========================
   HERO
========================= */
.hero{
  background: linear-gradient(135deg, #ffffff 0%, #f6f3ec 100%);
  padding: 26px 0 80px;
  border-bottom:1px solid var(--line);
  position:relative;
  overflow:hidden;
}

/* texture di profondità */
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 10%, rgba(184,155,94,0.12), transparent 45%),
    radial-gradient(circle at 85% 30%, rgba(0,0,0,0.05), transparent 55%),
    radial-gradient(circle at 40% 90%, rgba(184,155,94,0.08), transparent 55%);
  pointer-events:none;
}

.hero-content{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:50px;
  padding-top:60px;
}

.hero-text h1{
  font-family:'Playfair Display', serif;
  font-size:50px;
  line-height:1.08;
  margin-bottom:18px;
  color:#1f1f1f;
}

.hero-text p{
  font-size:18px;
  color:#3c3c3c;
  max-width:640px;
}

.hero-cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:22px;
}

.hero-badges{
  display:grid;
  grid-template-columns:1fr;
  gap:10px;
  margin-top:24px;
  max-width:520px;
}

.hero-badges div{
  background: rgba(255,255,255,0.78);
  border:1px solid rgba(184,155,94,0.22);
  border-radius:14px;
  padding:12px 14px;
  font-size:14px;
  color:#2c2c2c;
  box-shadow: 0 12px 35px rgba(0,0,0,0.04);
}

.hero-img{
  width:320px;
  height:420px;
  object-fit:cover;
  border-radius:18px;
  border:3px solid rgba(184,155,94,0.85);
  box-shadow: 0 22px 75px rgba(0,0,0,0.14);
  transition:0.35s ease;
}

.hero-img:hover{
  transform: translateY(-6px);
}

/* =========================
   SEZIONI (ANIMATE + PREMIUM)
========================= */
section{
  margin:34px auto;
  max-width:1200px;
  border-radius:22px;
  box-shadow:var(--shadow-soft);
  background:#fff;

  padding:78px 60px;
  text-align:center;

  opacity:0;
  transform:translateY(22px);
  transition:all 0.9s ease;

  overflow:hidden;
}

section.show{
  opacity:1;
  transform:translateY(0);
}

section:nth-of-type(even){
  background:#fafafa;
}

section h2{
  font-family:'Playfair Display', serif;
  font-size:36px;
  color:var(--gold);
  margin-bottom:22px;

  position:relative;
  display:inline-block;
  padding-bottom:14px;
}

/* micro-linea premium */
section h2::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  transform:translateX(-50%);
  height:2px;
  border-radius:4px;

  background: linear-gradient(
    90deg,
    rgba(184,155,94,0) 0%,
    rgba(184,155,94,0.95) 50%,
    rgba(184,155,94,0) 100%
  );

  width:0;
  transition: width 0.9s ease;
  opacity:0.9;
}

section.show h2::after{
  width:78px;
}

section p{
  font-size:17px;
  color:#444;
  max-width:840px;
  margin:0 auto 14px;
}

.section-intro{
  font-size:17px;
  max-width:820px;
  margin:0 auto 18px;
  color:#444;
}

/* =========================
   SERVICES GRID (ULTRA CLICCABILE)
========================= */
.services .grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
  margin-top:34px;
}

/* CARD */
.services .grid a.card{
  position:relative;
  overflow:hidden;

  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  border:1.8px solid rgba(184,155,94,0.35);
  border-radius:22px;

  padding:26px 22px;
  min-height:170px;

  text-align:left;

  box-shadow:
    0 18px 55px rgba(0,0,0,0.09),
    inset 0 1px 0 rgba(255,255,255,0.9);

  transition:
    transform .28s ease,
    box-shadow .28s ease,
    border-color .28s ease;

  opacity:0;
  transform: translateY(16px);
}

/* piccola linea sotto titolo card */
.services .grid a.card h3::after{
  content:"";
  display:block;
  height:2px;
  width:28px;
  margin-top:10px;
  border-radius:4px;
  background: rgba(184,155,94,0.85);
  opacity:0.8;
}

/* icona cliccabile */
.services .grid a.card::after{
  content:"→";
  position:absolute;
  top:18px;
  right:18px;
  font-size:18px;
  color: rgba(184,155,94,0.9);
  opacity:0.65;
  transition: 0.25s ease;
}

/* shine luxury */
.services .grid a.card::before{
  content:"";
  position:absolute;
  inset:-60%;
  background: linear-gradient(
    120deg,
    rgba(184,155,94,0.00) 42%,
    rgba(184,155,94,0.18) 50%,
    rgba(184,155,94,0.00) 58%
  );
  transform: translateX(-40%);
  opacity:0;
  transition: opacity .25s ease, transform .65s ease;
}

.services .grid a.card h3{
  font-family:'Playfair Display', serif;
  font-size:20px;
  color: var(--gold);
  margin-bottom:12px;
  line-height:1.2;
}

.services .grid a.card p{
  font-size:15px;
  color:#2f2f2f;
  margin:0;
  opacity:0.90;
}

/* Hover */
.services .grid a.card:hover{
  transform: translateY(-8px);
  border-color: rgba(184,155,94,0.95);
  box-shadow: var(--shadow-strong);
}

.services .grid a.card:hover::before{
  opacity:1;
  transform: translateX(12%);
}

.services .grid a.card:hover::after{
  opacity:1;
  transform: translateX(3px);
}

/* Tap mobile */
.services .grid a.card:active{
  transform: translateY(-2px) scale(0.99);
}

/* Stagger: quando appare la sezione */
.services.show .grid a.card{
  opacity:1;
  transform: translateY(0);
}

.services.show .grid a.card:nth-child(1){ transition-delay:.05s; }
.services.show .grid a.card:nth-child(2){ transition-delay:.12s; }
.services.show .grid a.card:nth-child(3){ transition-delay:.19s; }
.services.show .grid a.card:nth-child(4){ transition-delay:.26s; }
.services.show .grid a.card:nth-child(5){ transition-delay:.33s; }
.services.show .grid a.card:nth-child(6){ transition-delay:.40s; }
.services.show .grid a.card:nth-child(7){ transition-delay:.47s; }

/* =========================
   APPROACH
========================= */
.two-cols{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:26px;
  text-align:left;
}

.two-cols h3{
  font-family:'Playfair Display', serif;
  color: var(--gold);
  font-size:22px;
  margin-bottom:10px;
}

.two-cols p{
  margin:0;
}

/* =========================
   STUDIO IMG
========================= */
.studio-img{
  width:100%;
  max-width:760px;
  margin:30px auto 0;
  border-radius:18px;
  border:1px solid var(--line);
  box-shadow: 0 16px 55px rgba(0,0,0,0.08);
}

/* =========================
   FOOTER
========================= */
.footer{
  margin-top:55px;
  background:#f9f9f9;
  border-top:1px solid var(--line);
  padding:70px 0;
  text-align:center;
}

.footer h2{
  font-family:'Playfair Display', serif;
  font-size:34px;
  color:var(--gold);
  margin-bottom:18px;
}

.contacts-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:14px;
  margin-top:26px;
}

.contact-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px;
  text-align:left;
  box-shadow: 0 12px 35px rgba(0,0,0,0.04);
}

.contact-card h3{
  font-family:'Montserrat', sans-serif;
  font-size:14px;
  font-weight:700;
  color: var(--gold);
  margin-bottom:6px;
  letter-spacing:0.2px;
}

.contact-card p{
  margin:0;
  font-size:15px;
  color:#333;
}

.footer-cta{
  margin-top:22px;
}

.footer-note{
  margin-top:18px;
  font-size:13px;
  color:#666;
}

/* =========================
   WHATSAPP FIXED (pulse + tooltip)
========================= */
.whatsapp-fixed{
  position:fixed;
  bottom:18px;
  right:18px;
  width:58px;
  height:58px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:#25d366;
  color:#fff;
  font-size:26px;
  text-decoration:none;
  box-shadow:0 16px 45px rgba(0,0,0,0.22);
  z-index:9999;
  transition:0.25s ease;
}

.whatsapp-fixed:hover{
  transform: translateY(-3px);
}

/* pulse */
.whatsapp-fixed::before{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  border-radius:50%;
  background: rgba(37,211,102,0.35);
  z-index:-1;
  animation: pulse 1.6s infinite;
}

@keyframes pulse{
  0%{ transform: scale(1); opacity:0.6; }
  70%{ transform: scale(1.55); opacity:0; }
  100%{ transform: scale(1.55); opacity:0; }
}

/* tooltip */
.whatsapp-fixed::after{
  content:"WhatsApp";
  position:absolute;
  right:70px;
  background: rgba(0,0,0,0.78);
  color:#fff;
  font-size:12px;
  padding:7px 10px;
  border-radius:10px;
  opacity:0;
  transform: translateY(6px);
  transition:0.25s ease;
  pointer-events:none;
  white-space:nowrap;
}

.whatsapp-fixed:hover::after{
  opacity:1;
  transform: translateY(0);
}

/* =========================
   FAQ (SUPER CLICCABILI)
========================= */
.faq{
  margin-top:42px;
  text-align:left;
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

.faq h3{
  font-family:'Playfair Display', serif;
  font-size:28px;
  color:var(--gold);
  margin-bottom:18px;
}

details{
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  border:1.7px solid rgba(184,155,94,0.30);
  border-radius:20px;
  padding:16px 18px;
  margin-bottom:12px;

  box-shadow: 0 12px 35px rgba(0,0,0,0.05);
  transition: 0.25s ease;
}

details:hover{
  transform: translateY(-2px);
  border-color: rgba(184,155,94,0.78);
  box-shadow: 0 18px 55px rgba(0,0,0,0.09);
}

summary{
  cursor:pointer;
  font-weight:650;
  color:#222;
  list-style:none;

  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

summary::-webkit-details-marker{
  display:none;
}

summary::after{
  content:"+";
  width:36px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;

  border-radius:12px;
  border:1px solid rgba(184,155,94,0.35);
  color: rgba(184,155,94,0.95);

  font-size:18px;
  font-weight:700;

  transition:0.25s ease;
  flex-shrink:0;
  background: rgba(255,255,255,0.75);
}

details[open] summary::after{
  content:"×";
  transform: rotate(90deg);
  border-color: rgba(184,155,94,0.75);
}

details p{
  margin-top:12px;
  margin-bottom:0;
  font-size:16px;
  color:#444;
  line-height:1.6;
}

/* =========================
   RESPONSIVE (IPHONE FIRST)
========================= */
@media (max-width: 980px){

  .nav-links{
    display:none;
  }

  .hero-content{
    flex-direction:column;
    text-align:center;
    padding-top:45px;
  }

  .hero-text h1{
    font-size:38px;
  }

  .hero-text p{
    font-size:16px;
  }

  .hero-img{
    width:260px;
    height:340px;
  }

  .hero-badges{
    margin-left:auto;
    margin-right:auto;
  }

  section{
    padding:58px 20px;
    margin:22px 14px;
  }

  section h2{
    font-size:30px;
  }

  .services .grid{
    grid-template-columns:1fr;
  }

  .services .grid a.card{
    min-height:auto;
  }

  .two-cols{
    grid-template-columns:1fr;
  }

  .contacts-grid{
    grid-template-columns:1fr;
  }

  /* sticky navbar su mobile */
  .navbar-sticky{
    top:10px;
    padding:12px 14px;
  }
}
