
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600;700&display=swap');

:root{
  --navy:#20364d;
  --navy-2:#2f4a66;
  --gold:#b99965;
  --gold-dark:#9e7c48;
  --beige:#f4efe8;
  --beige-2:#fbf8f3;
  --taupe:#d8cab8;
  --ink:#263341;
  --muted:#617084;
  --white:#ffffff;
  --border:rgba(32,54,77,.12);
  --shadow:0 20px 45px rgba(32,54,77,.12);
  --radius:22px;
  --container:min(1180px,92vw);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Inter',system-ui,-apple-system,sans-serif;
  color:var(--ink);
  background:var(--beige-2);
  line-height:1.65;
}
img{max-width:100%;display:block}
a{text-decoration:none;color:inherit}
.container{width:var(--container);margin:0 auto}
.section{padding:84px 0}
.section-sm{padding:60px 0}
.alt{background:var(--beige)}
h1,h2,h3,h4,h5{
  font-family:'Playfair Display', Georgia, serif;
  font-weight:600;
  line-height:1.15;
  margin:0 0 .7rem;
  color:var(--navy);
}
p{margin:0 0 1rem;color:var(--muted)}
.topbar{
  background:var(--navy);
  color:#ebedf0;
  font-size:.93rem;
}
.topbar .container{
  display:flex; justify-content:space-between; gap:18px; padding:10px 0; flex-wrap:wrap;
}
.topbar a{color:#f6f1e8}
.site-header{
  position:sticky; top:0; z-index:999;
  background:rgba(251,248,243,.96);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(32,54,77,.08);
}
.navbar{
  display:flex; align-items:center; justify-content:space-between;
  gap:22px; padding:18px 0;
}
.brand{display:flex; align-items:center; gap:16px; min-width:0}
.brand-mark{
  width:72px; height:72px; border:1px solid var(--taupe); border-radius:18px;
  display:grid; place-items:center; flex:0 0 auto; background:#fffaf4;
  box-shadow:0 10px 25px rgba(185,153,101,.1);
}
.brand-mark span{
  font-family:'Playfair Display', Georgia, serif;
  font-size:2.3rem; color:var(--navy); letter-spacing:-0.08em;
  line-height:1;
}
.brand-text strong{
  display:block;
  font-family:'Playfair Display', Georgia, serif;
  font-size:1.55rem; color:var(--navy); font-weight:600; line-height:1.05;
}
.brand-text small{
  display:block; margin-top:6px; color:var(--gold-dark); text-transform:uppercase;
  letter-spacing:.16em; font-size:.74rem; font-weight:600;
}
.nav-toggle{
  display:none; border:1px solid var(--border); background:#fff; border-radius:12px;
  width:48px; height:48px; place-items:center; cursor:pointer;
}
.nav-toggle span, .nav-toggle span:before, .nav-toggle span:after{
  display:block; width:22px; height:2px; background:var(--navy); position:relative; content:"";
}
.nav-toggle span:before{position:absolute; top:-7px}
.nav-toggle span:after{position:absolute; top:7px}
.nav-menu{
  display:flex; align-items:center; gap:28px;
}
.nav-links{
  display:flex; list-style:none; padding:0; margin:0; gap:26px; align-items:center;
}
.nav-links a{
  font-size:.96rem; font-weight:600; color:var(--navy); letter-spacing:.04em;
  text-transform:uppercase; position:relative;
}
.nav-links a:after{
  content:""; position:absolute; left:0; bottom:-8px; width:100%; height:2px;
  transform:scaleX(0); transform-origin:left; background:var(--gold); transition:transform .2s ease;
}
.nav-links a:hover:after, .nav-links a.active:after{transform:scaleX(1)}
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  border-radius:14px; padding:14px 22px; font-weight:700; transition:.2s ease;
  border:1px solid transparent; cursor:pointer;
}
.btn:hover{transform:translateY(-1px)}
.btn-gold{background:var(--gold); color:white; text-align: center}
.btn-gold:hover{background:var(--gold-dark)}
.btn-outline{border-color:rgba(255,255,255,.45); color:white; background:transparent}
.btn-outline-dark{border-color:var(--navy); color:var(--navy); background:transparent}
.hero{
  position:relative; min-height:660px; display:flex; align-items:center;
  background:url('assets/hero-home.jpg') center/cover no-repeat;
}
.hero:before{
  content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(244,239,232,.14), rgba(244,239,232,.02));
}
.hero .container{position:relative; z-index:1}
.hero-card{
  max-width:680px; background:rgba(32,54,77,.95);
  border:2px solid rgba(185,153,101,.6); box-shadow:var(--shadow);
  padding:42px 42px 36px; border-radius:4px; color:white;
}
.hero-card .eyebrow, .page-hero-card .eyebrow{
  display:inline-block; font-size:.86rem; text-transform:uppercase; letter-spacing:.26em;
  color:#d8bd93; margin-bottom:18px; font-weight:700;
}
.hero-card h1{font-size:clamp(2.35rem,6vw,4.7rem); color:white; margin-bottom:16px}
.hero-card h1 .accent{color:#d8bd93}
.hero-line{
  width:72px; height:3px; border-radius:999px; background:var(--gold); margin:18px 0 24px;
}
.hero-card p{font-size:1.08rem; color:rgba(255,255,255,.88); max-width:560px}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap; margin-top:30px}
.section-title{
  text-align:center; max-width:760px; margin:0 auto 42px;
}
.section-title .eyebrow{
  display:inline-block; color:var(--gold-dark); text-transform:uppercase; letter-spacing:.28em;
  font-size:.88rem; font-weight:700; margin-bottom:10px;
}
.section-title h2{font-size:clamp(2rem,4vw,3.2rem)}
.grid{
  display:grid; gap:26px;
}
.grid-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.card{
  background:white; border:1px solid var(--border); border-radius:var(--radius);
  padding:30px; box-shadow:0 14px 30px rgba(32,54,77,.06);
}
.icon-card{text-align:center}
.icon{
  width:66px; height:66px; margin:0 auto 18px; border-radius:18px;
  display:grid; place-items:center; border:1px solid rgba(185,153,101,.45); color:var(--gold-dark); font-size:1.8rem;
}
.icon-card h3{font-size:1.32rem; margin-bottom:10px}
.feature-list{display:grid; gap:16px}
.feature-item{
  display:flex; gap:16px; align-items:flex-start; padding:18px 0; border-bottom:1px solid var(--border);
}
.feature-item:last-child{border-bottom:0}
.feature-item .bullet{
  width:40px; height:40px; border-radius:50%; background:rgba(185,153,101,.16); color:var(--gold-dark);
  display:grid; place-items:center; flex:0 0 auto; font-weight:700;
}
.split{
  display:grid; grid-template-columns:1.05fr .95fr; gap:38px; align-items:center;
}
.visual img, .visual svg, .banner-image{
  width:100%; border-radius:26px; box-shadow:var(--shadow); border:1px solid var(--border); background:white;
}
.kpis{
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:28px;
}
.kpi{
  background:#fff; border:1px solid var(--border); border-radius:18px; padding:22px; text-align:center;
}
.kpi strong{
  display:block; font-size:2rem; color:var(--navy); font-family:'Playfair Display',serif;
}
.cta-band{
  background:linear-gradient(135deg, var(--navy), var(--navy-2));
  color:white; border-radius:32px; padding:40px; display:flex; align-items:center; justify-content:space-between; gap:26px;
  box-shadow:var(--shadow);
}
.cta-band h3{color:white; font-size:2rem}
.cta-band p{color:rgba(255,255,255,.84)}
.page-hero{
  padding:74px 0 54px; background:linear-gradient(180deg,#fcfaf7,#f1e9df);
}
.page-hero-image{
  background-size:cover !important;
  background-repeat:no-repeat !important;
  min-height:420px;
  display:flex;
  align-items:center;
}
.page-hero-image .page-hero-card{
  max-width:760px;
  border-radius:6px;
  box-shadow:var(--shadow);
}
.single-col{grid-template-columns:1fr;}

.page-hero-inner{
  display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:34px;
}
.page-hero-card{
  background:rgba(32,54,77,.95); color:white; border:2px solid rgba(185,153,101,.55);
  border-radius:28px; padding:40px;
}
.page-hero-card h1{color:white; font-size:clamp(2rem,4.5vw,3.6rem)}
.page-hero-card p{color:rgba(255,255,255,.84)}
.tag-list{
  display:flex; gap:12px; flex-wrap:wrap; margin-top:18px;
}
.tag{
  padding:10px 14px; border-radius:999px; background:rgba(185,153,101,.15); color:var(--navy);
  font-size:.95rem; font-weight:600;
}
.team{
  display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px;
}
.team-card .role{
  display:block; color:var(--gold-dark); font-size:.96rem; font-weight:700; text-transform:uppercase; letter-spacing:.12em; margin-bottom:12px;
}
.team-card .meta{
  display:flex; gap:10px; flex-wrap:wrap; margin-top:14px;
}
.pill{
  background:var(--beige); color:var(--navy); border-radius:999px; padding:8px 12px; font-size:.9rem; font-weight:600;
}
.faq-list{display:grid; gap:16px}
.faq-item{
  background:white; border:1px solid var(--border); border-radius:18px; overflow:hidden;
}
.faq-q{
  width:100%; text-align:left; padding:20px 24px; background:white; border:0; cursor:pointer;
  display:flex; justify-content:space-between; gap:16px; font:600 1rem 'Inter',sans-serif; color:var(--navy);
}
.faq-a{
  padding:0 24px 22px; color:var(--muted); display:none;
}
.faq-item.open .faq-a{display:block}
.contact-grid{
  display:grid; grid-template-columns:.9fr 1.1fr; gap:28px;
}
.contact-card{
  background:white; border-radius:24px; border:1px solid var(--border); padding:28px; box-shadow:0 12px 28px rgba(32,54,77,.06);
}
.contact-list{list-style:none; padding:0; margin:0; display:grid; gap:18px}
.contact-list li strong{display:block; color:var(--navy); margin-bottom:4px}
form{display:grid; gap:14px}
label{font-weight:600; color:var(--navy); font-size:.96rem}
input, textarea{
  width:100%; padding:14px 16px; border:1px solid var(--border); border-radius:14px; font:inherit;
  background:#fffdf9; color:var(--ink);
}
textarea{min-height:150px; resize:vertical}
.notice{
  background:#fffaf2; border:1px solid rgba(185,153,101,.3); border-radius:16px; padding:16px 18px; color:var(--muted); font-size:.96rem;
}
.footer{
  background:var(--navy); color:#f4efe8; margin-top:42px;
}
.footer-top{
  display:grid; grid-template-columns:1.2fr .8fr .8fr 1fr; gap:24px; padding:56px 0 32px;
}
.footer h4{color:white; font-size:1.2rem}
.footer p,.footer li,.footer a{color:rgba(244,239,232,.8)}
.footer ul{list-style:none; padding:0; margin:0; display:grid; gap:10px}
.footer-bottom{
  border-top:1px solid rgba(255,255,255,.08); padding:18px 0 28px; color:rgba(244,239,232,.64); font-size:.94rem;
}
.small{font-size:.95rem}
.two-col-text{columns:2; column-gap:34px}
table{width:100%; border-collapse:collapse}
td,th{padding:14px; border-bottom:1px solid var(--border); text-align:left}
@media (max-width: 980px){
  .nav-toggle{display:grid}
  .nav-menu{
    position:absolute; top:100%; left:0; right:0; background:#fbf8f3; border-bottom:1px solid var(--border);
    padding:18px 4vw 26px; flex-direction:column; align-items:flex-start; display:none;
  }
  .nav-menu.open{display:flex}
  .nav-links{flex-direction:column; align-items:flex-start; gap:18px; width:100%}
  .page-hero-inner,.split,.contact-grid,.footer-top,.team,.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}
  .cta-band{flex-direction:column; align-items:flex-start}
  .kpis{grid-template-columns:1fr}
}
@media (max-width: 760px){
  .topbar .container{justify-content:center; text-align:center}
  .brand-mark{width:60px;height:60px}
  .brand-mark span{font-size:2rem}
  .brand-text strong{font-size:1.25rem}
  .hero{min-height:unset; padding:54px 0}
  .hero-card, .page-hero-card{padding:28px 24px}
  .hero-card h1{font-size:clamp(2rem,11vw,3.25rem)}
  .hero-actions{flex-direction:column}
  .hero-actions .btn, .nav-menu .btn{width:100%}
  .section{padding:66px 0}
  .cta-band{padding:30px 24px; border-radius:24px}
  .two-col-text{columns:1}
}

