/* ==========================================================================
   Studio Martellato — personalizzazioni sul template Lawdit
   Palette: petrolio #0e3b43 · verde acqua #2a9d8f · testo #4f5d61 · fondo chiaro #f2f7f6
   Font: Fraunces (titoli) + Inter (testi)
   ========================================================================== */

/* Fallback con le metriche di Fraunces e Inter (misurate su Times New Roman / Arial e sui compatibili Liberation):
   quando arrivano i font web il testo non cambia ingombro, quindi niente layout shift */
@font-face {
  font-family: 'Fraunces Fallback';
  font-style: normal;
  src: local('Times New Roman'), local('Liberation Serif');
  size-adjust: 110.92%;
  ascent-override: 88.17%;
  descent-override: 22.99%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Fraunces Fallback';
  font-style: italic;
  src: local('Times New Roman Italic'), local('Liberation Serif Italic');
  size-adjust: 104.98%;
  ascent-override: 93.16%;
  descent-override: 24.29%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial'), local('Liberation Sans');
  size-adjust: 107.17%;
  ascent-override: 90.40%;
  descent-override: 22.51%;
  line-gap-override: 0%;
}
/* Fraunces ha l'asse ottico: ai corpi grandi i glifi sono più stretti, quindi per i titoli della testata
   (clamp(42px, 6.6vw, 104px)) servono fallback dedicati, usati da 992px in su (vedi .sm-pagehead-title) */
@font-face {
  font-family: 'Fraunces Fallback L';
  font-style: normal;
  src: local('Times New Roman'), local('Liberation Serif');
  size-adjust: 102.00%;
  ascent-override: 95.88%;
  descent-override: 25.00%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Fraunces Fallback L';
  font-style: italic;
  src: local('Times New Roman Italic'), local('Liberation Serif Italic');
  size-adjust: 98.00%;
  ascent-override: 99.80%;
  descent-override: 26.02%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Fraunces Fallback XL';
  font-style: normal;
  src: local('Times New Roman'), local('Liberation Serif');
  size-adjust: 93.50%;
  ascent-override: 104.60%;
  descent-override: 27.27%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Fraunces Fallback XL';
  font-style: italic;
  src: local('Times New Roman Italic'), local('Liberation Serif Italic');
  size-adjust: 90.50%;
  ascent-override: 108.07%;
  descent-override: 28.18%;
  line-gap-override: 0%;
}
/* Font self-hosted (Fraunces + Inter, subset latin e latin-ext): niente richieste bloccanti verso Google Fonts */
/* Fraunces normal latin-ext */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Fraunces normal latin */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(../fonts/fraunces-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Inter normal latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/inter-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter normal latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(../fonts/inter-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --sm-navy: #0e3b43;
  --sm-navy-dark: #082a30;
  --sm-gold: #2a9d8f;
  --sm-gold-light: #7fd1c3;
  --sm-text: #4f5d61;
  --sm-light: #f2f7f6;
  --sm-border: #dbe7e5;
  /* variante scura dell'accento per testi e bottoni su fondo chiaro (contrasto AA) */
  --sm-accent-dark: #1f7a6f;
}

html * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body,
p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--sm-text);
}
h1, h2, h3, h4, h5, h6,
.section-title { font-optical-sizing: auto; font-weight: 500; letter-spacing: -.015em; }
.section-title span { font-style: normal; font-weight: 500; }
.section-subtitle { font-family: "Inter", "Inter Fallback", sans-serif; font-style: normal; font-size: 13px !important; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sm-accent-dark); }
.section-subtitle.text-white { color: var(--sm-gold-light) !important; }
.section-subtitle .icon { width: 38px; height: 38px; font-size: 16px; }
a:hover { color: var(--sm-accent-dark); }
::selection { background: var(--sm-gold); color: #fff; }

/* overlay immagini: blu navy invece del nero */
[data-overlay-dark]:before { background: var(--sm-navy-dark); }
[data-overlay-dark="7"]:before { opacity: .72; }
[data-overlay-dark="8"]:before { opacity: .85; }
.bg-img { background-position: center; background-color: var(--sm-navy); }

/* ======= Logo ======= */
.sm-brand { display: inline-flex; padding: 0; }
.sm-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  line-height: 1;
}
.sm-logo-mark { width: 44px; height: 44px; flex: 0 0 44px; }
.sm-logo-accent-stroke { stroke: var(--sm-gold); }
.sm-logo-accent-fill { fill: var(--sm-gold); }
.sm-logo .sm-logo-text { display: flex; flex-direction: column; }
.sm-logo .sm-logo-small {
  font-family: "Inter", "Inter Fallback", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3.2px;
  text-transform: uppercase;
  color: var(--sm-gold-light);
  margin-bottom: 5px;
}
.sm-logo .sm-logo-big {
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: #fff;
}
.navbar .logo-wrapper { display: flex; align-items: center; gap: 16px; }
.sm-footer-logo .sm-logo-mark { width: 52px; height: 52px; flex-basis: 52px; }

