/* ==========================================================
   SERVIZI & FORMAZIONE 3.5 — GLOBAL SHELL
   Topbar + Header + Mega Menu + Mobile/Tablet + Footer
   Palette coerente con le Hero istituzionali.
   ========================================================== */

:root{
  --sf35-primary:#017bb2;
  --sf35-primary-deep:#006a99;
  --sf35-petrol:#052b3f;
  --sf35-petrol-2:#07516f;
  --sf35-cyan:#72d2e4;
  --sf35-cyan-soft:#e8f7fa;
  --sf35-ink:#123348;
  --sf35-text:#526b7c;
  --sf35-muted:#7f919e;
  --sf35-line:#dce7ec;
  --sf35-soft:#f5f9fb;
  --sf35-yellow:#ffd75a;
  --sf35-yellow-soft:#fff6c9;
  --sf35-white:#fff;
  --sf35-shadow:0 18px 50px rgba(5,43,63,.10);
  --sf35-shadow-strong:0 28px 78px rgba(5,43,63,.18);
  --sf35-hero:
    radial-gradient(circle at 86% 12%,rgba(114,210,228,.28),transparent 27%),
    linear-gradient(115deg,#052b3f 0%,#07516f 57%,#017bb2 100%);
}

html.sf2-menu-open,
html.sf2-menu-open body{
  overflow:hidden;
}

body.sf2-site .sf2-wrap{
  width:min(1280px,calc(100% - 48px));
  margin-inline:auto;
}

/* ==========================================================
   TOPBAR — stessa famiglia cromatica delle Hero
   ========================================================== */
body.sf2-site .sf2-topbar{
  position:relative;
  z-index:1030;
  min-height:40px;
  overflow:hidden;
  color:#fff;
  background:var(--sf35-hero);
  border-bottom:1px solid rgba(255,255,255,.15);
  box-shadow:inset 0 -1px 0 rgba(0,35,50,.08);
}

body.sf2-site .sf2-topbar::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.18;
  background:
    linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px);
  background-size:64px 64px;
}

body.sf2-site .sf2-topbar-inner{
  position:relative;
  z-index:1;
  min-height:40px;
  height:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}

body.sf2-site .sf2-topcontacts{
  min-width:0;
  display:flex;
  align-items:center;
  gap:18px;
}

body.sf2-site .sf2-topcontacts a,
body.sf2-site .sf2-topaddress{
  display:inline-flex;
  align-items:center;
  color:rgba(255,255,255,.95);
  font-size:10px;
  font-weight:760;
  line-height:1.2;
  white-space:nowrap;
}

body.sf2-site .sf2-topcontacts a{
  transition:opacity .2s ease,transform .2s ease;
}

body.sf2-site .sf2-topdot{
  width:6px;
  height:6px;
  margin-right:8px;
  flex:0 0 6px;
  border-radius:50%;
  background:var(--sf35-cyan);
  box-shadow:0 0 0 4px rgba(114,210,228,.14);
}

body.sf2-site .sf2-top-social-wrap{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

body.sf2-site .sf2-follow-label{
  color:rgba(255,255,255,.68);
  font:850 8px/1 var(--sf-font-display,Inter,Arial,sans-serif);
  letter-spacing:.14em;
}

body.sf2-site .sf2-socials-topbar{
  display:flex;
  align-items:center;
  gap:6px;
}

body.sf2-site .sf2-socials-topbar .sf2-social{
  width:25px;
  height:25px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.22);
  border-radius:7px;
  color:#fff;
  background:rgba(255,255,255,.07);
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}

body.sf2-site .sf2-socials-topbar .sf2-social svg{
  width:13px;
  height:13px;
}

body.sf2-site .sf2-socials-topbar .sf2-social span{
  display:none;
}

/* ==========================================================
   HEADER
   ========================================================== */
body.sf2-site .sf2-header{
  position:relative;
  z-index:1020;
  background:rgba(255,255,255,.985);
  border-bottom:1px solid #e7eef2;
  box-shadow:0 1px 0 rgba(5,43,63,.02);
  backdrop-filter:blur(14px) saturate(1.08);
  transition:box-shadow .24s ease,background .24s ease,border-color .24s ease;
}

body.sf2-site .sf2-header.is-sticky{
  position:fixed;
  inset:0 0 auto;
  background:rgba(255,255,255,.97);
  border-bottom-color:#dce7ec;
  box-shadow:0 14px 42px rgba(5,43,63,.10);
  animation:sf35HeaderIn .22s ease both;
}

@keyframes sf35HeaderIn{
  from{transform:translateY(-8px);opacity:.92}
  to{transform:none;opacity:1}
}

body.admin-bar.sf2-site .sf2-header.is-sticky{top:32px}

body.sf2-site .sf2-header-inner{
  min-height:86px;
  height:86px;
  display:flex;
  align-items:center;
  gap:25px;
}

body.sf2-site .sf2-logo{
  flex:0 0 232px;
  min-width:0;
}

