:root {
  --navy:#032b40;
  --navy-dark:#022335;
  --orange:#ff531b;
  --muted:#686a70;
  --white:#fff;
  --container:1280px;
  --shadow:0 9px 25px #09263810;
  --scale:calc(100vw / 1440)
}

* {
  box-sizing:border-box
}

[hidden] {
  display:none!important
}

html {
  scroll-behavior:smooth;
  scroll-padding-top:24px
}

body {
  margin:0;
  font-family:Arial,Helvetica,sans-serif;
  color:var(--navy);
  background:#fff;
  -webkit-font-smoothing:antialiased
}

button,a {
  -webkit-tap-highlight-color:transparent
}

button {
  font:inherit;
  cursor:pointer
}

a {
  color:inherit;
  text-decoration:none
}

img {
  display:block;
  max-width:100%
}

svg {
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}

h1,h2,h3,p {
  margin:0
}

h2 {
  font-size:clamp(25px,3.49vw,50px);
  line-height:1.02;
  letter-spacing:-1.3px;
  font-weight:800
}

h3 {
  font-size:clamp(15px,1.57vw,22px);
  line-height:1.12;
  letter-spacing:-.6px
}

em {
  font-style:normal;
  color:var(--orange)
}

.container {
  width:88.8%;
  max-width:var(--container);
  margin-inline:auto
}

.wide-container {
  width:92.4%;
  max-width:1330px;
  margin-inline:auto
}

.svg-library {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}

.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  border:1px solid var(--orange);
  border-radius:999px;
  background:var(--orange);
  color:white;
  padding:clamp(12px,1.15vw,17px) clamp(22px,2.3vw,34px);
  font-size:clamp(12px,1.06vw,15px);
  font-weight:700;
  line-height:1;
  white-space:nowrap;
  transition:background .2s,box-shadow .2s,transform .2s
}

.button svg {
  width:20px;
  height:20px
}

.button:hover {
  background:#e54410;
  box-shadow:0 5px 15px #ff531b26;
  transform:translateY(-2px)
}

.button-outline {
  background:transparent;
  border-color:#617887;
  color:var(--navy)
}

.button-outline:hover {
  background:#edf3f6;
  box-shadow:none
}

.button-outline.light {
  border-color:#fff;
  color:#fff
}

.button-outline.light:hover {
  background:#ffffff18
}

.button-white {
  background:#fff;
  border-color:#fff;
  color:var(--orange)
}

.button-white:hover {
  background:#fff0e8
}

.text-link {
  border:0;
  background:none;
  padding:0;
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:#e6470d;
  font-weight:700;
  font-size:clamp(12px,1.06vw,15px);
  text-align:left;
  min-height:30px
}

.text-link svg {
  width:19px;
  height:19px
}

.text-link:hover {
  text-decoration:underline;
  text-underline-offset:4px
}

a:focus-visible,button:focus-visible {
  outline:3px solid #ff8c42;
  outline-offset:5px
}

.skip-link {
  position:fixed;
  top:-100px;
  left:16px;
  z-index:100;
  background:white;
  padding:14px
}

.skip-link:focus {
  top:12px
}

.eyebrow {
  font-size:clamp(10px,0.97vw,14px);
  font-weight:700;
  letter-spacing:2px;
  margin-bottom:clamp(14px,1.3vw,19px)
}

.section-marker {
  position:relative
}