/* ======= Navbar ======= */
.navbar .navbar-nav .nav-link { font-size: 15.5px; font-weight: 500; padding-left: 14px; padding-right: 14px; }
.navbar .navbar-right .button { padding: 0; }
.navbar .navbar-right .button a { display: block; padding: 8px 24px; color: #fff; }
.navbar .navbar-right .button:hover a { color: #fff; }
.nav-scroll .sm-logo-mark { width: 38px; height: 38px; flex-basis: 38px; }
.nav-scroll .sm-logo .sm-logo-big { font-size: 23px; }
.sm-no-hero .navbar { position: relative; background: var(--sm-navy); }

@media screen and (max-width: 991px) {
  .navbar .container { padding: 0 12px; }
  .logo-wrapper { padding: 18px 0; }
  .nav-scroll .logo-wrapper { padding: 16px 0; }
  .sm-logo .sm-logo-big { font-size: 20px; }
  .sm-logo-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .navbar .logo-wrapper { gap: 12px; }
  .navbar .navbar-toggler { margin-top: 0; padding: 8px; }
  .navbar .navbar-toggler-icon { font-size: 24px; display: flex; align-items: center; justify-content: center; }
  .navbar .navbar-collapse {
    max-height: calc(100vh - 90px);
    border-radius: 6px;
    margin-bottom: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
  }
  .navbar .navbar-nav .nav-link { padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .navbar .navbar-right { display: flex; margin-top: 16px; }
  .navbar .navbar-right .button { width: 100%; justify-content: center; }
  .navbar .navbar-right .button a { width: 100%; text-align: center; }
}

/* ======= Slider home (layout split, come studiofiscalconsulting) ======= */
.sm-hero .item {
  display: flex;
  align-items: flex-end;
  padding-bottom: 15vh;
}
.sm-hero .item[data-overlay-dark]:before {
  background: linear-gradient(to top, rgba(8, 42, 48, .92) 0%, rgba(8, 42, 48, .5) 45%, rgba(8, 42, 48, .3) 100%);
  opacity: 1;
}
.sm-hero .container { width: 100%; }
/* prima che owl si inizializzi mostra già la prima slide (è l'elemento LCP della home) invece di nascondere tutto lo slider */
.sm-hero .owl-carousel:not(.owl-loaded) { display: block; position: relative; height: 100vh; }
.sm-hero .owl-carousel:not(.owl-loaded) > .item:not(:first-child) { display: none; }
.sm-hero .owl-carousel.owl-loading { opacity: 1; }
.sm-hero-media img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 98%;
  object-fit: cover;
  object-position: top;
}
.sm-hero .sm-hero-title {
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-optical-sizing: auto;
  font-size: 76px;
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.025em;
  color: #fff;
  margin: 0;
  text-align: left;
}
.sm-hero .sm-hero-subtitle {
  font-family: "Inter", "Inter Fallback", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .9);
  border-top: 1px solid rgba(255, 255, 255, .4);
  padding-top: 18px;
  margin: 0 0 26px;
}
.sm-hero .button-3 {
  padding: 13px 30px;
  font-size: 16px;
  border-color: #fff;
  background: rgba(255, 255, 255, .06);
}
.sm-hero .button-3:hover { border-color: var(--sm-gold); background: var(--sm-gold); }
.slider-fade .owl-item.active .sm-hero-title,
.slider-fade .owl-item.active .sm-hero-subtitle,
.slider-fade .owl-item.active .button-3 { animation: smFadeUp .9s both; }
.slider-fade .owl-item.active .sm-hero-subtitle { animation-delay: .2s; }
.slider-fade .owl-item.active .button-3 { animation-delay: .35s; }
@keyframes smFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
/* frecce ai lati, a metà altezza */
.slider-fade .owl-theme .owl-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  bottom: auto;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  pointer-events: none;
}
.slider-fade .owl-theme .owl-nav [class*=owl-] {
  pointer-events: auto;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, .5);
}
.slider-fade .owl-theme .owl-dots { bottom: 5vh; }
@media (max-width: 991.98px) {
  .sm-hero .sm-hero-title { font-size: 48px; margin-bottom: 28px; }
}
@media (max-width: 767.98px) {
  .slider-fade .owl-theme .owl-nav { display: none !important; }
}
@media (max-width: 575.98px) {
  .slider-fade .owl-item { height: 100svh; }
  .sm-hero .item { padding-bottom: 12vh; }
  .sm-hero .sm-hero-title { font-size: 38px; }
}

/* ======= Testata pagine interne (editoriale) ======= */
.sm-pagehead {
  position: relative;
  overflow: hidden;
  padding: 150px 0 0;
  color: #fff;
  background:
    radial-gradient(60% 80% at 85% 10%, rgba(42, 157, 143, .28) 0%, rgba(42, 157, 143, 0) 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(127, 209, 195, .10) 0%, rgba(127, 209, 195, 0) 70%),
    var(--sm-navy);
}
/* griglia sottile di sfondo */
.sm-pagehead-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .4) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, .4) 70%, transparent 100%);
  pointer-events: none;
}
/* numero di sezione gigante, solo contorno */
.sm-pagehead-watermark {
  position: absolute;
  right: -2vw;
  bottom: -6vw;
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: clamp(220px, 34vw, 520px);
  font-weight: 300;
  line-height: .8;
  color: transparent;
  -webkit-text-stroke: 1px rgba(127, 209, 195, .16);
  letter-spacing: -.04em;
  pointer-events: none;
  user-select: none;
}
.sm-pagehead .container { position: relative; z-index: 2; }

/* breadcrumbs a pillola */
.sm-pagehead-crumbs nav { justify-content: flex-start !important; }
.sm-pagehead-crumbs .breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  margin: 0 0 56px;
  padding: 8px 18px;
  font-size: 13px;
  letter-spacing: .04em;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
}
.sm-pagehead-crumbs .breadcrumb-item,
.sm-pagehead-crumbs .breadcrumb-item a { color: rgba(255, 255, 255, .72); }
.sm-pagehead-crumbs .breadcrumb-item a:hover { color: var(--sm-gold-light); }
.sm-pagehead-crumbs .breadcrumb-item + .breadcrumb-item::before { color: var(--sm-gold); content: "/"; }
.sm-pagehead-crumbs .breadcrumb-item:last-child { color: #fff; }

.sm-pagehead-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  font-family: "Inter", "Inter Fallback", sans-serif;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sm-gold-light) !important;
}
.sm-pagehead-num {
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  color: #fff;
}
.sm-pagehead-num::after {
  content: "";
  display: inline-block;
  width: 44px;
  height: 1px;
  margin-left: 14px;
  vertical-align: middle;
  background: var(--sm-gold);
}

/* titolo grande, parola per parola */
.sm-pagehead-title {
  margin: 0;
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: clamp(42px, 6.6vw, 104px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
  color: #fff;
}
.sm-pagehead-title em { font-style: italic; font-weight: 300; color: var(--sm-gold-light); }
@media (min-width: 992px) {
  .sm-pagehead-title { font-family: "Fraunces", "Fraunces Fallback L", serif; }
}
@media (min-width: 1300px) {
  .sm-pagehead-title { font-family: "Fraunces", "Fraunces Fallback XL", serif; }
}
.sm-pagehead-title .sm-w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: .2em;
  margin-bottom: -.2em;
  /* spazio extra ai lati: le lettere in corsivo sporgono oltre il riquadro e verrebbero tagliate */
  padding-right: .14em;
  margin-right: -.14em;
  padding-left: .04em;
  margin-left: -.04em;
  vertical-align: top;
}
.sm-pagehead-title .sm-w > span { display: inline-block; }

/* immagine ad arco */
.sm-pagehead-figure {
  position: relative;
  margin: 40px 0 0;
  aspect-ratio: 4 / 5;
  max-height: 460px;
  overflow: hidden;
  border-radius: 999px 999px 0 0;
}
.sm-pagehead-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}
/* variante a immagine intera (news): proporzioni originali, nessun ritaglio né zoom */
.sm-pagehead-figure.sm-pagehead-figure-full {
  aspect-ratio: auto;
  max-height: none;
  border-radius: 6px;
  /* vicina al bordo inferiore della testata (resta lo spazio minimo per l'ombra) */
  margin-bottom: 20px;
}
.sm-pagehead-figure.sm-pagehead-figure-full img,
.js .sm-pagehead .sm-pagehead-figure.sm-pagehead-figure-full img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 460px;
  margin-left: auto;
  border-radius: 6px;
  transform: none;
  /* la testata è blu notte: l'ombra deve essere nera e intensa per staccarsi dal fondo */
  box-shadow: 0 24px 48px -10px rgba(0, 0, 0, .45), 0 8px 18px rgba(0, 0, 0, .25);
}
/* l'ombra esce dal riquadro: overflow visibile e clip-path dell'animazione allargato oltre i bordi */
.sm-pagehead-figure.sm-pagehead-figure-full { overflow: visible; }
.js .sm-pagehead.is-in .sm-pagehead-figure.sm-pagehead-figure-full { clip-path: inset(-80px -80px -80px -80px); }