@media (max-width: 760px){
  .page-hero-image{min-height:360px; background-position:center center !important;}
}


/* Center single service card */
.section.alt .grid{
  justify-content:center;
}

/* Center fourth KPI box */
.kpis .kpi:nth-child(4){
  grid-column:2;
  justify-self:center;
  max-width:420px;
}


.section-kicker{
  color:var(--gold-dark);
  text-transform:uppercase;
  letter-spacing:.22em;
  font-size:.86rem;
  font-weight:700;
}
.left-title{
  text-align:left;
  max-width:920px;
  margin:0 0 42px;
}
.profile-intro{align-items:start}
.highlight-card{
  background:linear-gradient(180deg,#fffdf9,#f8f2ea);
}
.info-cards .info-card,
.practice-card{
  height:100%;
}
.detail-list{
  list-style:none;
  padding:0;
  margin:18px 0 0;
  display:grid;
  gap:14px;
}
.detail-list li{
  position:relative;
  padding-left:22px;
  color:var(--muted);
}
.detail-list li::before{
  content:"";
  position:absolute;
  left:0;
  top:.72em;
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--gold);
}
.detail-list.compact{gap:12px;margin-top:10px}
@media (max-width: 980px){
  .left-title{margin-bottom:30px}
}

.content-narrow{
  max-width: 920px;
}
.content-narrow p:last-child{
  margin-bottom:0;
}
.link-card{
  max-width: 760px;
}
.link-card .btn{
  margin-top: 10px;
}

