/* =========================================================
   Consorzio Sherman & Partners — stylesheet
   Palette e font ripresi da studiosherman.it (DM Sans, navy #11284B, accento #C3B6A3)
   ========================================================= */

@font-face{font-family:"DM Sans";src:url("../fonts/DMSans-ExtraLight.woff2") format("woff2");font-weight:200;font-style:normal;font-display:swap;}
@font-face{font-family:"DM Sans";src:url("../fonts/DMSans-Light.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap;}
@font-face{font-family:"DM Sans";src:url("../fonts/DMSans-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"DM Sans";src:url("../fonts/DMSans-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:"DM Sans";src:url("../fonts/DMSans-SemiBold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:"DM Sans";src:url("../fonts/DMSans-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;}

:root{
  --navy:#11284b;
  --navy-dark:#0b1c37;
  --accent:#c3b6a3;
  --accent-dark:#ab9c86;
  --text:#4b4a4a;
  --text-light:#7a7979;
  --white:#ffffff;
  --bg-alt:#f6f4f1;
  --border:#e4e0da;
  --container:1200px;
  --radius-pill:999px;
  --radius-card:14px;
}

*,*::before,*::after{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:"DM Sans",Helvetica,Arial,sans-serif;
  font-weight:400;
  font-size:17px;
  line-height:1.55;
  color:var(--text);
  background:var(--white);
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;}
a{color:inherit;text-decoration:none;font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;}
ul{margin:0;padding:0;list-style:none;}
h1,h2,h3,h4{margin:0;font-weight:300;color:var(--navy);}
p{margin:0 0 1em;font-family:"Segoe UI",Tahoma,Geneva,Verdana,sans-serif;}
p:last-child{margin-bottom:0;}

.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}

.eyebrow{
  display:inline-block;
  font-size:13px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--accent-dark);
  margin-bottom:14px;
}

.btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:14px 28px;
  border-radius:var(--radius-pill);
  background:var(--accent);
  color:var(--navy);
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  border:0.8px solid var(--accent);
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
  cursor:pointer;
}
.btn:hover{background:var(--accent-dark);border-color:var(--accent-dark);transform:translateY(-1px);}
.btn-outline{
  background:transparent;
  color:var(--white);
  border:0.8px solid rgba(255,255,255,.55);
}
.btn-outline:hover{background:rgba(255,255,255,.12);border-color:var(--white);}

/* ---------- Header ---------- */
.site-header{
  background:var(--navy);
  position:sticky;
  top:0;
  z-index:100;
}
.site-header .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:84px;
}
.site-header .logo img{height:30px;width:auto;}
.nav{
  display:flex;
  align-items:center;
  gap:40px;
}
.nav a{
  font-size:15px;
  font-weight:300;
  color:var(--white);
  padding:8px 0;
  position:relative;
}
.nav a::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:1px;
  background:var(--accent);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .2s ease;
}
.nav a:hover::after,.nav a.is-active::after{transform:scaleX(1);}
.nav a.is-active{color:var(--accent);}

.menu-toggle{
  display:none;
  flex-direction:column;
  gap:5px;
  background:none;
  border:0;
  cursor:pointer;
  padding:8px;
}
.menu-toggle span{width:24px;height:2px;background:var(--white);display:block;transition:transform .2s ease,opacity .2s ease;}

/* ---------- Hero ---------- */
.hero{
  background:linear-gradient(160deg,var(--navy) 0%,var(--navy-dark) 100%);
  color:var(--white);
  padding:100px 0 90px;
}
.hero .container{max-width:900px;text-align:center;}
.hero h1{
  color:var(--white);
  font-weight:200;
  font-size:56px;
  line-height:1.12;
  margin-bottom:24px;
}
.hero p{
  font-size:19px;
  line-height:1.6;
  color:rgba(255,255,255,.82);
  max-width:680px;
  margin-left:auto;
  margin-right:auto;
}
.hero .hero-actions{
  margin-top:40px;
  display:flex;
  gap:16px;
  justify-content:center;
  flex-wrap:wrap;
}

/* ---------- Sections ---------- */
.section{padding:88px 0;}
.section-alt{background:var(--bg-alt);}
.section-navy{background:var(--navy);color:rgba(255,255,255,.85);}
.section-navy h2,.section-navy h3{color:var(--white);}
.section-navy .eyebrow{color:var(--accent);}

.section-head{max-width:700px;margin:0 0 48px;}
.section-head.center{margin-left:auto;margin-right:auto;text-align:center;}
.section-head h2{font-size:34px;line-height:1.2;margin-bottom:16px;}
.section-head p{font-size:17px;color:var(--text-light);}
.section-navy .section-head p{color:rgba(255,255,255,.72);}