/* badge circolare rotante (quando non c'è un'immagine) */
.sm-pagehead-badge {
  position: relative;
  width: 168px;
  height: 168px;
  margin: 30px 0 0 auto;
}
.sm-pagehead-badge-text {
  width: 100%;
  height: 100%;
  animation: sm-spin 26s linear infinite;
}
.sm-pagehead-badge-text text {
  font-family: "Inter", "Inter Fallback", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  fill: rgba(255, 255, 255, .78);
}
.sm-pagehead-badge-mark {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sm-pagehead-badge-mark .sm-logo-text { display: none; }
.sm-pagehead-badge-mark .sm-logo-mark { width: 52px; height: 52px; flex-basis: 52px; }
@keyframes sm-spin { to { transform: rotate(360deg); } }

/* riga inferiore: sottotitolo + scorri */
.sm-pagehead-bottom {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-top: 56px;
  padding: 30px 0 46px;
}
.sm-pagehead-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, .18);
  transform-origin: left center;
}
.sm-pagehead-has-image .sm-pagehead-bottom { margin-top: 0; }
.sm-pagehead-intro { max-width: 640px; }
.sm-pagehead-subtitle {
  margin: 0;
  font-size: 19px !important;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82) !important;
}
.sm-pagehead-meta { margin-top: 12px; color: var(--sm-gold-light); font-size: 15px; letter-spacing: .04em; }
.sm-pagehead-meta i { margin-right: 6px; }
.sm-pagehead-scroll {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
}
.sm-pagehead-scroll i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  transition: background-color .3s, border-color .3s, transform .3s;
}
.sm-pagehead-scroll:hover { color: var(--sm-gold-light); }
.sm-pagehead-scroll:hover i { background: var(--sm-gold); border-color: var(--sm-gold); color: #fff; transform: translateY(4px); }
.sm-pagehead-scroll i { animation: sm-bob 2.4s ease-in-out infinite; }
@keyframes sm-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
#sm-page-content { scroll-margin-top: 80px; }

/* animazioni di ingresso (solo con JS attivo) */
.js .sm-pagehead-title .sm-w > span {
  transform: translateY(105%);
  transition: transform 1s cubic-bezier(.19, 1, .22, 1);
  transition-delay: calc(var(--i) * 70ms + 150ms);
}
.js .sm-pagehead-eyebrow,
.js .sm-pagehead-crumbs,
.js .sm-pagehead-intro,
.js .sm-pagehead-scroll,
.js .sm-pagehead-badge {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .8s ease, transform .8s cubic-bezier(.19, 1, .22, 1);
}
.js .sm-pagehead-eyebrow { transition-delay: .05s; }
.js .sm-pagehead-intro { transition-delay: .55s; }
.js .sm-pagehead-scroll { transition-delay: .7s; }
.js .sm-pagehead-badge { transition-delay: .6s; }
.js .sm-pagehead-bottom::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.19, 1, .22, 1) .35s; }
.js .sm-pagehead-figure { clip-path: inset(100% 0 0 0); transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1) .2s; }
.js .sm-pagehead-figure img { transition: transform 1.8s cubic-bezier(.19, 1, .22, 1) .2s; }
.js .sm-pagehead.is-in .sm-pagehead-title .sm-w > span,
.js .sm-pagehead.is-in .sm-pagehead-eyebrow,
.js .sm-pagehead.is-in .sm-pagehead-crumbs,
.js .sm-pagehead.is-in .sm-pagehead-intro,
.js .sm-pagehead.is-in .sm-pagehead-scroll,
.js .sm-pagehead.is-in .sm-pagehead-badge { opacity: 1; transform: none; }
.js .sm-pagehead.is-in .sm-pagehead-bottom::before { transform: scaleX(1); }
.js .sm-pagehead.is-in .sm-pagehead-figure { clip-path: inset(0 0 0 0); }
.js .sm-pagehead.is-in .sm-pagehead-figure img { transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .sm-pagehead *,
  .sm-pagehead *::before { animation: none !important; transition: none !important; }
  .js .sm-pagehead .sm-pagehead-title .sm-w > span,
  .js .sm-pagehead .sm-pagehead-eyebrow,
  .js .sm-pagehead .sm-pagehead-crumbs,
  .js .sm-pagehead .sm-pagehead-intro,
  .js .sm-pagehead .sm-pagehead-scroll,
  .js .sm-pagehead .sm-pagehead-badge { opacity: 1; transform: none; }
  .js .sm-pagehead .sm-pagehead-bottom::before { transform: none; }
  .js .sm-pagehead .sm-pagehead-figure { clip-path: none; }
}

/* ======= Section helpers ======= */
h1.section-title,
h2.section-title { margin-top: 0; }
.section-subtitle { font-size: 19px; }
.sm-lead {
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-style: italic;
  font-size: 20px;
  color: var(--sm-gold);
  line-height: 1.5;
}
.sm-ratio-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; }
.sm-sticky { position: sticky; top: 110px; }
.sm-on-dark { color: rgba(255, 255, 255, .78); }
.bg-darkbrown .about-rol { color: var(--sm-gold-light); font-style: italic; font-family: "Fraunces", "Fraunces Fallback", serif; }
.sm-btn-block { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.button-1, .button-2, .button-3, .button-4 { font-size: 17px; }
.button-2 i, .button-1 i { margin-right: 6px; font-size: 14px; }
.about .year-box .number { font-size: 64px; line-height: 80px; }
.about .year-box .txt { position: relative; z-index: 1; margin-top: 18px; }
.about .year-box .number-bg { top: -50px; left: 5px; }

/* badge anni (home): card chiara su vetro, numero in Fraunces, anello decorativo */
.about .year-box.vert-move {
  left: 28px;
  bottom: 28px;
  width: auto;
  min-width: 180px;
  max-width: 220px;
  padding: 22px 26px 22px;
  text-align: left;
  border-radius: var(--sm-radius);
  border: 1px solid rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: 0 24px 50px rgba(8, 42, 48, .22), 0 2px 6px rgba(8, 42, 48, .06);
  -webkit-animation: sm-float 6s ease-in-out infinite;
  animation: sm-float 6s ease-in-out infinite;
}
.about .year-box.vert-move .number {
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: 60px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.035em;
  color: var(--sm-navy);
}
.about .year-box.vert-move .txt {
  margin-top: 14px;
  padding-top: 14px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--sm-text);
}
/* filo d'accento sopra la didascalia */
.about .year-box.vert-move .txt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--sm-gold);
}
/* il cerchio pieno del template diventa un anello con alone, nell'angolo */
.about .year-box.vert-move .number-bg {
  top: -46px;
  right: -46px;
  left: auto;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(42, 157, 143, .35);
  background: radial-gradient(circle, rgba(42, 157, 143, .18) 0%, rgba(42, 157, 143, 0) 70%);
  pointer-events: none;
}
.about .year-box.vert-move .number-bg::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 1px solid rgba(42, 157, 143, .2);
}
@-webkit-keyframes sm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes sm-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@media (prefers-reduced-motion: reduce) {
  .about .year-box.vert-move { -webkit-animation: none; animation: none; }
}