.section-marker:before {
  content:"";
  position:absolute;
  left:clamp(-29px,-2vw,-15px);
  top:0;
  width:2px;
  height:clamp(65px,7.7vw,110px);
  background:linear-gradient(var(--orange) 20%,#ff531b38 20%,var(--orange) 100%)
}

.topbar {
  background:var(--navy-dark);
  color:white;
  font-size:clamp(9px,.95vw,13px)
}

.topbar-inner {
  height:clamp(25px,2.85vw,40px);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}

.topbar-contacts {
  display:flex;
  align-items:center;
  gap:clamp(14px,2vw,28px)
}

.topbar-address,
.topbar-contacts a {
  display:flex;
  align-items:center;
  gap:6px
}

.topbar-address svg,
.topbar-contacts a svg {
  width:13px;
  height:13px;
  color:var(--orange)
}

.social-mark {
  font-size:18px;
  font-weight:bold;
  margin-left:30px
}

.topbar-contacts .social-icon {
  width:16px;
  height:16px
}

.masthead {
  padding:10px 0;
  background:var(--white)
}

.header-logo {
  display:block;
  width:min(100%,560px);
  margin-inline:auto
}

.header-logo img {
  width:100%;
  height:auto
}

.navbar {
  position:relative;
  z-index:5;
  background:#fff;
  border-top:1px solid #edf0f2;
  border-bottom:1px solid #edf0f2
}

.navbar-inner {
  min-height:64px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:48px
}

.brand {
  display:flex;
  align-items:center;
  gap:clamp(10px,1.2vw,17px);
  flex-shrink:0
}

.brand img {
  width:clamp(37px,4.3vw,62px);
  height:auto
}

.brand strong {
  display:block;
  font-size:clamp(14px,1.67vw,24px);
  font-weight:800;
  letter-spacing:-.7px;
  white-space:nowrap
}

.brand small {
  display:block;
  font-size:clamp(8px,.9vw,13px);
  font-weight:700;
  letter-spacing:2px;
  margin-top:4px;
  white-space:nowrap
}

nav {
  display:flex;
  align-items:center;
  gap:clamp(15px,2.3vw,33px)
}

nav a {
  font-size:clamp(10px,0.95vw,14px);
  font-weight:700;
  white-space:nowrap
}

nav a:hover {
  color:var(--orange)
}

.nav-cta {
  padding-inline:clamp(22px,2.3vw,34px)
}

.menu-toggle {
  display:none
}

.hero {
  height:clamp(400px,35vw,520px);
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:var(--navy-dark);
  color:white
}

.hero-photo {
  position:absolute;
  z-index:0;
  inset:0;
  width:100%;
  height:100%;
  overflow:hidden
}

.hero-ambience {
  position:absolute;
  inset:0;
  display:block;
  width:100%;
  height:100%;
  filter:blur(32px);
  opacity:.55;
  pointer-events:none
}

.hero-video {
  position:absolute;
  top:0;
  right:0;
  display:block;
  width:60%;
  max-width:100%;
  height:100%;
  object-fit:cover;
  object-position:center 25%;
  mask-image:linear-gradient(90deg,transparent 0%,#000 22%,#000 100%)
}




/* Blu intenso dietro ai testi, sfumato verso il video a destra. */
.hero:before {
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:linear-gradient(90deg,#022335 0%,#022335fa 20%,#022335e6 31%,#02233566 40%,#02233514 57%,transparent 72%)
}

.hero-inner {
  --hero-content-left:max(3.8%,calc((100% - 1330px)/2));
  position:relative;
  z-index:2;
  width:calc(40% - var(--hero-content-left) - 24px);
  max-width:560px;
  margin:0 0 0 var(--hero-content-left);
  padding:clamp(52px,5.5vw,80px) 0 0
}

.hero h1 {
  font-size:clamp(36px,4vw,58px);
  line-height:.95;
  font-weight:900;
  letter-spacing:-2px
}

.hero h1 span {
  color:var(--orange)
}

.hero-inner>p {
  font-size:clamp(15px,1.78vw,25px);
  line-height:1.17;
  margin-top:clamp(18px,1.9vw,28px)
}

.hero-actions {
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:clamp(22px,2.35vw,34px)
}

.hero-actions .button {
  padding:14px 22px;
  font-size:14px;
  gap:12px
}

/* Header condiviso dalle pagine interne. La homepage non usa inner-page. */
.inner-page .inner-header .navbar-inner {
  width:94%;
  max-width:1600px;
  min-height:150px;
  padding-block:12px;
  justify-content:flex-end;
  gap:clamp(12px,1vw,18px)
}
.inner-page .inner-header .header-logo {
  width:clamp(420px,32vw,520px);
  margin:0 auto 0 0;
  flex-shrink:0
}
.inner-page .inner-header #main-nav {
  gap:clamp(8px,.8vw,14px)
}
.inner-page .inner-header .nav-cta { padding-inline:22px; font-size:13px; gap:12px; }
.inner-page .inner-header #main-nav a {
  font-size:clamp(11px,1vw,14px)
}
.inner-page .inner-menu-cta {
  display:none
}
@media(max-width:1399px) {
  .inner-page .inner-header .navbar-inner {
    min-height:136px;
    gap:18px
  }
  .inner-page .inner-header .header-logo {
    width:min(58vw,480px)
  }
  .inner-page .inner-header .menu-toggle {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:44px;
    height:44px;
    padding:9px;
    border:0;
    background:none;
    color:var(--navy);
    order:2
  }
  .inner-page .inner-header .menu-toggle span {
    display:block;
    width:25px;
    height:2px;
    background:currentColor;
    transition:transform .2s,opacity .2s
  }
  .inner-page .inner-header .menu-toggle[aria-expanded=true] span:first-child {
    transform:translateY(7px) rotate(45deg)
  }
  .inner-page .inner-header .menu-toggle[aria-expanded=true] span:nth-child(2) {
    opacity:0
  }
  .inner-page .inner-header .menu-toggle[aria-expanded=true] span:last-child {
    transform:translateY(-7px) rotate(-45deg)
  }
  .inner-page .inner-header #main-nav {
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    padding:12px 6% 22px;
    background:white;
    box-shadow:0 12px 20px #032b4015;
    flex-direction:column;
    align-items:stretch;
    gap:0
  }
  .inner-page .inner-header #main-nav.is-open {
    display:flex
  }
  .inner-page .inner-header #main-nav a {
    font-size:15px;
    padding:13px 0;
    border-bottom:1px solid #edf0f2
  }
  .inner-page .inner-header #main-nav a::after {
    display:none
  }
  .inner-page .inner-header .nav-cta {
    order:1;
    margin-left:0
  }
}
@media(max-width:700px) {
  .inner-page .inner-header .navbar-inner {
    min-height:116px;
    gap:12px
  }
  .inner-page .inner-header .header-logo {
    width:calc(100% - 56px);
    max-width:430px
  }
  .inner-page .inner-header .nav-cta {
    display:none
  }
  .inner-page .inner-header .inner-menu-cta {
    display:block;
    color:var(--orange)
  }
}