.lede{font-size:19px;line-height:1.65;max-width:820px;color:var(--text);}
.lede + .lede{margin-top:20px;}

/* ---------- Generic grids ---------- */
.grid{
  display:grid;
  gap:28px;
}
.grid-2{grid-template-columns:repeat(2,1fr);}
.grid-3{grid-template-columns:repeat(3,1fr);}
.grid-4{grid-template-columns:repeat(4,1fr);}

.value-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-card);
  padding:32px 28px;
}
.section-navy .value-card{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.14);
}
.value-card .num{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;height:38px;
  border-radius:50%;
  background:var(--accent);
  color:var(--navy);
  font-weight:600;
  font-size:15px;
  margin-bottom:18px;
}
.value-card h3{font-size:19px;font-weight:600;color:var(--navy);margin-bottom:10px;}
.section-navy .value-card h3{color:var(--white);}
.value-card p{font-size:15.5px;color:var(--text-light);}
.section-navy .value-card p{color:rgba(255,255,255,.72);}

/* Aree di intervento — tag/pill list */
.tag-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}
.tag-grid li{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:10px;
  padding:18px 20px;
  font-size:15.5px;
  color:var(--navy);
  font-weight:500;
}

/* Steps (Come funziona) */
.steps{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:24px;
  counter-reset:step;
}
.step{position:relative;padding-top:8px;}
.step::before{
  counter-increment:step;
  content:counter(step,decimal-leading-zero);
  display:block;
  font-size:32px;
  font-weight:200;
  color:var(--accent);
  margin-bottom:12px;
}
.step p{font-size:15.5px;color:var(--text-light);}

/* ---------- Consorziati grid ---------- */
.member-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}
.member-card{
  display:flex;
  flex-direction:column;
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-card);
  padding:30px 28px;
  height:100%;
}
.member-card h3{
  font-size:19px;
  font-weight:600;
  color:var(--navy);
  margin-bottom:6px;
}
.member-card .member-loc{
  font-size:13px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--accent-dark);
  margin-bottom:16px;
}
.member-card p{
  font-size:15px;
  color:var(--text-light);
  flex-grow:1;
  margin-bottom:20px;
}
.member-card .member-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  font-weight:600;
  color:var(--navy);
  padding-top:16px;
  border-top:1px solid var(--border);
}
.member-card .member-link::after{content:"→";transition:transform .2s ease;}
.member-card .member-link:hover::after{transform:translateX(3px);}
.member-card .member-link[aria-disabled="true"]{
  color:var(--text-light);
  cursor:default;
  pointer-events:none;
}

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--navy);
  color:var(--white);
  padding:64px 0;
  text-align:center;
}
.cta-band h2{color:var(--white);font-size:28px;margin-bottom:12px;}
.cta-band p{color:rgba(255,255,255,.75);margin-bottom:28px;}

/* ---------- Contact page ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:28px;
}
.contact-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:var(--radius-card);
  padding:34px 30px;
}
.contact-card .eyebrow{margin-bottom:18px;}
.contact-card .addr{margin-bottom:20px;font-size:16px;color:var(--text);}
.contact-card .addr:last-child{margin-bottom:0;}
.contact-card .addr strong{display:block;color:var(--navy);font-weight:600;margin-bottom:4px;}
.contact-direct{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.contact-direct a{
  display:flex;
  align-items:center;
  gap:12px;
  font-size:17px;
  font-weight:500;
  color:var(--navy);
}
.contact-direct .icon{
  width:38px;height:38px;
  border-radius:50%;
  background:var(--bg-alt);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
}
.contact-direct a:hover{color:var(--accent-dark);}

/* ---------- Sedi / mappa ---------- */
.location-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-bottom:44px;
}
.location-card{
  background:var(--white);
  border:1px solid var(--border);
  border-radius:12px;
  padding:20px 22px;
}
.location-card h4{
  font-size:16px;
  font-weight:600;
  color:var(--navy);
  margin-bottom:8px;
}
.location-card ul li{
  font-size:14px;
  color:var(--text-light);
  padding:2px 0;
}

.map-wrap{
  border-radius:var(--radius-card);
  border:1px solid var(--border);
  overflow:hidden;
}
#sedi-map{
  width:100%;
  height:460px;
  background:var(--bg-alt);
}
.sedi-pin{background:none;border:none;}
.leaflet-popup-content{
  font-family:"DM Sans",Helvetica,Arial,sans-serif;
  font-size:13px;
  color:var(--text);
  line-height:1.5;
}
.leaflet-popup-content strong{color:var(--navy);}