/* ======= Contenuti da CMS (Htmlarea) ======= */
.sm-content > *:last-child { margin-bottom: 0; }
.sm-content p { margin-bottom: 18px; }
.sm-content strong { color: var(--sm-navy); font-weight: 500; }
.sm-content a { color: var(--sm-gold); border-bottom: 1px solid currentColor; }
.sm-content h2 {
  font-size: 32px;
  margin: 40px 0 16px;
  color: var(--sm-navy);
}
.sm-content h3 {
  font-size: 23px;
  margin: 28px 0 12px;
  color: var(--sm-navy);
}
.sm-content > h2:first-child,
.sm-content > h3:first-child { margin-top: 0; }
.sm-content ul,
.sm-content ol { margin: 0 0 20px; padding: 0; }
.sm-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
  line-height: 1.6;
}
.sm-content ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .65em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sm-gold);
}
.sm-content ol { counter-reset: smol; }
.sm-content ol li { counter-increment: smol; position: relative; padding-left: 28px; margin-bottom: 9px; }
.sm-content ol li::before { content: counter(smol) "."; position: absolute; left: 0; color: var(--sm-gold); font-weight: 500; }
.sm-content-checks ul li { padding-left: 30px; }
.sm-content-checks ul li::before {
  content: "\e64c";
  font-family: 'themify';
  font-size: 13px;
  color: var(--sm-gold);
  background: none;
  width: auto;
  height: auto;
  top: .15em;
  left: 0;
}
.sm-content-lg p,
.sm-content-lg li { font-size: 18px; }

/* ======= Punti di forza ======= */
.sm-strengths { padding: 70px 0 60px; border-top: 1px solid var(--sm-border); }
.case-study-box .item .icon:before { font-size: 42px; line-height: 50px; }
.sm-box-title { font-size: 22px; margin-bottom: 10px; }
.case-study-box .item p { font-size: 17px; margin-bottom: 0; }

/* ======= Aree di attività (home) ======= */
.practice-areas .item { background: #fff; padding: 44px 16px; min-height: 210px; display: flex; }
.practice-areas .item a { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.practice-areas .item i { font-size: 48px; margin-bottom: 18px; }
.practice-areas .item .shape { left: auto; right: -20px; bottom: -40px; }
.practice-areas .item .shape i { font-size: 130px; }
.sm-area-title { font-size: 19px; line-height: 1.3; margin: 0; color: var(--sm-navy); }
.practice-areas .item:hover .sm-area-title { color: #fff; }
.practice-areas .item:hover .shape i { color: #fff; }

/* ======= Aree di attività (pagina) ======= */
.sm-area-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 40px;
}
.sm-area-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid var(--sm-border);
  border-radius: 30px;
  color: var(--sm-navy);
  font-size: 16px;
  transition: all .3s;
}
.sm-area-nav a i { color: var(--sm-gold); }
.sm-area-nav a:hover { background: var(--sm-navy); border-color: var(--sm-navy); color: #fff; }
.sm-area-row { padding: 60px 0; border-top: 1px solid var(--sm-border); scroll-margin-top: 90px; }
.sm-area-row:first-child { border-top: 0; padding-top: 20px; }
.sm-area-media { position: relative; }
.sm-area-media .sm-ratio-img { aspect-ratio: 1 / 1; }
.sm-area-badge {
  position: absolute;
  left: 24px;
  bottom: -24px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--sm-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  box-shadow: 0 10px 30px rgba(14, 59, 67, .2);
}
.sm-area-heading { font-size: 38px; }

/* ======= News ======= */
.blog .item.sm-news-card {
  height: calc(100% - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(14, 59, 67, .06);
}
.blog .bg-white .item.sm-news-card,
.blog:not(.bg-lightbrown) .item.sm-news-card { border: 1px solid var(--sm-border); }
/* l'immagine non deve mai risultare tagliata: riquadro 16:9 come il formato indicato nel CMS (1920x1080), così queste immagini lo riempiono esatte; gli altri formati restano interi (contain), niente zoom all'hover */
.sm-news-card .img img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.sm-news-card .cont { flex: 1; display: flex; flex-direction: column; }
.sm-news-date { font-size: 15px; color: var(--sm-gold); margin-bottom: 10px; }
.sm-news-date i { margin-right: 5px; }
.sm-news-title { font-size: 23px; line-height: 1.3; margin-bottom: 12px; }
.sm-news-title a { color: var(--sm-navy); }
.sm-news-title a:hover { color: var(--sm-gold); }
.sm-news-card .cont p { font-size: 16px; }
.sm-read-more { margin-top: auto; color: var(--sm-navy); font-weight: 500; font-size: 16px; }
.sm-read-more i { font-size: 12px; margin-left: 6px; color: var(--sm-gold); transition: margin .3s; }
.sm-read-more:hover i { margin-left: 10px; }
.sm-video { overflow: hidden; border-radius: var(--sm-radius); }
.sm-video iframe { border-radius: var(--sm-radius); }
/* foto della news ingrandibili (Fancybox) */
.sm-zoom { position: relative; display: block; overflow: hidden; border-radius: var(--sm-radius); cursor: zoom-in; }
.sm-zoom img { width: 100%; transition: transform .8s var(--sm-ease, ease); }
.sm-zoom::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 42, 48, .35);
  opacity: 0;
  transition: opacity .4s;
}
.sm-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #fff;
  color: var(--sm-navy);
  font-size: 18px;
  opacity: 0;
  transform: translate(-50%, -50%) scale(.7);
  transition: opacity .4s, transform .4s var(--sm-ease, ease);
}
.sm-zoom:hover img,
.sm-zoom:focus-visible img { transform: scale(1.05); }
.sm-zoom:hover::after,
.sm-zoom:focus-visible::after { opacity: 1; }
.sm-zoom:hover .sm-zoom-icon,
.sm-zoom:focus-visible .sm-zoom-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sm-file-list li { margin-bottom: 8px; }
.sm-file-list a { color: var(--sm-navy); }
.sm-file-list a i { color: var(--sm-gold); margin-right: 8px; }

/* pager */
.sm-pager .pagination { gap: 6px; flex-wrap: wrap; justify-content: center; }
.sm-pager .page-link {
  border-radius: 50% !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sm-border);
  color: var(--sm-navy);
  background: #fff;
}
.sm-pager .page-item.active .page-link { background: var(--sm-gold); border-color: var(--sm-gold); color: #fff; }
.sm-pager .page-item.disabled .page-link { opacity: .4; }
.sm-pager .material-symbols-rounded { font-size: 20px; }

/* ======= Professionisti ======= */
.sm-team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 6px;
  overflow: hidden;
  height: 100%;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.sm-team-card:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 22px 50px rgba(14, 59, 67, .14); }