.feature-strip {
  position:relative;
  z-index:2;
  margin-top:clamp(-52px,-3.6vw,-28px);
  border-radius:15px;
  background:linear-gradient(110deg,#fff,#fbfbfb);
  box-shadow:0 12px 32px #00000015;
  min-height:clamp(94px,9.6vw,138px);
  display:grid;
  grid-template-columns:1.08fr 1fr .98fr;
  align-items:center;
  padding:20px clamp(25px,3.8vw,55px);
  gap:clamp(20px,3vw,44px)
}

.feature-strip>div {
  display:flex;
  align-items:center;
  gap:clamp(17px,2vw,30px);
  height:65%;
  position:relative
}

.feature-strip>div+div:before {
  content:"";
  position:absolute;
  left:-6%;
  height:80%;
  width:1px;
  background:#dde2e5
}

.feature-strip svg {
  color:var(--orange);
  width:clamp(42px,5vw,72px);
  height:clamp(42px,5vw,72px);
  stroke-width:1.3
}

.feature-strip strong {
  display:block;
  font-size:clamp(12px,1.3vw,19px);
  white-space:nowrap
}

.feature-strip small {
  display:block;
  color:var(--muted);
  font-size:clamp(10px,0.95vw,14px);
  margin-top:9px;
  white-space:nowrap
}

.school-section {
  --school-photo-gap:clamp(20px,2.2vw,32px);
  position:relative;
  isolation:isolate;
  padding-top:calc(clamp(40px,4.8vw,69px) + var(--school-photo-gap));
  padding-bottom:clamp(25px,2.9vw,42px);
  background:linear-gradient(135deg,#fff 15%,#f7f9fa 80%,#fff)
}

.campus-photo {
  position:absolute;
  z-index:-2;
  top:var(--school-photo-gap);
  right:0;
  width:67%;
  height:clamp(290px,37vw,533px);
  background:url('../images/campus-istituto.webp') center center/cover no-repeat;
  mask-image:linear-gradient(to bottom,#000 80%,transparent)
}

.school-section:before {
  content:"";
  position:absolute;
  z-index:-1;
  top:var(--school-photo-gap);
  left:0;
  width:100%;
  height:clamp(300px,38vw,547px);
  background:linear-gradient(90deg,#fff 25%,#fffffff5 33%,#ffffffa8 42%,transparent 58%)
}

.school-inner {
  padding-left:2%;
  min-height:clamp(265px,30.8vw,444px)
}

.school-copy {
  max-width:43%
}

.school-copy>p:not(.eyebrow) {
  font-size:clamp(12px,1.23vw,18px);
  line-height:1.36;
  max-width:465px;
  margin-top:clamp(15px,1.4vw,20px);
  margin-bottom:clamp(14px,1.4vw,21px)
}

.education-grid {
  margin-top:var(--school-photo-gap);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:clamp(14px,1.6vw,23px);
  padding-inline:1.2%;
  scroll-margin-top:30px
}

.education-card {
  background:white;
  border-radius:13px;
  box-shadow:var(--shadow);
  overflow:hidden;
  display:flex;
  flex-direction:column;
  border:1px solid #f0f1f2
}

.education-card>img {
  width:100%;
  aspect-ratio:1.52;
  object-fit:cover
}

.card-body {
  position:relative;
  padding:clamp(23px,2.6vw,38px) clamp(16px,1.9vw,28px) clamp(15px,1.6vw,23px);
  display:flex;
  flex-direction:column;
  flex:1;
  background:#fff
}

.card-body:before {
  content:"";
  position:absolute;
  top:-23px;
  left:0;
  right:0;
  height:25px;
  background:#fff;
  clip-path:polygon(0 0,100% 95%,100% 100%,0 100%)
}

.card-icon {
  position:absolute;
  top:clamp(-34px,-2.6vw,-23px);
  left:clamp(16px,1.9vw,28px);
  display:grid;
  place-items:center;
  width:clamp(38px,4.3vw,62px);
  height:clamp(38px,4.3vw,62px);
  border:5px solid white;
  border-radius:50%;
  background:var(--navy);
  color:white
}

.card-icon svg {
  width:58%;
  height:58%
}

.card-body p {
  color:var(--muted);
  font-size:clamp(12px,1.13vw,16px);
  line-height:1.35;
  margin-top:9px;
  margin-bottom:clamp(15px,2vw,29px)
}

.card-body .text-link {
  margin-top:auto
}

.sports-section {
  background:var(--navy);
  color:white;
  position:relative;
  isolation:isolate;
  overflow:hidden
}

.sports-photo {
  position:absolute;
  inset:0 0 0 39%;
  background:url('../images/sport-hd.png') right top/cover no-repeat;
  mask-image:linear-gradient(90deg,transparent 0%,#000 24%);
  z-index:-3
}

.sports-section:before {
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:linear-gradient(90deg,#032b40 0%,#032b40fa 34%,#032b4033 51%,transparent 70%),linear-gradient(0deg,#0b394d 0%,#0b394de8 15%,transparent 48%)
}

.sports-section:after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,#021f3080 0%,#021f3066 28%,transparent 57%)
}

.sports-inner {
  padding-top:clamp(43px,4.8vw,69px);
  padding-bottom:clamp(28px,3.3vw,48px)
}

.sports-copy {
  margin-left:2%;
  max-width:46%
}

.sports-copy>p:not(.eyebrow) {
  font-size:clamp(13px,1.4vw,20px);
  line-height:1.3;
  margin-top:clamp(18px,1.9vw,28px);
  margin-bottom:clamp(19px,2vw,29px);
  max-width:550px
}

.sports-list {
  list-style:none;
  padding:0;
  margin:clamp(30px,3.4vw,49px) 0 0 2%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px
}

.sports-list li {
  display:flex;
  align-items:center;
  gap:clamp(9px,1vw,15px);
  font-size:clamp(11px,1.05vw,15px);
  font-weight:700;
  white-space:nowrap
}

.sports-list svg {
  width:clamp(35px,4.1vw,59px);
  height:clamp(35px,4.1vw,59px);
  border:1px solid #fff;
  border-radius:50%;
  padding:5px;
  stroke-width:1.2
}

.sports-list li.more-sports {
  align-self:end;
  font-size:clamp(10px,0.9vw,13px);
  padding-bottom:8px;
  margin-left:clamp(10px,7vw,100px)
}

.news-section {
  padding:clamp(35px,4vw,58px) 0 clamp(26px,2.8vw,40px);
  background:linear-gradient(#fff,#fafbfc)
}

.news-heading {
  display:flex;
  align-items:end;
  justify-content:space-between;
  gap:20px;
  margin-bottom:clamp(24px,2.1vw,30px)
}

.news-heading .section-marker {
  margin-left:2%
}

.news-heading .section-marker:before {
  height:85px
}

.news-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:clamp(17px,1.7vw,25px)
}

.news-card {
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:13px;
  background:#fff;
  box-shadow:var(--shadow);
  border:1px solid #f0f0f0
}

.news-card>img {
  width:100%;
  aspect-ratio:2.49;
  object-fit:cover
}

.news-body {
  padding:clamp(16px,1.9vw,28px) clamp(16px,2vw,29px) clamp(15px,1.7vw,25px);
  display:flex;
  flex-direction:column;
  flex:1
}

.news-body time {
  font-size:clamp(10px,0.97vw,14px);
  color:#717171;
  display:block;
  margin-bottom:clamp(10px,1vw,15px)
}

.news-body h3 {
  font-size:clamp(15px,1.58vw,22px)
}

.news-body p {
  font-size:clamp(12px,1.12vw,16px);
  color:var(--muted);
  line-height:1.35;
  margin:clamp(9px,1vw,15px) 0 clamp(10px,1.2vw,18px)
}

.news-body .text-link {
  margin-top:auto
}

.news-status {
  margin-top:20px;
  font-size:13px;
  color:var(--muted)
}

.enrollment-section {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:linear-gradient(110deg,#ff591d,#ff4c16 53%,#ff981f);
  color:white
}

.enrollment-photo {
  position:absolute;
  z-index:-2;
  inset:0 0 0 44%;
  background:url('../images/iscrizioni-panorama.png') right center/cover no-repeat;
  mask-image:linear-gradient(90deg,transparent 0%,#000 42%)
}

.enrollment-section:after {
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(90deg,#f14a1738 0%,#f14a171a 58%,transparent 78%)
}

.enrollment-inner {
  display:flex;
  align-items:center;
  gap:clamp(45px,6.5vw,94px);
  padding:clamp(29px,3.2vw,46px) 3.5%;
  min-height:clamp(158px,17.4vw,251px)
}

.enrollment-inner .section-marker:before {
  background:#ffffffa0;
  height:100%
}

.enrollment-inner h2 {
  font-size:clamp(26px,3.44vw,50px)
}

.enrollment-copy>p {
  font-size:clamp(14px,1.4vw,20px);
  line-height:1.3;
  margin-bottom:clamp(14px,1.4vw,20px)
}

.enrollment-copy {
  align-self:end
}

.stats-strip {
  background:#eef2f5
}

.stats-inner {
  min-height:clamp(84px,8.5vw,122px);
  display:grid;
  grid-template-columns:repeat(4,1fr);
  align-items:center;
  gap:clamp(22px,3vw,43px);
  padding-inline:3.5%
}

.stats-inner>div {
  display:flex;
  align-items:center;
  gap:clamp(17px,1.8vw,26px);
  position:relative
}

.stats-inner>div+div:before {
  content:"";
  position:absolute;
  left:clamp(-24px,-2vw,-15px);
  height:80%;
  width:1px;
  background:#cdd8df
}

.stats-inner svg {
  width:clamp(34px,4vw,58px);
  height:clamp(34px,4vw,58px);
  stroke-width:2
}

.stats-inner strong {
  display:block;
  font-size:clamp(18px,1.85vw,27px);
  line-height:1
}

.stats-inner small {
  display:block;
  font-size:clamp(11px,0.99vw,14px);
  line-height:1.2
}

footer {
  background:var(--navy-dark);
  color:#d6e0e6
}

.footer-grid {
  display:grid;
  grid-template-columns:1.45fr .85fr 1.1fr .8fr;
  gap:clamp(30px,5vw,72px);
  padding-block:clamp(28px,3vw,44px)
}

.footer-grid>div {
  position:relative
}

.footer-grid>div+div:before {
  content:"";
  position:absolute;
  top:0;
  left:clamp(-40px,-2.7vw,-20px);
  height:100%;
  width:1px;
  background:#ffffff13
}

.footer-brand {
  color:white;
  gap:12px
}

.footer-brand img {
  filter:brightness(0) invert(1);
  width:clamp(34px,4vw,58px)
}

.footer-brand strong {
  font-size:clamp(13px,1.4vw,20px)
}

.footer-brand small {
  font-size:clamp(7px,.7vw,10px);
  letter-spacing:1.5px
}

.footer-about p {
  font-size:clamp(11px,1.08vw,15px);
  line-height:1.5;
  margin-top:clamp(21px,2vw,29px)
}

.footer-grid h3 {
  color:#fff;
  font-size:clamp(12px,1.08vw,15px);
  letter-spacing:0;
  margin:5px 0 20px
}

.footer-links a {
  display:block;
  font-size:clamp(10px,0.96vw,14px);
  margin-bottom:10px
}

.footer-grid a:hover {
  color:#ff8559
}

.footer-contacts p,.footer-contacts>a,.footer-hours p {
  display:flex;
  align-items:start;
  gap:clamp(10px,1.3vw,19px);
  font-size:clamp(10px,0.94vw,14px);
  line-height:1.4;
  margin-bottom:14px
}

.footer-grid svg {
  width:21px;
  height:21px
}

.orange {
  color:var(--orange)
}

.footer-social {
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:22px;
  color:#fff
}

.footer-social>a {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  padding:0;
  border-radius:6px;
  line-height:1;
  color:inherit;
  background:transparent
}

.footer-social svg {
  display:block;
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7
}

.footer-bottom {
  border-top:1px solid #ffffff16
}

.footer-bottom>.container {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  min-height:clamp(52px,5.2vw,75px)
}

.footer-bottom small,.footer-bottom button,.footer-bottom a {
  font-size:clamp(9px,.91vw,13px)
}

.footer-bottom button,.footer-bottom a {
  border:0;
  background:none;
  color:inherit;
  padding:10px
}

.footer-bottom button:hover,.footer-bottom a:hover {
  text-decoration:underline
}
.footer-bottom a { display:inline-flex; align-items:center; min-height:44px; }

dialog {
  border:0;
  border-radius:18px;
  padding:45px;
  max-width:620px;
  width:calc(100% - 40px);
  color:var(--navy);
  box-shadow:0 25px 90px #0004
}

dialog::backdrop {
  background:#001d32bb;
  backdrop-filter:blur(4px)
}

dialog h2 {
  font-size:30px;
  line-height:1.12;
  margin-bottom:20px
}

dialog p:not(.eyebrow) {
  font-size:15px;
  line-height:1.6;
  margin-bottom:22px
}

dialog .dialog-note {
  font-size:13px!important;
  color:var(--muted);
  border-top:1px solid #e3e8eb;
  padding-top:18px
}

.dialog-close {
  position:absolute;
  right:14px;
  top:10px;
  width:44px;
  height:44px;
  border:0;
  background:transparent;
  color:var(--navy);
  font-size:27px
}

.dialog-close:hover {
  color:var(--orange)
}

@media(min-width:1441px) {
  .campus-photo {
    width:65%
  }
}

@media(min-width:761px) and (max-width:1050px) {
  .navbar-inner {
    gap:30px;
    min-height:62px
  }
  .brand {
    gap:9px
  }
  .brand img {
    width:35px
  }
  .brand strong {
    font-size:14px
  }
  .brand small {
    font-size:7px;
    letter-spacing:1.7px
  }
  nav {
    gap:18px
  }
  nav a {
    font-size:13px
  }
  .nav-cta {
    font-size:10px;
    padding:12px 20px;
    gap:10px
  }
  .nav-cta svg {
    width:14px;
    height:14px
  }
  .hero-actions {
    gap:12px
  }
  .hero-actions .button {
    padding:11px 18px;
    font-size:11px;
    gap:10px
  }
  .hero-actions .button svg {
    width:15px;
    height:15px
  }
  .feature-strip {
    min-height:76px;
    padding:17px 30px;
    gap:30px
  }
  .feature-strip strong {
    font-size:12px
  }
  .feature-strip small {
    font-size:10px;
    margin-top:7px
  }
  .feature-strip svg {
    width:42px;
    height:42px
  }
  .feature-strip>div {
    gap:17px
  }
  .school-copy h2 {
    font-size:28px
  }
  .school-copy>p:not(.eyebrow) {
    font-size:12px
  }
  .school-inner {
    min-height:235px
  }
  .school-copy .button {
    font-size:11px;
    padding:10px 20px
  }
  .sports-copy {
    max-width:45%
  }
  .sports-copy>p:not(.eyebrow) {
    font-size:13px
  }
  .sports-copy h2 {
    font-size:29px
  }
  .sports-list {
    gap:16px
  }
  .sports-list li {
    font-size:10px
  }
  .sports-list li.more-sports {
    margin-left:auto;
    font-size:8px
  }
  .news-heading .section-marker:before {
    height:48px
  }
  .news-body h3 {
    font-size:14px
  }
  .stats-inner {
    gap:25px;
    padding-inline:3.5%
  }
  .stats-inner small {
    font-size:10px
  }
  .footer-grid {
    gap:40px
  }
  .footer-grid h3 {
    margin-bottom:14px
  }
  .footer-links a {
    margin-bottom:8px
  }
  .footer-contacts p,.footer-contacts>a,.footer-hours p {
    font-size:9px;
    gap:10px
  }
  .footer-grid svg {
    width:15px;
    height:15px
  }
  .footer-brand {
    gap:10px
  }
  .footer-brand strong {
    font-size:13px
  }
  .footer-brand small {
    font-size:6px;
    letter-spacing:1px
  }
  .footer-brand img {
    width:30px
  }
  .footer-about p {
    font-size:10px
  }
  .footer-grid>div+div:before {
    left:-20px
  }
}

@media(max-width:760px) {
  .container {
    width:88%
  }
  .wide-container {
    width:91%
  }
  .topbar-inner {
    height:30px;
    justify-content:center;
    font-size:10px
  }
  .topbar-contacts {
    display:none
  }
  .navbar-inner {
    min-height:64px;
    justify-content:space-between;
    gap:12px
  }
  .masthead {
    padding:10px 0 8px
  }
  .masthead .container {
    width:94%
  }
  .brand img {
    width:36px
  }
  .brand strong {
    font-size:14px
  }
  .brand small {
    font-size:7px;
    letter-spacing:1.4px
  }
  .nav-cta {
    margin-left:0;
    font-size:12px;
    padding:13px 22px;
    gap:6px
  }
  .nav-cta svg {
    width:14px;
    height:14px
  }
  .menu-toggle {
    display:flex;
    flex-direction:column;
    justify-content:center;
    gap:5px;
    width:44px;
    height:44px;
    padding:9px;
    border:0;
    background:none;
    order:0;
    color:var(--navy)
  }
  .menu-toggle span {
    width:25px;
    height:2px;
    background:currentColor;
    transition:transform .2s,opacity .2s
  }
  .menu-toggle[aria-expanded=true] span:first-child {
    transform:translateY(7px) rotate(45deg)
  }
  .menu-toggle[aria-expanded=true] span:nth-child(2) {
    opacity:0
  }
  .menu-toggle[aria-expanded=true] span:last-child {
    transform:translateY(-7px) rotate(-45deg)
  }
  nav {
    display:none;
    position:absolute;
    left:0;
    right:0;
    top:100%;
    background:white;
    padding:12px 6% 22px;
    box-shadow:0 12px 20px #032b4015;
    flex-direction:column;
    align-items:stretch;
    gap:0
  }
  nav.is-open {
    display:flex
  }
  nav a {
    font-size:14px;
    padding:13px 0;
    border-bottom:1px solid #edf0f2
  }
  .hero {
    min-height:570px;
    height:calc(100vw * 1.05);
    max-height:660px
  }
  .hero-inner {
    padding:65px 0 90px
  }
  .hero h1 {
    font-size:clamp(40px,8.4vw,60px);
    letter-spacing:-2px
  }
  .hero-inner>p {
    font-size:18px;
    margin-top:25px
  }
  .hero-actions {
    margin-top:28px;
    flex-wrap:wrap;
    gap:12px;
    max-width:350px
  }
  .hero-actions .button {
    font-size:12px;
    padding:13px 20px;
    min-height:44px
  }
  .feature-strip {
    grid-template-columns:1fr;
    padding:25px;
    gap:22px;
    margin-top:-36px;
    min-height:0;
    border-radius:12px
  }
  .feature-strip>div {
    gap:22px
  }
  .feature-strip>div+div:before {
    left:0;
    right:0;
    top:-12px;
    width:100%;
    height:1px;
    background:#eef0f1
  }
  .feature-strip strong {
    font-size:14px;
    white-space:normal
  }
  .feature-strip small {
    font-size:12px;
    white-space:normal;
    margin-top:5px
  }
  .feature-strip svg {
    width:43px;
    height:43px
  }
  .school-section {
    padding-top:calc(42px + var(--school-photo-gap));
    padding-bottom:35px
  }
  .campus-photo {
    width:100%;
    top:calc(210px + var(--school-photo-gap));
    height:300px;
    background-position:center;
    opacity:.8;
    mask-image:linear-gradient(0deg,transparent,#000 22%,#000 78%,transparent)
  }
  .school-section:before {
    height:530px;
    background:linear-gradient(180deg,#fff 30%,#ffffff11 75%,#fff 100%)
  }
  .school-inner {
    min-height:490px;
    padding-left:5%
  }
  .school-copy {
    max-width:100%
  }
  .school-copy h2 {
    font-size:33px;
    letter-spacing:-1.3px
  }
  .eyebrow {
    font-size:11px;
    letter-spacing:1.6px
  }
  .school-copy>p:not(.eyebrow) {
    font-size:14px;
    max-width:340px;
    background:#ffffffa1
  }
  .school-copy .button {
    font-size:12px
  }
  .section-marker:before {
    left:-17px;
    height:80px
  }
  .education-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
    padding-inline:0
  }
  .education-card {
    border-radius:11px
  }
  .card-body {
    padding:25px 17px 17px
  }
  .card-body h3 {
    font-size:17px
  }
  .card-body p {
    font-size:13px;
    line-height:1.4;
    margin-top:10px;
    margin-bottom:15px
  }
  .card-body .text-link {
    font-size:12px;
    gap:5px;
    min-height:44px
  }
  .card-icon {
    width:43px;
    height:43px;
    left:14px;
    top:-27px;
    border-width:4px
  }
  .education-card>img {
    aspect-ratio:1.45
  }
  .sports-inner {
    padding-top:43px;
    padding-bottom:30px
  }
  .sports-photo {
    inset:0;
    background-position:67% center;
    opacity:.6;
    mask-image:none
  }
  .sports-section:before {
    background:linear-gradient(90deg,#032b40ef,#032b4050),linear-gradient(0deg,#032b40 5%,transparent 70%)
  }
  .sports-copy {
    max-width:95%;
    margin-left:5%
  }
  .sports-copy h2 {
    font-size:33px;
    letter-spacing:-1.5px
  }
  .sports-copy>p:not(.eyebrow) {
    font-size:14px;
    max-width:340px;
    line-height:1.45;
    margin-block:22px
  }
  .sports-list {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:23px 12px;
    margin:35px 0 0
  }
  .sports-list li {
    font-size:11px;
    flex-direction:column;
    gap:9px
  }
  .sports-list svg {
    width:42px;
    height:42px
  }
  .sports-list li.more-sports {
    margin:0;
    white-space:normal;
    text-align:center;
    font-size:10px;
    align-self:center;
    padding:0
  }
  .news-section {
    padding:40px 0 30px
  }
  .news-heading {
    align-items:start;
    flex-wrap:wrap;
    gap:20px;
    margin-bottom:22px
  }
  .news-heading .section-marker {
    margin-left:5%
  }
  .news-heading h2 {
    font-size:31px;
    letter-spacing:-1.5px
  }
  .news-heading .section-marker:before {
    height:85px
  }
  .news-heading .button {
    margin-left:5%;
    min-height:44px;
    font-size:12px
  }
  .news-grid {
    grid-template-columns:1fr;
    gap:22px
  }
  .news-card>img {
    aspect-ratio:2.49
  }
  .news-body {
    padding:22px
  }
  .news-body h3 {
    font-size:21px
  }
  .news-body time {
    font-size:12px
  }
  .news-body p {
    font-size:14px;
    margin-block:12px
  }
  .news-body .text-link {
    font-size:13px;
    min-height:44px
  }
  .enrollment-inner {
    flex-direction:column;
    align-items:start;
    gap:25px;
    padding:40px 5%;
    min-height:330px
  }
  .enrollment-inner h2 {
    font-size:34px
  }
  .enrollment-copy {
    align-self:start
  }
  .enrollment-copy>p {
    font-size:14px;
    max-width:280px
  }
  .enrollment-copy>p br {
    display:none
  }
  .enrollment-photo {
    inset:0;
    background-size:cover;
    background-position:85% center;
    mask-image:none
  }
  .enrollment-section:after {
    background:#ec48135c
  }
  .stats-inner {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:30px 20px;
    padding:28px 0
  }
  .stats-inner>div {
    gap:12px
  }
  .stats-inner>div+div:before {
    display:none
  }
  .stats-inner svg {
    width:38px;
    height:38px
  }
  .stats-inner strong {
    font-size:22px
  }
  .stats-inner small {
    font-size:11px
  }
  .footer-grid {
    grid-template-columns:1fr 1fr;
    gap:30px 25px;
    padding-block:35px
  }
  .footer-grid>div+div:before {
    display:none
  }
  .footer-about {
    grid-column:1/-1
  }
  .footer-brand strong {
    font-size:17px
  }
  .footer-brand small {
    font-size:8px
  }
  .footer-about p {
    font-size:13px
  }
  .footer-grid h3 {
    font-size:14px;
    margin-bottom:18px
  }
  .footer-links a {
    font-size:13px;
    min-height:30px;
    margin-bottom:4px
  }
  .footer-contacts p,.footer-contacts>a,.footer-hours p {
    font-size:12px;
    gap:8px;
    overflow-wrap:anywhere
  }
  .footer-grid svg {
    width:18px;
    height:18px
  }
  .footer-hours {
    grid-column:1/-1
  }
  .footer-bottom>.container {
    flex-direction:column;
    align-items:start;
    gap:8px;
    padding-block:20px
  }
  .footer-bottom small {
    font-size:10px;
    line-height:1.5
  }
  .footer-bottom button,.footer-bottom a {
    font-size:11px;
    padding:8px 12px 8px 0
  }
  dialog {
    padding:38px 24px 28px
  }
  dialog h2 {
    font-size:26px
  }
  dialog .button {
    font-size:12px
  }
}

@media(max-width:390px) {
  .nav-cta {
    display:inline-flex
  }
  .menu-toggle {
    margin-left:0
  }
  .hero h1 {
    font-size:44px
  }
  .education-grid {
    gap:12px
  }
  .card-body {
    padding-inline:12px
  }
  .card-body h3 {
    font-size:15px
  }
  .card-body p {
    font-size:13px
  }
  .card-body .text-link {
    font-size:11px;
    gap:3px
  }
  .card-body .text-link svg {
    width:14px
  }
  .stats-inner {
    column-gap:10px
  }
  .stats-inner small {
    font-size:10px
  }
  .footer-grid {
    grid-template-columns:1fr
  }
  .footer-about,.footer-hours {
    grid-column:auto
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior:auto
  }
  *,*:before,*:after {
    transition:none!important;
    animation:none!important
  }
  .button:hover {
    transform:none
  }
}

.education-card>img,.news-card>img {
  height:auto
}

@media(min-width:761px) and (max-width:1050px) {
  .feature-strip {
    grid-template-columns:repeat(3,minmax(0,1fr));
    padding-inline:26px;
    gap:24px
  }
  .feature-strip small,.feature-strip strong {
    white-space:normal
  }
  .feature-strip>div {
    gap:14px
  }
  .feature-strip>div>span {
    min-width:0
  }
}

/* Un'unica hero anche su mobile: testo sopra, fotogramma completo in basso. */
@media(max-width:760px) {
  .hero {
    display:block;
    height:auto;
    min-height:calc(310px + 100vw);
    max-height:none
  }
  .hero-video {
    top:auto;
    bottom:0;
    width:100%;
    height:auto;
    max-height:100%;
    object-fit:contain;
    object-position:center;
    mask-image:linear-gradient(180deg,transparent 0%,#000 18%)
  }
  .hero-inner {
    width:auto;
    max-width:none;
    margin:0;
    padding:32px 4.5% 0
  }
  .hero h1 {
    font-size:40px
  }
  .hero:before {
    display:block;
    background:linear-gradient(180deg,#022335 0%,#022335f5 36%,#02233566 55%,transparent 72%)
  }
}

/* Sottomenu condivisi da homepage e pagine interne. */
#main-nav .nav-group {
  position:relative;
  display:flex;
  align-items:center;
  gap:2px
}
.submenu-toggle {
  display:inline-grid;
  place-items:center;
  flex-shrink:0;
  width:28px;
  min-height:44px;
  border:0;
  padding:0;
  color:var(--navy);
  background:transparent
}
.submenu-toggle:hover { color:var(--orange); }
.submenu-toggle svg { width:16px; height:16px; transition:transform .2s; }
.submenu-toggle[aria-expanded=true] svg { transform:rotate(180deg); }
#main-nav .nav-submenu {
  position:absolute;
  top:100%;
  left:-15px;
  z-index:20;
  min-width:250px;
  padding:8px;
  background:#fff;
  color:var(--navy);
  border:1px solid #e1e8ed;
  border-radius:12px;
  box-shadow:0 12px 30px #032b4026
}
#main-nav .nav-submenu a,
.inner-page .inner-header #main-nav .nav-submenu a {
  display:block;
  padding:13px 14px;
  font-size:14px;
  line-height:1.3;
  border:0;
  border-radius:7px;
  white-space:normal
}
#main-nav .nav-submenu a:hover,
#main-nav .nav-submenu a[aria-current="page"] {
  color:#d84612;
  background:#fff1e9
}
#main-nav .nav-submenu a::after { display:none; }

@media(max-width:1399px) {
  .inner-page #main-nav .nav-group { display:grid; grid-template-columns:1fr 44px; gap:0; }
  .inner-page #main-nav .submenu-toggle { width:44px; min-height:46px; }
  .inner-page #main-nav .nav-submenu { position:static; grid-column:1/-1; min-width:0; width:100%; padding:7px; border:0; border-radius:0 0 9px 9px; background:#f1f5f8; box-shadow:none; }
}
@media(max-width:760px) {
  #main-nav .nav-group { display:grid; grid-template-columns:1fr 44px; gap:0; }
  #main-nav .submenu-toggle { width:44px; min-height:46px; }
  #main-nav .nav-submenu { position:static; grid-column:1/-1; min-width:0; width:100%; padding:7px; border:0; border-radius:0 0 9px 9px; background:#f1f5f8; box-shadow:none; }
}

#main-nav .nav-group>.nav-section-toggle { width:auto; display:inline-flex; gap:8px; font:inherit; font-size:15px; font-weight:700; padding:0 3px; grid-column:1/-1; justify-self:start; }
.nav-nested-group { position:relative; }
.nav-nested-row { display:flex; align-items:center; gap:2px; }
.nav-nested-row>a { flex:1; }
#main-nav .nav-submenu .nav-nested-row>a,
.inner-page .inner-header #main-nav .nav-submenu .nav-nested-row>a { white-space:nowrap; }
.nested-submenu-toggle { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; border:0; border-radius:7px; background:transparent; color:var(--navy); }
.nested-submenu-toggle:hover { background:#fff1e9; color:#d84612; }
.nested-submenu-toggle svg { width:17px; height:17px; }
.nav-nested-submenu { position:absolute; top:0; left:100%; min-width:250px; padding:8px; border:1px solid #e1e8ed; border-radius:12px; box-shadow:0 12px 30px #032b4026; background:#fff; z-index:21; }
@media(max-width:1399px) {
  .inner-page .nav-nested-submenu { position:static; min-width:0; margin-left:15px; background:#fff; box-shadow:none; }
  .inner-page .nested-submenu-toggle svg { transform:rotate(90deg); }
  .inner-page .nested-submenu-toggle[aria-expanded=true] svg { transform:rotate(-90deg); }
}
@media(max-width:760px) {
  .nav-nested-submenu { position:static; min-width:0; margin-left:15px; background:#fff; box-shadow:none; }
  .nested-submenu-toggle svg { transform:rotate(90deg); }
  .nested-submenu-toggle[aria-expanded=true] svg { transform:rotate(-90deg); }
}

/* Il menu completo della homepage si raccoglie anche sui tablet. */
@media(min-width:761px) and (max-width:1050px) {
  body:not(.inner-page) .navbar-inner { justify-content:space-between; }
  body:not(.inner-page) .menu-toggle { display:flex; flex-direction:column; justify-content:center; gap:5px; width:44px; height:44px; padding:9px; border:0; background:none; color:var(--navy); }
  body:not(.inner-page) .menu-toggle span { display:block; width:25px; height:2px; background:currentColor; }
  body:not(.inner-page) .menu-toggle[aria-expanded=true] span:first-child { transform:translateY(7px) rotate(45deg); }
  body:not(.inner-page) .menu-toggle[aria-expanded=true] span:nth-child(2) { opacity:0; }
  body:not(.inner-page) .menu-toggle[aria-expanded=true] span:last-child { transform:translateY(-7px) rotate(-45deg); }
  body:not(.inner-page) #main-nav { display:none; position:absolute; inset:100% 0 auto; padding:12px 6% 22px; background:white; box-shadow:0 12px 20px #032b4015; flex-direction:column; align-items:stretch; gap:0; }
  body:not(.inner-page) #main-nav.is-open { display:flex; }
  body:not(.inner-page) #main-nav a { font-size:15px; padding:13px 0; border-bottom:1px solid #edf0f2; }
  body:not(.inner-page) #main-nav .nav-group { display:grid; grid-template-columns:1fr 44px; gap:0; }
  body:not(.inner-page) #main-nav .submenu-toggle { min-height:46px; }
  body:not(.inner-page) #main-nav .nav-submenu { position:static; grid-column:1/-1; min-width:0; width:100%; padding:7px; border:0; border-radius:0 0 9px 9px; background:#f1f5f8; box-shadow:none; }
  body:not(.inner-page) .nav-nested-submenu { position:static; min-width:0; margin-left:15px; box-shadow:none; }
  body:not(.inner-page) .nested-submenu-toggle svg { transform:rotate(90deg); }
  body:not(.inner-page) .nested-submenu-toggle[aria-expanded=true] svg { transform:rotate(-90deg); }
}

/* Collegamenti social: stessa resa delle icone, ora accessibili da tastiera. */
.topbar-contacts a.social-link svg { color:inherit; }
.footer-social>a:hover { opacity:.8; }

/* Le immagini originali delle news mantengono un formato uniforme nella home. */
.news-section .news-card>img { aspect-ratio:5/2; object-fit:cover; }
.news-card>.news-image { display:block; overflow:hidden; }
.news-card>.news-image img { display:block; width:100%; height:auto; aspect-ratio:5/2; object-fit:cover; }
.news-body h3 a:hover { color:#d84612; }

/* Pulsante Contatti compatto nell’header di tutte le pagine. */
.navbar .nav-cta,
.inner-page .inner-header .nav-cta {
  min-height:44px;
  padding:10px 18px;
  font-size:12px;
  gap:8px;
}
.navbar .nav-cta svg { width:16px; height:16px; }

/* Home: identità centrata e navigazione su una fascia compatta a contrasto. */
body:not(.inner-page) .navbar {
  background:var(--navy-dark);
  border:0;
}
body:not(.inner-page) .navbar-inner { min-height:60px; }
body:not(.inner-page) .navbar .menu-toggle { color:var(--white); }
body:not(.inner-page) .navbar .menu-toggle span { background:currentColor; }
@media(min-width:1051px) {
  body:not(.inner-page) .navbar #main-nav>a,
  body:not(.inner-page) .navbar #main-nav>.nav-group>a,
  body:not(.inner-page) .navbar #main-nav>.nav-group>.submenu-toggle {
    color:var(--white);
  }
  body:not(.inner-page) .navbar #main-nav>a,
  body:not(.inner-page) .navbar #main-nav>.nav-group>a {
    display:flex;
    align-items:center;
    min-height:44px;
  }
  body:not(.inner-page) .navbar #main-nav>a:hover,
  body:not(.inner-page) .navbar #main-nav>.nav-group>a:hover,
  body:not(.inner-page) .navbar #main-nav>.nav-group>.submenu-toggle:hover,
  body:not(.inner-page) .navbar #main-nav>.nav-group>.submenu-toggle[aria-expanded=true] {
    color:#ffad85;
  }
}
@media(max-width:760px) {
  body:not(.inner-page) .masthead { padding:12px 0; }
  body:not(.inner-page) .masthead .header-logo { width:min(100%,440px); }
  body:not(.inner-page) .navbar-inner { min-height:58px; }
}

/* Titolo hero su due righe, dimensionato rispetto alla colonna del testo. */
.hero-inner { container-type:inline-size; }
.hero h1 { font-size:clamp(22px,10cqi,58px); line-height:1.05; letter-spacing:-.035em; white-space:nowrap; }
.hero h1 span { display:block; }

/* Informazioni della scuola condivise da tutti i footer, inclusa la home. */
.liceo-footer-meta { font-size:12px; line-height:1.6; padding:0 0 18px; color:#c0d0db; }

/* Preferenze cookie: banner e controllo persistente sulla destra. */
.cookie-toggle,.cookie-banner button,.cookie-map-notice button{font:inherit;min-height:44px;border-radius:8px;padding:11px 18px;border:1px solid #bdcbd4;background:#fff;color:var(--navy);font-weight:700;cursor:pointer}
.cookie-toggle{position:fixed;right:20px;bottom:20px;z-index:1001;background:var(--navy);border-color:#fff;color:#fff;box-shadow:0 5px 24px #032b4033;font-size:13px}
.cookie-banner{position:fixed;right:20px;bottom:82px;z-index:1000;width:min(440px,calc(100vw - 40px));max-height:calc(100dvh - 110px);overflow:auto;padding:24px;background:#fff;color:var(--navy);border:1px solid #d7e1e7;border-radius:16px;box-shadow:0 12px 48px #032b4030}
.cookie-banner-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.cookie-banner-heading h2{font-size:21px;line-height:1.3}.cookie-banner button.cookie-close{padding:0;width:44px;flex-shrink:0;font-size:26px;background:transparent;border-color:transparent}
.cookie-banner p{font-size:14px;line-height:1.65}.cookie-policy-link{display:inline-flex;align-items:center;min-height:44px;margin-top:6px;text-decoration:underline;font-size:13px;text-underline-offset:3px}.cookie-banner .cookie-choice{font-size:12px;color:#526675;margin-top:5px}
.cookie-actions{display:flex;gap:12px;margin-top:20px}.cookie-actions button{flex:1}.cookie-actions .cookie-accept{background:var(--navy);border-color:var(--navy);color:#fff}
.cookie-toggle:hover,.cookie-actions .cookie-accept:hover{background:#064362}.cookie-banner button:not(.cookie-accept):hover,.cookie-map-notice button:hover{background:#edf3f6}
.cookie-toggle:focus-visible,.cookie-banner :focus-visible,.cookie-map-notice button:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
.cookie-map-notice{min-height:380px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;padding:35px;text-align:center;background:#edf3f6;color:var(--navy)}.cookie-map-notice span{max-width:420px;line-height:1.6}.contact-map iframe:not([src]){display:none}
@media(max-width:760px){.cookie-toggle{right:16px;bottom:16px}.cookie-banner{right:16px;bottom:78px;width:calc(100vw - 32px);padding:20px}.cookie-map-notice{min-height:330px;padding:24px}}
@media print{.cookie-toggle,.cookie-banner{display:none!important}}

/* Ritorno in alto: separato dal controllo Cookie. */
.back-to-top{position:fixed;right:20px;bottom:82px;z-index:999;display:grid;place-items:center;width:48px;height:48px;padding:0;border:1px solid #fff;border-radius:50%;background:var(--navy);color:#fff;box-shadow:0 5px 24px #032b4033;cursor:pointer}
.back-to-top svg{width:23px;height:23px;stroke-width:2}.back-to-top:hover{background:#064362}.back-to-top:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
body:has(.cookie-banner:not([hidden])) .back-to-top{visibility:hidden}
@media(max-width:760px){.back-to-top{right:16px;bottom:78px}}
@media print{.back-to-top{display:none!important}}

/* Instagram prima del footer della home, con incorporamento ufficiale. */
.instagram-section{padding:40px 0;background:transparent}
.instagram-feed{min-width:0;width:100%;max-width:900px;margin-inline:auto;container-type:inline-size}
.instagram-feed iframe{display:block;border:0;width:100%;height:860px;height:calc(66.667cqw + 260px)}.instagram-feed iframe:not([src]){display:none}
.cookie-embed-notice{min-height:300px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;padding:40px;text-align:center;background:transparent;color:var(--navy)}.cookie-embed-notice span{max-width:340px;font-size:16px;line-height:1.7}
.cookie-embed-notice button{font:inherit;min-height:44px;padding:12px 20px;border-radius:8px;background:var(--navy);color:#fff;border:1px solid var(--navy);font-weight:700}.cookie-embed-notice button:hover{background:#064362}.cookie-embed-notice button:focus-visible{outline:3px solid var(--orange);outline-offset:3px}
@media(max-width:760px){.instagram-section{padding:32px 0}}
@media(max-width:480px){.cookie-embed-notice{min-height:260px;padding:28px 22px}}