/* Footer brand text contrast fix */
.footer .brand-text strong{color:var(--white);}
.footer .brand-text small{color:rgba(244,239,232,.8);}

/* Logo image replacement */
.brand-mark{
  overflow:hidden;
}
.brand-mark img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Home hero mobile refinement */
body{overflow-x:hidden;}
@media (max-width: 760px){
  .hero{
    min-height:auto;
    padding:46px 0;
    background-position:68% center;
  }
  .hero:before{
    background:linear-gradient(180deg, rgba(32,54,77,.18), rgba(244,239,232,.12));
  }
  .hero-card{
    width:100%;
    max-width:none;
    padding:26px 20px 24px;
  }
  .hero-card h1{
    font-size:clamp(1.85rem,9.5vw,2.75rem);
  }
  .hero-card p{
    font-size:1rem;
  }
}

/* Home mobile width fix: prevent home-only sections from forcing a wider viewport */
@media (max-width: 760px){
  html,
  body{
    width:100%;
    max-width:100%;
    overflow-x:hidden;
  }
  .hero{
    width:100%;
    padding:32px 0;
    background-size:cover;
    background-position:center center;
  }
  .hero-card{
    max-width:100%;
  }
  .section.alt .grid{
    grid-template-columns:1fr !important;
    width:100%;
    max-width:100%;
  }
  .kpis .kpi:nth-child(4){
    grid-column:auto;
    justify-self:stretch;
    max-width:none;
  }
}
.logo,
.site-logo {
  height: auto !important;
  width: auto !important;
  padding: 8px 12px !important;
}

.logo img,
.site-logo img {
  height: 110px !important;
  width: auto !important;
  display: block;
}

@media (max-width: 768px) {
  .logo img,
  .site-logo img {
    height: 85px !important;
  }
}
/* Indice aree di attività: evidenza link cliccabili */
.servizi-text .section-title p a{
  color:var(--navy);
  font-weight:600;
  text-decoration:underline;
  text-underline-offset:4px;
  text-decoration-thickness:1px;
  transition:color .2s ease, text-decoration-color .2s ease;
}

.servizi-text .section-title p a:hover,
.servizi-text .section-title p a:focus{
  color:var(--gold-dark);
  text-decoration-color:var(--gold-dark);
}