.sm-team-img { position: relative; display: block; overflow: hidden; background: var(--sm-light); }
.sm-team-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
/* velo petrolio dal basso, si intensifica in hover */
.sm-team-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 42, 48, .55) 0%, rgba(8, 42, 48, 0) 45%);
  opacity: .35;
  transition: opacity .5s;
  pointer-events: none;
}
.sm-team-card:hover .sm-team-img::after { opacity: 1; }
/* filo d'accento tra foto e testo, si allunga in hover */
.sm-team-info::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--sm-gold);
  transition: width .6s var(--sm-ease, ease);
}
.sm-team-card:hover .sm-team-info::before { width: 100%; }
.sm-team-info {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px 28px 24px;
  text-align: left;
}
.sm-team-name { font-size: 25px; line-height: 1.2; margin-bottom: 6px; }
.sm-team-name a { color: var(--sm-navy); transition: color .3s; }
/* tutta la card è cliccabile */
.sm-team-name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.sm-team-card:hover .sm-team-name a { color: var(--sm-accent-dark); }
.sm-team-info .sm-team-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sm-accent-dark);
  margin-bottom: 20px;
}
.sm-team-info .sm-read-more {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--sm-border);
}
.sm-team-info .sm-read-more i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-left: 0;
  border: 1px solid var(--sm-border);
  border-radius: 50%;
  transition: background .3s, border-color .3s, color .3s, transform .3s;
}
.sm-team-card:hover .sm-read-more i { background: var(--sm-gold); border-color: var(--sm-gold); color: #fff; transform: translateX(4px); }
/* un solo professionista: card a destra del testo da desktop, sotto da mobile */
@media (max-width: 991.98px) {
  .sm-team-single { margin-top: 40px; }
}

.sm-profile-img { margin-bottom: 0; border-radius: 6px 6px 0 0; }
.sm-profile-card {
  background: var(--sm-navy);
  padding: 28px;
  border-radius: 0 0 6px 6px;
}
.sm-profile-name { font-family: "Fraunces", "Fraunces Fallback", serif; font-size: 25px; color: #fff; margin-bottom: 4px; }
.sm-profile-role { color: var(--sm-gold-light); font-size: 16px; margin-bottom: 18px; }
.sm-profile-contacts li { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; color: rgba(255, 255, 255, .8); }
.sm-profile-contacts i { color: var(--sm-gold); }
.sm-profile-contacts a { color: rgba(255, 255, 255, .85); word-break: break-all; }
.sm-profile-contacts a:hover { color: var(--sm-gold-light); }
.sm-profile-card .button-1:hover { border-color: #fff; background: #fff; color: var(--sm-navy); }

.sm-panel {
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: 6px;
  padding: 36px;
}
.sm-panel-title {
  font-size: 28px;
  padding-bottom: 14px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--sm-border);
}
.sm-panel .sm-content li { font-size: 16px; }

/* ======= Contatti ======= */
.sm-info-title { font-family: "Inter", "Inter Fallback", sans-serif; font-size: 18px; font-weight: 500; color: var(--sm-navy); margin: 5px 0 2px; }
.info-box .item .icon { padding-top: 0; display: flex; align-items: center; justify-content: center; flex: 0 0 60px; }
.info-box .item .icon:before { font-size: 22px; }
.info-box .item p,
.sm-hours p { font-size: 17px; margin-bottom: 0; }
.info-box .item a { color: var(--sm-navy); }
.info-box .item a:hover { color: var(--sm-gold); }
.contact-form.sm-contact-form {
  padding: 40px 34px;
  background: #fff;
  border: 1px solid var(--sm-border);
  border-top: 4px solid var(--sm-gold);
  box-shadow: 0 20px 50px rgba(14, 59, 67, .08);
}
.sm-form-title { color: var(--sm-navy); font-size: 30px; text-align: center; margin-bottom: 26px; }
.sm-contact-form .form-control,
.sm-contact-form .form-select { border-color: var(--sm-border); border-radius: 6px; font-size: 16px; color: var(--sm-navy); }
.sm-contact-form .form-control:focus,
.sm-contact-form .form-select:focus { border-color: var(--sm-gold); box-shadow: 0 0 0 .2rem rgba(42, 157, 143, .15); }
.sm-contact-form .form-floating > label { color: var(--sm-text); font-size: 15px; }
.sm-contact-form textarea.form-control { min-height: 140px; }
/* spazi verticali compatti: via il margine del template sui campi, gutter ridotto */
.sm-contact-form form.row { --bs-gutter-y: .75rem; }
.sm-contact-form .form-control,
.sm-contact-form .form-select { margin-bottom: 0; }
.sm-contact-form .form-check-label { font-size: 15px; color: var(--sm-text); }
.sm-contact-form .form-check-label a { color: var(--sm-gold); text-decoration: underline; cursor: pointer; }
.sm-contact-form .form-check-input:checked { background-color: var(--sm-gold); border-color: var(--sm-gold); }
.sm-contact-form .form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(42, 157, 143, .15); border-color: var(--sm-gold); }
.sm-contact-form button.button-1 { cursor: pointer; }
.sm-map .google-maps { height: 450px; filter: grayscale(.6); }

/* ======= Pagine di stato (grazie / 404) ======= */
.sm-state-page { min-height: 60vh; display: flex; align-items: center; }
.sm-state-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 26px;
  border-radius: 50%;
  background: var(--sm-gold);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
}
.sm-404-code { font-family: "Fraunces", "Fraunces Fallback", serif; font-size: 140px; line-height: 1; color: var(--sm-gold); margin-bottom: 20px; }