body.sf2-site .sf2-logo a,
body.sf2-site .sf2-logo .custom-logo-link{
  display:inline-flex;
  align-items:center;
}

body.sf2-site .sf2-logo img{
  display:block;
  width:auto;
  height:auto;
  max-width:222px;
  max-height:62px;
}

/* ==========================================================
   DESKTOP NAV
   ========================================================== */
body.sf2-site .sf2-nav{
  margin-left:auto;
  display:flex;
  align-items:center;
  gap:21px;
}

body.sf2-site .sf2-nav>a,
body.sf2-site .sf2-navdrop>button{
  position:relative;
  min-height:86px;
  padding:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  color:#17384c;
  background:transparent;
  font:800 12px/1 var(--sf-font-display,Inter,Arial,sans-serif);
  letter-spacing:-.01em;
  cursor:pointer;
  white-space:nowrap;
  transition:color .2s ease;
}

body.sf2-site .sf2-nav>a::after,
body.sf2-site .sf2-navdrop>button::after{
  content:"";
  position:absolute;
  left:50%;
  bottom:16px;
  width:0;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,var(--sf35-primary),var(--sf35-cyan));
  transform:translateX(-50%);
  opacity:0;
  transition:width .2s ease,opacity .2s ease;
}

body.sf2-site .sf2-nav>a:hover,
body.sf2-site .sf2-nav>a[aria-current="page"],
body.sf2-site .sf2-navdrop:hover>button,
body.sf2-site .sf2-navdrop.is-open>button,
body.sf2-site .sf2-navdrop:focus-within>button{
  color:var(--sf35-primary);
}

body.sf2-site .sf2-nav>a:hover::after,
body.sf2-site .sf2-nav>a[aria-current="page"]::after,
body.sf2-site .sf2-navdrop:hover>button::after,
body.sf2-site .sf2-navdrop.is-open>button::after,
body.sf2-site .sf2-navdrop:focus-within>button::after{
  width:28px;
  opacity:1;
}

body.sf2-site .sf2-navdrop{
  position:relative;
}

body.sf2-site .sf2-navdrop>button span{
  margin-left:5px;
  color:#7c939f;
  font-size:11px;
  transition:transform .2s ease,color .2s ease;
}

body.sf2-site .sf2-navdrop.is-open>button span,
body.sf2-site .sf2-navdrop:hover>button span{
  color:var(--sf35-primary);
  transform:rotate(180deg);
}

body.sf2-site .sf2-courses-btn{
  z-index:1;
  min-height:42px;
  padding:0 10px;
  color:#584400;
}

body.sf2-site .sf2-courses-btn::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:22px -3px;
  border:1px solid #efd36d;
  border-radius:10px;
  background:linear-gradient(180deg,#fff9df,#fff2b7);
  box-shadow:0 7px 18px rgba(115,87,0,.07);
}

body.sf2-site .sf2-courses-btn::after{display:none}

/* ==========================================================
   HEADER ACTIONS
   ========================================================== */
body.sf2-site .sf2-head-actions{
  margin-left:2px;
  display:flex;
  align-items:center;
  gap:8px;
}

body.sf2-site .sf2-whatsapp,
body.sf2-site .sf2-contact{
  min-height:42px;
  padding:0 13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:10px;
  font:800 10.5px/1 var(--sf-font-display,Inter,Arial,sans-serif);
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}

body.sf2-site .sf2-whatsapp{
  color:#176a52;
  border:1px solid #c4e1d8;
  background:#f5fbf8;
}

body.sf2-site .sf2-whatsapp svg{
  width:16px;
  height:16px;
}