/* ---------- Footer ---------- */
.site-footer{
  background:var(--navy-dark);
  color:rgba(255,255,255,.65);
  padding:56px 0 28px;
  font-size:14px;
}
.footer-grid{
  display:grid;
  grid-template-columns:2fr 1fr 1fr;
  gap:40px;
  padding-bottom:36px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.footer-grid .logo img{height:26px;margin-bottom:18px;}
.footer-grid p{margin-bottom:4px;line-height:1.6;}
.footer-col h4{
  color:var(--white);
  font-size:13px;
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  margin-bottom:16px;
}
.footer-col ul li{margin-bottom:10px;}
.footer-col a:hover{color:var(--white);}
.footer-bottom{
  padding-top:24px;
  display:flex;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:12px;
  font-size:13px;
}
.footer-bottom a{margin-left:18px;}
.footer-bottom .legal-note{color:rgba(255,255,255,.4);width:100%;margin-top:8px;font-size:12px;}

.legal-band{
  background:#081527;
  color:rgba(255,255,255,.5);
  text-align:center;
  padding:16px 0;
  font-size:13px;
  letter-spacing:.03em;
}

/* ---------- Privacy banner ---------- */
.privacy-banner{
  position:fixed;
  left:0;right:0;bottom:0;
  z-index:200;
  background:var(--navy-dark);
  color:rgba(255,255,255,.85);
  padding:16px 24px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  flex-wrap:wrap;
  box-shadow:0 -8px 24px rgba(0,0,0,.25);
  transform:translateY(120%);
  transition:transform .35s ease;
}
.privacy-banner.is-visible{transform:translateY(0);}
.privacy-banner p{
  margin:0;
  font-size:13.5px;
  line-height:1.5;
  max-width:640px;
  text-align:center;
}
.privacy-banner a{color:var(--accent);font-weight:600;text-decoration:underline;}
.privacy-banner .btn{padding:10px 24px;font-size:12px;flex-shrink:0;}

@media (max-width:600px){
  .privacy-banner{padding:16px 20px;text-align:center;}
  .privacy-banner p{max-width:none;}
}

/* ---------- Legal pages ---------- */
.legal-page{padding:72px 0 96px;}
.legal-page h1{font-size:38px;margin-bottom:8px;}
.legal-page .updated{font-size:14px;color:var(--text-light);margin-bottom:40px;}
.legal-page h2{font-size:22px;color:var(--navy);margin:40px 0 14px;}
.legal-page h2:first-of-type{margin-top:0;}
.legal-page p,.legal-page li{font-size:16px;color:var(--text);margin-bottom:12px;}
.legal-page ul{margin-bottom:16px;}
.legal-page li{position:relative;padding-left:20px;}
.legal-page li::before{content:"–";position:absolute;left:0;color:var(--accent-dark);}
.legal-page a{color:var(--navy);font-weight:600;text-decoration:underline;}

/* ---------- Responsive ---------- */
@media (max-width:960px){
  .grid-3{grid-template-columns:repeat(2,1fr);}
  .grid-4{grid-template-columns:repeat(2,1fr);}
  .steps{grid-template-columns:repeat(2,1fr);}
  .member-grid{grid-template-columns:repeat(2,1fr);}
  .footer-grid{grid-template-columns:1fr 1fr;}
  .hero h1{font-size:44px;}
  .location-grid{grid-template-columns:repeat(2,1fr);}
}

@media (max-width:760px){
  .nav{
    position:absolute;
    top:84px;left:0;right:0;
    background:var(--navy);
    flex-direction:column;
    align-items:flex-start;
    gap:0;
    padding:8px 24px 20px;
    display:none;
    box-shadow:0 12px 24px rgba(0,0,0,.25);
  }
  .nav.is-open{display:flex;}
  .nav a{width:100%;padding:12px 0;}
  .menu-toggle{display:flex;}
  .menu-toggle.is-open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .menu-toggle.is-open span:nth-child(2){opacity:0;}
  .menu-toggle.is-open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

  .hero{padding:64px 0 56px;}
  .hero h1{font-size:34px;}
  .hero p{font-size:17px;}
  .section{padding:56px 0;}
  .section-head h2{font-size:27px;}
  .grid-2,.grid-3,.grid-4{grid-template-columns:1fr;}
  .steps{grid-template-columns:1fr;}
  .tag-grid{grid-template-columns:1fr;}
  .member-grid{grid-template-columns:1fr;}
  .contact-grid{grid-template-columns:1fr;}
  .location-grid{grid-template-columns:1fr;}
  #sedi-map{height:340px;}
  .footer-grid{grid-template-columns:1fr;gap:28px;}
  .footer-bottom a{margin-left:0;margin-right:18px;}
}