/* ======= Footer ======= */
.footer { background-color: var(--sm-navy-dark); }
.footer .top { padding: 90px 0 30px; }
.footer .top .item p { font-size: 16px; }
.footer .top .item p.sm-footer-registrations { font-size: 13px; line-height: 1.6; }
.sm-footer-title { color: #fff; font-size: 22px; margin-bottom: 22px; }
.sm-footer-list li { display: flex; gap: 12px; margin-bottom: 12px; color: #9db1b3; font-size: 16px; line-height: 1.55; }
.sm-footer-list i { color: var(--sm-gold); margin-top: 4px; }
.sm-footer-list a,
.sm-footer-list span { color: #9db1b3; }
.sm-footer-list a:hover { color: #fff; }
.sm-footer-hours p { color: #9db1b3; font-size: 16px; margin-bottom: 6px; }
.sm-footer-hours strong { color: #fff; font-weight: 500; }
.footer .bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; }
.footer .bottom .sm-copyright { margin: 10px 0; font-size: 13px; letter-spacing: .01em; color: rgba(255, 255, 255, .6); }
.footer .bottom .links ul li { font-size: 13px; margin: 8px 0 8px 20px; }
.footer .bottom .links ul li a { color: rgba(255, 255, 255, .75); }

/* Barra GDPR + logo Deltacommerce */
.sm-gdpr-bar { background: #000; padding: 1rem 0; }
.sm-gdpr-bar #cookies-manager-list-of-choices-made { color: #cfd2cb; font-size: .82rem; }
.sm-gdpr-bar #cookies-manager-list-of-choices-made img { width: 15px; height: 15px; max-width: none; vertical-align: -2px; margin-bottom: 0; }
@media (max-width: 991.98px) {
  #cookies-manager-list-of-choices-made div { display: inline-block !important; }
}

/* ======= Accento scuro dove serve contrasto ======= */
.button-1,
.navbar .navbar-right .button:hover,
.sm-pager .page-item.active .page-link { background-color: var(--sm-accent-dark); border-color: var(--sm-accent-dark); }
.button-2:hover { background-color: var(--sm-accent-dark); border-color: var(--sm-accent-dark); }
.sm-lead,
.sm-content a,
.sm-news-date,
.sm-contact-form .form-check-label a,
.section-title span { color: var(--sm-accent-dark) !important; }
.sm-lead { font-style: normal; }
.sm-hero .button-3:hover,
.button-3:hover { background-color: var(--sm-accent-dark); border-color: var(--sm-accent-dark); }

/* ==========================================================================
   Sezioni — linguaggio editoriale (coerente con la testata delle pagine)
   ========================================================================== */
:root { --sm-radius: 14px; --sm-ease: cubic-bezier(.19, 1, .22, 1); }

/* occhiello: filetto + maiuscoletto, senza cerchio con icona */
.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.section-subtitle .icon { display: none; }
.section-subtitle::before {
  content: "";
  width: 40px;
  height: 1px;
  background: currentColor;
}
.text-center > .section-subtitle { justify-content: center; }

/* titoli di sezione grandi, ultima parola in corsivo */
.section-title {
  font-size: clamp(34px, 4.2vw, 58px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.03em;
  margin-bottom: 24px;
}
.section-title .sm-w,
.section-title .sm-w > span { color: inherit !important; font-style: normal; }
.section-title em { font-style: italic; font-weight: 300; color: var(--sm-accent-dark); }
h1.section-title { color: var(--sm-navy) !important; }
.section-title.white em,
.section-title.text-white em,
.bg-darkbrown .section-title em { color: var(--sm-gold-light); }
.sm-split .sm-w {
  display: inline-block;
  overflow: hidden;
  padding-bottom: .1em;
  margin-bottom: -.1em;
  /* spazio extra ai lati: le lettere in corsivo sporgono oltre il riquadro e verrebbero tagliate */
  padding-right: .14em;
  margin-right: -.14em;
  padding-left: .04em;
  margin-left: -.04em;
  vertical-align: top;
}
.sm-split .sm-w > span { display: inline-block; }

/* animazioni allo scroll (classe is-in aggiunta da main.js) */
.js .sm-split .sm-w > span {
  transform: translateY(105%);
  transition: transform 1s var(--sm-ease);
  transition-delay: calc(var(--i) * 60ms);
}
.js .sm-split.is-in .sm-w > span { transform: none; }
.js .sm-reveal {
  clip-path: inset(100% 0 0 0 round var(--sm-radius));
  transform: scale(1.06);
  transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1), transform 1.8s var(--sm-ease);
}
.js .sm-reveal.is-in { clip-path: inset(0 0 0 0 round var(--sm-radius)); transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .sm-split .sm-w > span,
  .js .sm-reveal { transform: none; clip-path: none; transition: none; }
  .sm-marquee-track { animation: none !important; }
}

/* angoli più morbidi */
.sm-ratio-img,
.sm-team-card,
.sm-panel,
.contact-form.sm-contact-form,
.blog .item.sm-news-card { border-radius: var(--sm-radius); }
.sm-profile-img { border-radius: var(--sm-radius) var(--sm-radius) 0 0; }
.sm-profile-card { border-radius: 0 0 var(--sm-radius) var(--sm-radius); }

/* sfondo scuro con griglia sottile (come la testata) */
.sm-grid-bg { position: relative; overflow: hidden; }
.sm-grid-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: radial-gradient(70% 90% at 80% 20%, #000 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 90% at 80% 20%, #000 0%, transparent 100%);
  pointer-events: none;
}
.sm-grid-bg > .container { position: relative; z-index: 1; }
.bg-darkbrown.sm-grid-bg {
  background:
    radial-gradient(50% 70% at 90% 0%, rgba(42, 157, 143, .25) 0%, rgba(42, 157, 143, 0) 70%),
    var(--sm-navy);
}

/* ---- Punti di forza (home) ---- */
.sm-strengths { padding: 90px 0 70px; border-top: 0; }
.sm-strength {
  position: relative;
  height: calc(100% - 30px);
  margin-bottom: 30px;
  padding: 34px 32px 36px;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  background: #fff;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s, border-color .5s;
}
.sm-strength::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sm-navy);
  transform: translateY(101%);
  transition: transform .6s var(--sm-ease);
}
.sm-strength:hover { border-color: var(--sm-navy); }
.sm-strength:hover::before { transform: none; }
.sm-strength-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--sm-border);
  transition: border-color .5s;
}
.sm-strength-num { font-family: "Fraunces", "Fraunces Fallback", serif; font-style: italic; font-size: 18px; color: var(--sm-accent-dark); }
.sm-strength-icon { font-size: 30px; color: var(--sm-gold); transition: transform .6s var(--sm-ease); }
.sm-strength .sm-box-title { font-size: 25px; font-weight: 400; letter-spacing: -.02em; transition: color .5s; }
.sm-strength p { font-size: 16px; margin: 0; transition: color .5s; }
.sm-strength:hover .sm-strength-head { border-color: rgba(255, 255, 255, .15); }
.sm-strength:hover .sm-strength-num { color: var(--sm-gold-light); }
.sm-strength:hover .sm-strength-icon { transform: rotate(-12deg) scale(1.1); }
.sm-strength:hover .sm-box-title { color: #fff; }
.sm-strength:hover p { color: rgba(255, 255, 255, .78); }

/* ---- Aree di attività (home): tessere ---- */
/* griglia a righe uguali: tutti i box hanno la stessa altezza, anche su righe diverse */
.practice-areas .row .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 24px;
  margin: 0;
}
.practice-areas .row .row > div { display: flex; width: auto; max-width: none; padding: 0; margin: 0; }
.practice-areas .row .row > div > .item { flex: 1 1 auto; width: 100%; margin-bottom: 0; }
@media (max-width: 991.98px) {
  .practice-areas .row .row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
.practice-areas .item {
  min-height: 220px;
  padding: 26px 24px;
  border-radius: var(--sm-radius);
  border: 1px solid var(--sm-border);
  overflow: hidden;
}
.practice-areas .item a { align-items: flex-start; justify-content: space-between; position: relative; text-align: left; }
.practice-areas .item a > i:not(.sm-tile-arrow) { font-size: 34px; margin: 26px 0 14px; }
.sm-tile-num { font-family: "Fraunces", "Fraunces Fallback", serif; font-style: italic; font-size: 15px; color: var(--sm-accent-dark); transition: color .5s; }
.practice-areas .item .sm-tile-arrow {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 14px;
  margin: 0;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sm-border);
  border-radius: 50%;
  color: var(--sm-navy);
  transition: all .5s var(--sm-ease);
}
.practice-areas .item:hover .sm-tile-num { color: var(--sm-gold-light); }
.practice-areas .item:hover .sm-tile-arrow { background: var(--sm-gold); border-color: var(--sm-gold); color: #fff; transform: rotate(45deg); }
.sm-area-title { font-size: 20px; font-weight: 400; letter-spacing: -.01em; }

/* ---- News ---- */
.blog .item.sm-news-card {
  overflow: hidden;
  box-shadow: none;
  border: 1px solid var(--sm-border);
  transition: transform .5s var(--sm-ease), box-shadow .5s;
}
.blog .item.sm-news-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(14, 59, 67, .1); }
.sm-news-card .img { overflow: hidden; background: var(--sm-light); }
/* home: carosello a scorrimento nativo (3 news per volta su desktop, 2 su tablet, 1 da mobile) */
.sm-news-carousel {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding-top: 10px;
}
.sm-news-carousel::-webkit-scrollbar { display: none; }
.sm-news-carousel > div { flex-shrink: 0; scroll-snap-align: start; }
.sm-news-nav { display: flex; justify-content: center; align-items: center; gap: 12px; }
.sm-news-nav[hidden] { display: none; }
.sm-news-arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--sm-gold);
  border-radius: 50%;
  background: none;
  color: var(--sm-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .3s, color .3s, opacity .3s;
}
.sm-news-arrow:hover:not(:disabled) { background: var(--sm-gold); color: #fff; }
.sm-news-arrow:disabled { opacity: .35; cursor: default; }
.sm-news-dots { display: flex; justify-content: center; gap: 4px; }
.sm-news-dots button {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.sm-news-dots button::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid var(--sm-gold);
  transition: background .3s;
}
.sm-news-dots button[aria-current="true"]::before { background: var(--sm-gold); }
@media (max-width: 767.98px) {
  .sm-news-carousel > div { flex-basis: 100%; }
}
.sm-news-date {
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--sm-light);
  color: var(--sm-accent-dark);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .03em;
}
.sm-news-title { font-weight: 400; letter-spacing: -.015em; }

/* ---- Professionisti ---- */
.sm-team-img img { transition: transform 1.2s var(--sm-ease); }
.sm-team-card:hover .sm-team-img img { transform: scale(1.05); }
.sm-team-card { transition: transform .5s var(--sm-ease), box-shadow .5s, border-color .5s; }
.sm-team-name { font-weight: 400; letter-spacing: -.02em; }
.sm-panel-title { font-weight: 400; letter-spacing: -.02em; }

/* ---- Aree di attività (pagina) ---- */
.sm-area-num {
  display: block;
  margin-bottom: 4px;
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: clamp(64px, 7vw, 110px);
  font-weight: 300;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--sm-gold);
  letter-spacing: -.04em;
}
.sm-area-heading { font-size: clamp(30px, 3.4vw, 46px); }
.sm-area-badge { border-radius: var(--sm-radius); left: auto; right: 24px; }
.sm-area-nav a { font-size: 15px; }