body.sf2-site .sf2-contact{
  color:#fff;
  border:1px solid rgba(0,85,122,.08);
  background:linear-gradient(135deg,#0288c0,var(--sf35-primary) 55%,var(--sf35-primary-deep));
  box-shadow:0 11px 26px rgba(1,123,178,.18);
}

/* ==========================================================
   MEGA MENUS
   ========================================================== */
body.sf2-site .sf2-mega{
  position:absolute;
  top:74px;
  left:50%;
  z-index:30;
  visibility:hidden;
  opacity:0;
  transform:translate(-50%,10px);
  border:1px solid #dce7ec;
  border-radius:18px;
  background:#fff;
  box-shadow:0 30px 78px rgba(5,43,63,.16);
  transition:opacity .18s ease,transform .18s ease,visibility .18s ease;
}

body.sf2-site .sf2-navdrop:hover>.sf2-mega,
body.sf2-site .sf2-navdrop:focus-within>.sf2-mega,
body.sf2-site .sf2-navdrop.is-open>.sf2-mega{
  visibility:visible;
  opacity:1;
  transform:translate(-50%,0);
}

body.sf2-site .sf2-mega-services{
  width:720px;
  display:grid;
  grid-template-columns:258px 1fr;
  overflow:hidden;
}

body.sf2-site .sf2-mega-intro{
  position:relative;
  overflow:hidden;
  padding:27px;
  color:#fff;
  background:var(--sf35-hero);
}

body.sf2-site .sf2-mega-intro::after{
  content:"";
  position:absolute;
  right:-90px;
  bottom:-120px;
  width:250px;
  height:250px;
  border:1px solid rgba(255,255,255,.11);
  border-radius:50%;
  box-shadow:0 0 0 45px rgba(255,255,255,.02);
}

body.sf2-site .sf2-mega-intro>*{
  position:relative;
  z-index:1;
}

body.sf2-site .sf2-mega-intro small{
  color:#9eeaf0;
  font-size:8px;
  font-weight:900;
  letter-spacing:.14em;
}

body.sf2-site .sf2-mega-intro strong{
  display:block;
  margin-top:12px;
  color:#fff;
  font:800 20px/1.22 var(--sf-font-display,Inter,Arial,sans-serif);
  letter-spacing:-.025em;
}

body.sf2-site .sf2-mega-intro p{
  margin:11px 0 20px;
  color:#d1e5ed;
  font-size:11px;
  line-height:1.62;
}

body.sf2-site .sf2-mega-intro a{
  display:inline-flex;
  gap:8px;
  align-items:center;
  color:#fff;
  font-size:10px;
  font-weight:850;
}

body.sf2-site .sf2-mega-links{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:4px;
  padding:13px;
}

body.sf2-site .sf2-mega-links a{
  padding:14px;
  border:1px solid transparent;
  border-radius:11px;
  color:var(--sf35-ink);
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

body.sf2-site .sf2-mega-links b{
  display:block;
  font:800 11.5px/1.2 var(--sf-font-display,Inter,Arial,sans-serif);
}

body.sf2-site .sf2-mega-links span{
  display:block;
  margin-top:5px;
  color:#748895;
  font-size:9.5px;
  line-height:1.4;
}

body.sf2-site .sf2-mega-courses{
  width:505px;
  padding:12px;
}

body.sf2-site .sf2-course-link{
  display:grid;
  grid-template-columns:42px 1fr;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:12px;
  color:var(--sf35-ink);
  transition:background .18s ease,transform .18s ease;
}

body.sf2-site .sf2-course-link em{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border:1px solid #efd36b;
  border-radius:10px;
  color:#5a4500;
  background:var(--sf35-yellow-soft);
  font-style:normal;
  font-size:14px;
  font-weight:900;
}

body.sf2-site .sf2-course-link small{
  display:block;
  color:#987000;
  font-size:7.8px;
  font-weight:900;
  letter-spacing:.10em;
}

body.sf2-site .sf2-course-link b{
  display:block;
  margin-top:3px;
  color:#18384b;
  font:800 11.5px/1.25 var(--sf-font-display,Inter,Arial,sans-serif);
}

body.sf2-site .sf2-course-link span{
  display:block;
  margin-top:4px;
  color:#7c909c;
  font-size:9.5px;
}

body.sf2-site .sf2-mega-foot{
  margin-top:5px;
  padding:10px 12px 4px;
  border-top:1px solid #e8eff2;
}

body.sf2-site .sf2-mega-foot a{
  color:var(--sf35-primary);
  font-size:10.5px;
  font-weight:850;
}

/* ==========================================================
   HAMBURGER
   ========================================================== */
body.sf2-site .sf2-burger{
  position:relative;
  display:none;
  width:46px;
  height:46px;
  margin-left:auto;
  padding:0;
  border:1px solid #dce7ec;
  border-radius:12px;
  background:linear-gradient(180deg,#fff,#f7fafb);
  box-shadow:0 6px 18px rgba(5,43,63,.055);
  cursor:pointer;
  transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease;
}

body.sf2-site .sf2-burger span{
  position:absolute;
  left:50%;
  width:20px;
  height:2px;
  margin:0;
  border-radius:999px;
  background:var(--sf35-petrol);
  transform:translateX(-50%);
  transform-origin:center;
  transition:top .2s ease,transform .2s ease,opacity .15s ease,background .2s ease;
}

body.sf2-site .sf2-burger span:nth-child(1){top:15px}
body.sf2-site .sf2-burger span:nth-child(2){top:22px}
body.sf2-site .sf2-burger span:nth-child(3){top:29px}

body.sf2-site .sf2-burger[aria-expanded="true"] span{
  background:var(--sf35-primary);
}

body.sf2-site .sf2-burger[aria-expanded="true"] span:nth-child(1){top:22px;transform:translateX(-50%) rotate(45deg)}
body.sf2-site .sf2-burger[aria-expanded="true"] span:nth-child(2){opacity:0;transform:translateX(-50%) scaleX(.3)}
body.sf2-site .sf2-burger[aria-expanded="true"] span:nth-child(3){top:22px;transform:translateX(-50%) rotate(-45deg)}

/* ==========================================================
   MOBILE / TABLET DRAWER — SEMPRE BIANCO
   ========================================================== */
body.sf2-site .sf2-overlay,
body.sf2-site .sf2-mobile{
  display:none;
}

@media(max-width:1180px){
  body.sf2-site .sf2-nav,
  body.sf2-site .sf2-head-actions{
    display:none;
  }

  body.sf2-site .sf2-header-inner{
    min-height:78px;
    height:78px;
  }

  body.sf2-site .sf2-logo{
    flex:0 1 auto;
  }

  body.sf2-site .sf2-logo img{
    max-width:210px;
    max-height:58px;
  }

  body.sf2-site .sf2-burger{
    display:block;
  }

  body.sf2-site .sf2-overlay{
    position:fixed;
    z-index:1190;
    inset:0;
    display:block;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    background:rgba(5,43,63,.58);
    backdrop-filter:blur(3px);
    transition:opacity .24s ease,visibility .24s ease;
  }

  body.sf2-site .sf2-overlay.is-open{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
  }

  body.sf2-site .sf2-mobile{
    position:fixed;
    z-index:1200;
    top:0;
    right:0;
    bottom:0;
    width:min(430px,68vw);
    height:100dvh;
    display:flex;
    flex-direction:column;
    visibility:hidden;
    overflow:hidden;
    color:var(--sf35-ink);
    background:#fff;
    border-left:1px solid #dce7ec;
    box-shadow:-24px 0 70px rgba(5,43,63,.22);
    transform:translateX(104%);
    pointer-events:none;
    transition:transform .26s cubic-bezier(.2,.75,.2,1),visibility .26s ease;
  }

  body.sf2-site .sf2-mobile.is-open{
    visibility:visible;
    transform:none;
    pointer-events:auto;
  }

  body.sf2-site .sf2-mobile-head{
    position:relative;
    min-height:78px;
    padding:14px 20px;
    flex:0 0 auto;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    color:var(--sf35-ink);
    background:#fff;
    border-bottom:1px solid #e3ecef;
  }

  body.sf2-site .sf2-mobile-head::after{
    content:"";
    position:absolute;
    left:20px;
    bottom:-1px;
    width:88px;
    height:2px;
    background:linear-gradient(90deg,var(--sf35-primary),var(--sf35-cyan));
  }

  body.sf2-site .sf2-mobile-head-copy small{
    display:block;
    color:var(--sf35-primary);
    font:900 7px/1 var(--sf-font-display,Inter,Arial,sans-serif);
    letter-spacing:.15em;
  }

  body.sf2-site .sf2-mobile-head-copy strong{
    display:block;
    margin-top:6px;
    color:var(--sf35-petrol);
    font:800 19px/1 var(--sf-font-display,Inter,Arial,sans-serif);
    letter-spacing:-.03em;
  }

  body.sf2-site .sf2-mobile-close{
    position:relative;
    width:42px;
    height:42px;
    flex:0 0 42px;
    padding:0;
    border:1px solid #dce7ec;
    border-radius:11px;
    color:var(--sf35-primary);
    background:#f7fafb;
    cursor:pointer;
    transition:background .2s ease,border-color .2s ease,transform .2s ease;
  }

  body.sf2-site .sf2-mobile-close span{
    position:absolute;
    left:50%;
    top:50%;
    width:18px;
    height:2px;
    border-radius:999px;
    background:var(--sf35-primary);
  }

  body.sf2-site .sf2-mobile-close span:first-child{transform:translate(-50%,-50%) rotate(45deg)}
  body.sf2-site .sf2-mobile-close span:last-child{transform:translate(-50%,-50%) rotate(-45deg)}

  body.sf2-site .sf2-mobile-links{
    min-height:0;
    padding:10px 20px 6px;
    display:block;
    overflow-y:auto;
    overscroll-behavior:contain;
    scrollbar-width:thin;
    scrollbar-color:#c8dce4 transparent;
    background:#fff;
  }

  body.sf2-site .sf2-mobile-links>a.sf2-mobile-nav-link{
    position:relative;
    min-height:48px;
    padding:0 30px 0 2px;
    display:flex;
    align-items:center;
    border-bottom:1px solid #edf2f4;
    color:#28495d;
    background:#fff;
    font:780 13px/1.2 var(--sf-font-display,Inter,Arial,sans-serif);
    transition:color .18s ease,background .18s ease,padding .18s ease;
  }

  body.sf2-site .sf2-mobile-links>a.sf2-mobile-nav-link::after{
    content:"→";
    position:absolute;
    right:2px;
    color:#a5b7c0;
    font-size:13px;
    font-weight:500;
    transition:color .18s ease,transform .18s ease;
  }

  body.sf2-site .sf2-mobile-links>a.sf2-mobile-nav-link[aria-current="page"]{
    margin-inline:-8px;
    padding-inline:10px 38px;
    border-radius:9px;
    color:var(--sf35-primary);
    background:#eef8fb;
    border-bottom-color:transparent;
  }

  body.sf2-site .sf2-mobile-links>a.sf2-mobile-nav-link[aria-current="page"]::after{
    right:10px;
    color:var(--sf35-primary);
  }

  body.sf2-site .sf2-mobile-group{
    margin:12px 0 9px;
    padding:15px 14px 10px;
    display:grid;
    gap:0;
    border:1px solid #eee2a8;
    border-radius:12px;
    color:var(--sf35-ink);
    background:linear-gradient(180deg,#fffdf2,#fffaf0);
  }

  body.sf2-site .sf2-mobile-group>strong{
    margin:0 0 7px;
    padding:0 0 8px;
    display:flex;
    align-items:center;
    gap:8px;
    border-bottom:1px solid rgba(188,153,42,.18);
    color:#8c6800;
    font:900 7.8px/1.2 var(--sf-font-display,Inter,Arial,sans-serif);
    letter-spacing:.12em;
    text-transform:uppercase;
  }

  body.sf2-site .sf2-mobile-group>strong>span{
    width:22px;
    height:2px;
    background:linear-gradient(90deg,#d5a900,var(--sf35-yellow));
  }

  body.sf2-site .sf2-mobile-group>a{
    min-height:46px;
    padding:7px 2px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:3px;
    border-bottom:1px solid rgba(188,153,42,.14);
    color:#445f6f;
    background:transparent;
  }

  body.sf2-site .sf2-mobile-group>a:last-child{border-bottom:0}

  body.sf2-site .sf2-mobile-group>a span{
    color:#29495b;
    font:800 11.5px/1.2 var(--sf-font-display,Inter,Arial,sans-serif);
  }

  body.sf2-site .sf2-mobile-group>a small{
    color:#83939b;
    font-size:9.5px;
    line-height:1.25;
  }

  body.sf2-site .sf2-mobile-bottom{
    flex:0 0 auto;
    padding:13px 20px max(18px,env(safe-area-inset-bottom));
    background:#fff;
    border-top:1px solid #e7eef2;
  }

  body.sf2-site .sf2-mobile-socials{
    margin-bottom:11px;
  }

  body.sf2-site .sf2-socials-mobile{
    display:flex;
    flex-wrap:wrap;
    gap:7px;
  }

  body.sf2-site .sf2-socials-mobile .sf2-social{
    width:36px;
    height:36px;
    padding:0;
    display:grid;
    place-items:center;
    border:1px solid #dce7ec;
    border-radius:10px;
    color:var(--sf35-primary);
    background:#f7fafb;
  }

  body.sf2-site .sf2-socials-mobile .sf2-social svg{
    width:16px;
    height:16px;
  }

  body.sf2-site .sf2-socials-mobile .sf2-social span{display:none}

  body.sf2-site .sf2-mobile-wa{
    min-height:49px;
    padding:0 16px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    border:1px solid #c2e0d6;
    border-radius:10px;
    color:#176a52;
    background:#f3faf7;
    box-shadow:none;
    font:800 10.5px/1 var(--sf-font-display,Inter,Arial,sans-serif);
  }

  body.sf2-site .sf2-mobile-wa svg{
    width:17px;
    height:17px;
  }

  body.sf2-site .sf2-mobile a:active,
  body.sf2-site .sf2-mobile button:active{
    background:#eef8fb;
  }
}

/* ==========================================================
   TABLET
   ========================================================== */
@media(max-width:1180px) and (min-width:701px){
  body.sf2-site .sf2-wrap{width:min(1280px,calc(100% - 40px))}

  body.sf2-site .sf2-topaddress{
    max-width:260px;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  body.sf2-site .sf2-topcontacts{gap:13px}
}

/* ==========================================================
   SMARTPHONE
   ========================================================== */
@media(max-width:700px){
  body.sf2-site .sf2-wrap{width:calc(100% - 28px)}

  body.sf2-site .sf2-topbar,
  body.sf2-site .sf2-topbar-inner{
    min-height:36px;
  }

  body.sf2-site .sf2-topbar-inner{
    gap:8px;
  }

  body.sf2-site .sf2-topcontacts{
    flex:1 1 auto;
    min-width:0;
  }

  body.sf2-site .sf2-top-email,
  body.sf2-site .sf2-topaddress{
    display:none;
  }

  body.sf2-site .sf2-top-phone{
    font-size:8.8px;
  }

  body.sf2-site .sf2-follow-label{display:none}

  body.sf2-site .sf2-top-social-wrap{gap:5px}
  body.sf2-site .sf2-socials-topbar{gap:4px}

  body.sf2-site .sf2-socials-topbar .sf2-social{
    width:23px;
    height:23px;
    border-radius:6px;
  }

  body.sf2-site .sf2-header-inner{
    min-height:70px;
    height:70px;
  }

  body.sf2-site .sf2-logo img{
    max-width:180px;
    max-height:50px;
  }

  body.sf2-site .sf2-burger{
    width:44px;
    height:44px;
    border-radius:11px;
  }

  body.sf2-site .sf2-burger span:nth-child(1){top:14px}
  body.sf2-site .sf2-burger span:nth-child(2){top:21px}
  body.sf2-site .sf2-burger span:nth-child(3){top:28px}
  body.sf2-site .sf2-burger[aria-expanded="true"] span:nth-child(1),
  body.sf2-site .sf2-burger[aria-expanded="true"] span:nth-child(3){top:21px}

  body.sf2-site .sf2-mobile{
    width:min(390px,93vw);
  }

  body.sf2-site .sf2-mobile-head{
    min-height:70px;
    padding:12px 16px;
  }

  body.sf2-site .sf2-mobile-head::after{left:16px}
  body.sf2-site .sf2-mobile-links{padding:8px 16px 5px}
  body.sf2-site .sf2-mobile-bottom{padding-inline:16px}

  body.sf2-site .sf2-mobile-links>a.sf2-mobile-nav-link{
    min-height:47px;
    font-size:12.5px;
  }

  body.sf2-site .sf2-mobile-group{
    margin-top:10px;
    padding:13px 12px 9px;
  }
}

@media(max-width:782px){
  body.admin-bar.sf2-site .sf2-header.is-sticky{top:46px}
  body.admin-bar.sf2-site .sf2-mobile{
    top:46px;
    height:calc(100dvh - 46px);
  }
}

@media(max-width:600px){
  body.admin-bar.sf2-site .sf2-header.is-sticky{top:0}
}

@media(max-width:390px){
  body.sf2-site .sf2-logo img{max-width:165px}
  body.sf2-site .sf2-mobile{width:94vw}
}

/* ==========================================================
   FOOTER — stessa palette delle Hero
   ========================================================== */
body.sf2-site .sf2-footer{
  position:relative;
  overflow:hidden;
  color:#d7e8ef;
  background:var(--sf35-hero);
  border-top:1px solid rgba(255,255,255,.14);
}

body.sf2-site .sf2-footer::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.20;
  background:
    linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px),
    linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px);
  background-size:72px 72px;
}

body.sf2-site .sf2-footer::after{
  content:"";
  position:absolute;
  right:-180px;
  top:-230px;
  width:620px;
  height:620px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:50%;
  box-shadow:0 0 0 90px rgba(255,255,255,.015),0 0 0 180px rgba(255,255,255,.008);
  pointer-events:none;
}

body.sf2-site .sf2-footer>.sf2-wrap{
  position:relative;
  z-index:1;
}

body.sf2-site .sf2-footer-top{
  padding:70px 0 52px;
  display:grid;
  grid-template-columns:1.35fr .82fr .92fr 1.05fr;
  gap:52px;
}

body.sf2-site .sf2-footer-logo a{
  display:inline-flex;
}

body.sf2-site .sf2-footer-logo img{
  display:block;
  width:auto;
  height:auto;
  max-width:245px;
  max-height:72px;
  filter:brightness(0) invert(1);
  opacity:.98;
}

body.sf2-site .sf2-footer-brand p{
  max-width:390px;
  margin:20px 0 0;
  color:#d7e8ef;
  font-size:12px;
  line-height:1.75;
}

body.sf2-site .sf2-socials-footer{
  margin-top:19px;
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

body.sf2-site .sf2-socials-footer .sf2-social{
  width:36px;
  height:36px;
  padding:0;
  display:grid;
  place-items:center;
  border:1px solid rgba(255,255,255,.18);
  border-radius:10px;
  color:#fff;
  background:rgba(255,255,255,.06);
  transition:background .2s ease,border-color .2s ease,transform .2s ease;
}

body.sf2-site .sf2-socials-footer .sf2-social svg{
  width:16px;
  height:16px;
}

body.sf2-site .sf2-socials-footer .sf2-social span{display:none}

body.sf2-site .sf2-footer-col h3{
  position:relative;
  margin:0 0 20px;
  padding-bottom:12px;
  color:#fff;
  font:850 10px/1 var(--sf-font-display,Inter,Arial,sans-serif);
  letter-spacing:.09em;
  text-transform:uppercase;
}

body.sf2-site .sf2-footer-col h3::after{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:34px;
  height:2px;
  background:linear-gradient(90deg,var(--sf35-cyan),rgba(114,210,228,.15));
}

body.sf2-site .sf2-footer-col>a{
  display:block;
  width:max-content;
  max-width:100%;
  margin:9px 0;
  color:#c8dce5;
  font-size:10.6px;
  line-height:1.45;
  transition:color .18s ease,transform .18s ease;
}

body.sf2-site .sf2-footer-contact p{
  margin:12px 0 0;
  color:#c8dce5;
  font-size:10.6px;
  line-height:1.6;
}

body.sf2-site .sf2-footer-cta{
  position:relative;
  padding:27px 0;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:30px;
  border-top:1px solid rgba(255,255,255,.13);
  border-bottom:1px solid rgba(255,255,255,.13);
}

body.sf2-site .sf2-footer-cta::before{
  content:"";
  position:absolute;
  left:0;
  top:-1px;
  width:92px;
  height:2px;
  background:linear-gradient(90deg,#fff,var(--sf35-cyan),transparent);
}

body.sf2-site .sf2-footer-cta small{
  display:block;
  color:#a5edf2;
  font:900 8px/1 var(--sf-font-display,Inter,Arial,sans-serif);
  letter-spacing:.14em;
}

body.sf2-site .sf2-footer-cta strong{
  display:block;
  max-width:760px;
  margin-top:8px;
  color:#fff;
  font:800 clamp(22px,2vw,29px)/1.15 var(--sf-font-display,Inter,Arial,sans-serif);
  letter-spacing:-.035em;
}

body.sf2-site .sf2-footer-cta>a{
  min-height:50px;
  padding:0 19px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  border:1px solid rgba(255,255,255,.86);
  border-radius:10px;
  color:var(--sf35-petrol-2);
  background:#fff;
  box-shadow:0 14px 30px rgba(0,32,48,.17);
  font:850 10.7px/1 var(--sf-font-display,Inter,Arial,sans-serif);
  white-space:nowrap;
  transition:transform .2s ease,box-shadow .2s ease;
}

body.sf2-site .sf2-footer-cta>a span{
  color:var(--sf35-primary);
  transition:transform .2s ease;
}

body.sf2-site .sf2-footer-bottom{
  min-height:68px;
  padding:18px 0 22px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto auto;
  align-items:center;
  gap:24px;
  color:#a8c0ca;
  font-size:8.8px;
  line-height:1.5;
}

body.sf2-site .sf2-footer-bottom>div{
  display:flex;
  align-items:center;
  gap:12px;
}

body.sf2-site .sf2-footer-legal{flex-wrap:wrap}
body.sf2-site .sf2-footer-credit{color:#a8c0ca}
body.sf2-site .sf2-footer-credit strong{color:#d0e1e8}

body.sf2-site .sf2-footer-policies a,
body.sf2-site .sf2-footer-bottom a{
  color:#c2d5dd;
  transition:color .18s ease;
}

/* ==========================================================
   FOOTER TABLET
   ========================================================== */
@media(max-width:1100px){
  body.sf2-site .sf2-footer-top{
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:38px;
    padding:62px 0 46px;
  }

  body.sf2-site .sf2-footer-brand{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:minmax(240px,.75fr) minmax(280px,1.25fr);
    gap:36px;
    align-items:start;
    padding-bottom:28px;
    border-bottom:1px solid rgba(255,255,255,.11);
  }

  body.sf2-site .sf2-footer-brand p{margin-top:2px}
  body.sf2-site .sf2-socials-footer{grid-column:1}

  body.sf2-site .sf2-footer-cta{
    grid-template-columns:1fr;
    gap:20px;
  }

  body.sf2-site .sf2-footer-cta>a{width:min(330px,100%)}

  body.sf2-site .sf2-footer-bottom{
    grid-template-columns:1fr auto;
  }

  body.sf2-site .sf2-footer-credit{
    grid-column:1/-1;
    grid-row:2;
  }
}

/* ==========================================================
   FOOTER MOBILE
   ========================================================== */
@media(max-width:700px){
  body.sf2-site .sf2-footer-top{
    grid-template-columns:1fr;
    gap:0;
    padding:50px 0 34px;
  }

  body.sf2-site .sf2-footer-brand{
    grid-column:auto;
    display:block;
    padding-bottom:27px;
    border-bottom:1px solid rgba(255,255,255,.11);
  }

  body.sf2-site .sf2-footer-logo img{max-width:215px}

  body.sf2-site .sf2-footer-brand p{
    max-width:none;
    margin-top:18px;
    font-size:11.5px;
  }

  body.sf2-site .sf2-footer-col{
    padding:23px 0;
    border-bottom:1px solid rgba(255,255,255,.10);
  }

  body.sf2-site .sf2-footer-col:last-child{border-bottom:0}
  body.sf2-site .sf2-footer-col h3{margin-bottom:15px}

  body.sf2-site .sf2-footer-col>a{
    width:100%;
    margin:0;
    padding:7px 0;
    font-size:10.8px;
  }

  body.sf2-site .sf2-footer-cta{
    grid-template-columns:1fr;
    gap:19px;
    padding:26px 0;
  }

  body.sf2-site .sf2-footer-cta strong{
    font-size:23px;
    line-height:1.14;
  }

  body.sf2-site .sf2-footer-cta>a{
    width:100%;
    min-height:51px;
    white-space:normal;
    text-align:center;
  }

  body.sf2-site .sf2-footer-bottom{
    min-height:0;
    grid-template-columns:1fr;
    gap:11px;
    padding:20px 0 max(23px,env(safe-area-inset-bottom));
  }

  body.sf2-site .sf2-footer-bottom>div{
    flex-wrap:wrap;
    gap:7px 11px;
  }

  body.sf2-site .sf2-footer-credit{
    grid-column:auto;
    grid-row:auto;
  }

  body.sf2-site .sf2-footer-sep{display:none}
  body.sf2-site .sf2-footer-legal{display:grid;gap:3px}
}

/* ==========================================================
   INTERACTIONS / ACCESSIBILITY
   ========================================================== */
@media(hover:hover) and (pointer:fine){
  body.sf2-site .sf2-topcontacts a:hover{opacity:.76;transform:translateY(-1px)}
  body.sf2-site .sf2-socials-topbar .sf2-social:hover{background:#fff;border-color:#fff;color:var(--sf35-primary);transform:translateY(-1px)}
  body.sf2-site .sf2-whatsapp:hover{transform:translateY(-2px);border-color:#add7c9;box-shadow:0 10px 24px rgba(23,106,82,.08)}
  body.sf2-site .sf2-contact:hover{transform:translateY(-2px);box-shadow:0 16px 32px rgba(1,123,178,.23)}
  body.sf2-site .sf2-mega-links a:hover{background:#f4f9fb;border-color:#e1edf1;transform:translateY(-1px)}
  body.sf2-site .sf2-course-link:hover{background:#f6fafb;transform:translateX(2px)}
  body.sf2-site .sf2-burger:hover{border-color:#bfd9e3;box-shadow:0 10px 24px rgba(5,43,63,.08)}
  body.sf2-site .sf2-mobile-close:hover{background:#eef8fb;border-color:#badce8;transform:rotate(3deg)}
  body.sf2-site .sf2-mobile-links>a.sf2-mobile-nav-link:hover{padding-left:9px;color:var(--sf35-primary);background:#f8fbfc}
  body.sf2-site .sf2-mobile-links>a.sf2-mobile-nav-link:hover::after{color:var(--sf35-primary);transform:translateX(3px)}
  body.sf2-site .sf2-socials-mobile .sf2-social:hover{background:#eef8fb;border-color:#badce8;transform:translateY(-1px)}
  body.sf2-site .sf2-socials-footer .sf2-social:hover{background:#fff;border-color:#fff;color:var(--sf35-primary);transform:translateY(-2px)}
  body.sf2-site .sf2-footer-col>a:hover{color:#fff;transform:translateX(3px)}
  body.sf2-site .sf2-footer-cta>a:hover{transform:translateY(-3px);box-shadow:0 19px 38px rgba(0,32,48,.22)}
  body.sf2-site .sf2-footer-cta>a:hover span{transform:translateX(3px)}
  body.sf2-site .sf2-footer-bottom a:hover{color:#fff}
}

body.sf2-site .sf2-burger:focus-visible,
body.sf2-site .sf2-mobile-close:focus-visible,
body.sf2-site .sf2-mobile a:focus-visible,
body.sf2-site .sf2-nav a:focus-visible,
body.sf2-site .sf2-navdrop>button:focus-visible,
body.sf2-site .sf2-footer a:focus-visible{
  outline:3px solid rgba(114,210,228,.62);
  outline-offset:3px;
}

@media(prefers-reduced-motion:reduce){
  body.sf2-site .sf2-header,
  body.sf2-site .sf2-header *,
  body.sf2-site .sf2-mobile,
  body.sf2-site .sf2-mobile *,
  body.sf2-site .sf2-overlay,
  body.sf2-site .sf2-footer,
  body.sf2-site .sf2-footer *{
    animation:none!important;
    transition:none!important;
  }
}


/* ==========================================================
   SERVIZI & FORMAZIONE — GLOBAL GRID ALIGNMENT 2026
   Unifica Tema + SFF + Institutional Signature
   Desktop / Tablet / Mobile
   ========================================================== */

/* DESKTOP
   Stessa griglia delle pagine Institutional Signature */
@media(min-width:1181px){

  .sf2-wrap,
  .sff .shell{
    width:min(1640px,calc(100% - 56px))!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

}

/* Le CTA legacy occupano sempre tutta la propria griglia */
.sff .band{
  width:100%!important;
  max-width:none!important;
}


/* TABLET LANDSCAPE */
@media(max-width:1180px) and (min-width:851px){

  .sf2-wrap,
  .sff .shell{
    width:calc(100% - 40px)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

}


/* TABLET PORTRAIT */
@media(max-width:850px) and (min-width:701px){

  .sf2-wrap,
  .sff .shell{
    width:calc(100% - 34px)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

}


/* SMARTPHONE */
@media(max-width:700px){

  .sf2-wrap,
  .sff .shell{
    width:calc(100% - 28px)!important;
    max-width:none!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }

  .sff .band{
    width:100%!important;
  }

}


/* SMALL PHONE */
@media(max-width:420px){

  .sf2-wrap,
  .sff .shell{
    width:calc(100% - 22px)!important;
  }

}