/* ---- Contatti ---- */
/* recapiti affiancati in card di uguale altezza */
.info-box .item.sm-info-card {
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
  padding: 30px 28px 32px;
  background: #fff;
  border: 1px solid var(--sm-border);
  border-radius: var(--sm-radius);
  transition: border-color .4s, box-shadow .4s, transform .5s var(--sm-ease);
}
.info-box .item.sm-info-card:hover {
  border-color: var(--sm-gold);
  box-shadow: 0 20px 44px rgba(14, 59, 67, .08);
  transform: translateY(-4px);
}
.info-box .sm-info-card .icon {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  margin: 0 0 26px;
  border-radius: 50%;
  background: var(--sm-light);
  transition: background-color .4s, color .4s;
}
.info-box .sm-info-card:hover .icon { background: var(--sm-gold); color: #fff; }
.info-box .sm-info-card .sm-info-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sm-accent-dark);
}
.info-box .sm-info-card p,
.info-box .sm-info-card .sm-hours p { font-size: 16px; line-height: 1.6; }
.info-box .sm-info-card a { word-break: break-word; }
.sm-contact-row { margin-top: 50px; }
.contact-form.sm-contact-form { border-top: 1px solid var(--sm-border); }
.sm-form-title { font-weight: 400; letter-spacing: -.02em; text-align: left; }

/* ---- Call to action con fascia scorrevole ---- */
.sm-call { background: var(--sm-navy); }
.sm-marquee {
  overflow: hidden;
  padding: 22px 0;
  background: var(--sm-gold);
  color: #fff;
}
.sm-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: sm-marquee 40s linear infinite;
}
.sm-marquee-track span {
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: clamp(24px, 2.6vw, 36px);
  font-style: italic;
  font-weight: 300;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.sm-marquee-track > * { margin-right: 34px; }
/* separatore: piccolo rombo con il centro pieno */
.sm-marquee-sep {
  position: relative;
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  border: 1px solid rgba(255, 255, 255, .85);
  transform: rotate(45deg);
}
.sm-marquee-sep::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--sm-navy);
}
.sm-marquee:hover .sm-marquee-track { animation-play-state: paused; }
@keyframes sm-marquee { to { transform: translateX(-50%); } }
.sm-call-body {
  background:
    radial-gradient(50% 80% at 100% 100%, rgba(42, 157, 143, .25) 0%, rgba(42, 157, 143, 0) 70%),
    var(--sm-navy);
}
.sm-call .section-subtitle.text-white { color: var(--sm-gold-light) !important; }
.sm-call .section-title { margin-bottom: 18px; }
.sm-call-text { max-width: 560px; margin: 0; color: rgba(255, 255, 255, .78) !important; font-size: 18px !important; }
.sm-call-phone {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 22px;
  margin-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 300;
  letter-spacing: -.02em;
  color: #fff;
}
.sm-call-phone i { font-size: 22px; color: var(--sm-gold-light); }
.sm-call-phone:hover { color: var(--sm-gold-light); }
.sm-call-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 10px 10px 28px;
  border-radius: 999px;
  background: #fff;
  color: var(--sm-navy);
  font-size: 16px;
  font-weight: 500;
  transition: background-color .4s, color .4s;
}
.sm-call-button i {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--sm-accent-dark);
  color: #fff;
  font-size: 15px;
  transition: transform .5s var(--sm-ease);
}
.sm-call-button:hover { background: var(--sm-gold-light); color: var(--sm-navy); }
.sm-call-button:hover i { transform: rotate(45deg); }

/* il template imposta "a:hover { display: inline-block }": ripristina il display dei link flex anche in hover */
a.sm-call-button:hover,
a.sm-call-phone:hover { display: flex; }
a.sm-pagehead-scroll:hover,
a.sm-brand:hover,
a.sm-btn-block:hover { display: inline-flex; }
a.sm-team-img:hover { display: block; }

/* container più ampi da desktop (il template li ferma a 1220px) */
@media (min-width: 1200px) {
  .container { max-width: min(1600px, calc(100vw - 80px)) !important; }
}

/* ---- Lo studio: testo su due colonne + due immagini affiancate a tutta larghezza ---- */
@media (min-width: 992px) {
  .sm-columns { column-count: 2; column-gap: 72px; }
  .sm-columns > * { break-inside: avoid; }
  .sm-columns h2,
  .sm-columns h3 { break-after: avoid; }
  .sm-columns h2 { margin-top: 30px; }
}
/* home: testo su due colonne dentro la mezza riga accanto all'immagine; sotto i 1200px le colonne sarebbero troppo strette */
@media (min-width: 1200px) {
  .sm-columns-half { column-count: 2; column-gap: 40px; }
  .sm-columns-half > * { break-inside: avoid; }
  .sm-columns-half h2,
  .sm-columns-half h3 { break-after: avoid; }
  .sm-columns-half > *:first-child { margin-top: 0; }
}
/* lo studio, "I nostri partner": elenco puntato su due colonne da desktop (sotto i 1200px la mezza riga è troppo stretta) */
@media (min-width: 1200px) {
  .sm-list-columns ul { column-count: 2; column-gap: 40px; }
  .sm-list-columns ul li { break-inside: avoid; }
}
.sm-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 12px;
  margin-bottom: 12px;
}
.sm-duo-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--sm-radius);
  aspect-ratio: 4 / 3;
  max-height: 82vh;
  width: 100%;
}
.sm-duo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sm-duo-stat {
  position: absolute;
  left: 28px;
  bottom: 28px;
  z-index: 2;
  padding: 22px 26px;
  border-radius: var(--sm-radius);
  background: var(--sm-navy);
  color: #fff;
  box-shadow: 0 20px 40px rgba(8, 42, 48, .25);
}
.sm-duo-stat .number {
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--sm-gold-light);
}
.sm-duo-stat .txt {
  margin-top: 8px;
  font-family: "Fraunces", "Fraunces Fallback", serif;
  font-style: italic;
  font-size: 17px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .85);
}
@media (max-width: 767.98px) {
  .sm-duo { grid-template-columns: 1fr; gap: 10px; padding: 0 10px; margin-bottom: 10px; }
  .sm-duo-stat { left: 16px; bottom: 16px; padding: 16px 18px; }
  .sm-duo-stat .number { font-size: 40px; }
}

/* ======= Responsive ======= */
@media screen and (max-width: 991px) {
  .section-padding { padding: 80px 0; }
  .section-title { font-size: 34px; }
  .sm-area-heading { font-size: 30px; }
  .sm-pagehead { padding-top: 130px; }
  .sm-pagehead-crumbs .breadcrumb { margin-bottom: 40px; }
  .sm-pagehead-figure { max-height: 360px; max-width: 320px; margin-top: 36px; }
  .sm-pagehead-figure.sm-pagehead-figure-full { max-width: 100%; margin-bottom: 16px; }
  .sm-pagehead-figure.sm-pagehead-figure-full img { max-height: 360px; margin-left: 0; }
  .sm-pagehead-badge { display: none; }
  .sm-pagehead-bottom { margin-top: 40px; }
  .sm-pagehead-has-image .sm-pagehead-bottom { margin-top: 40px; }
  .sm-sticky { position: static; }
  .sm-area-row { padding: 40px 0; }
  .footer .bottom .links ul li { margin: 6px 20px 6px 0; }
  .call .section-title { font-size: 30px; }
}
@media screen and (max-width: 767px) {
  body, p { font-size: 16px; }
  .section-padding { padding: 64px 0; }
  .section-title { font-size: 30px; }
  .sm-content h2 { font-size: 26px; }
  .sm-content h3 { font-size: 21px; }
  .sm-content-lg p, .sm-content-lg li { font-size: 17px; }
  .sm-pagehead { padding-top: 115px; }
  .sm-pagehead-crumbs .breadcrumb { margin-bottom: 32px; padding: 6px 14px; font-size: 12px; }
  .sm-pagehead-title { letter-spacing: -.025em; }
  .sm-pagehead-subtitle { font-size: 17px !important; }
  .sm-pagehead-bottom { padding-bottom: 36px; }
  .sm-pagehead-scroll span { display: none; }
  .sm-pagehead-grid { background-size: 64px 64px; }
  .sm-panel { padding: 26px 22px; }
  .sm-panel-title { font-size: 24px; }
  .contact-form.sm-contact-form { padding: 30px 20px; }
  .sm-404-code { font-size: 100px; }
  .practice-areas .item { min-height: 170px; padding: 30px 10px; }
  .practice-areas .item i { font-size: 38px; }
  .sm-area-title { font-size: 16px; }
  .about .year-box { left: 16px; bottom: 16px; width: 140px; }
  .about .year-box.vert-move { min-width: 0; width: auto; max-width: 170px; padding: 16px 18px; }
  .about .year-box.vert-move .number { font-size: 44px; }
  .about .year-box.vert-move .txt { font-size: 14.5px; margin-top: 10px; padding-top: 10px; }
  .call-center .text a { font-size: 23px; }
  .sm-map .google-maps { height: 340px; }
}

/* ======= Animazioni d'ingresso (estratte da animate.css: solo gli effetti usati dal sito) ======= */
.animated {
  animation-duration: 1s;
  animation-fill-mode: both;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 40px, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translate3d(-50px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translate3d(50px, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}
.fadeInUp { animation-name: fadeInUp; }
.fadeInLeft { animation-name: fadeInLeft; }
.fadeInRight { animation-name: fadeInRight; }
.fadeOut { animation-name: fadeOut; }

/* privacy policy: il testo arriva via JS (cookie manager); lo spazio riservato evita che il footer si sposti */
[privacy-policy] { min-height: 100vh; display: flow-root; }

/* reCAPTCHA v3: badge nascosto (l'informativa obbligatoria è sotto il bottone del form contatti) */
html body .grecaptcha-badge,
html body .grecaptcha-badge iframe {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}
.sm-recaptcha-notice {
  margin: 20px 0 0;
  font-size: 11px;
  line-height: 1.5;
  opacity: .7;
}
.sm-recaptcha-notice a { text-decoration: underline; }

/* Logo su schermi stretti (testi lunghi) */
@media screen and (max-width: 420px) {
  .sm-logo { gap: 10px; }
  .sm-logo .sm-logo-small { font-size: 9px; letter-spacing: 2px; margin-bottom: 4px; }
  .sm-logo .sm-logo-big { font-size: 17px; }
}
