/* ==========================================================================
   Nicoletta Sartorato Architetto — foglio di stile unico
   Valori ricavati dal kit Elementor (post-441) e dai CSS di pagina originali.
   Breakpoint: tablet ≤ 1024px, mobile ≤ 767px (come Elementor).
   ========================================================================== */

/* ---------- Font locali (solo latin) ---------- */
@font-face { font-family: "Heebo"; src: url("/assets/fonts/heebo-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-latin-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Lato non ha il 600: come nell'originale il browser usa il 700 */
@font-face { font-family: "Lato"; src: url("/assets/fonts/lato-latin-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Roboto"; src: url("/assets/fonts/roboto-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("/assets/fonts/montserrat-latin-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("/assets/fonts/opensans-latin-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

/* ---------- Variabili ---------- */
:root {
  --c-primary: #181818;
  --c-secondary: #cc0000;
  --c-text: #666666;
  --c-text-2: #656565;
  --c-light: #f8f8f8;
  --c-white: #ffffff;
  --c-link: #cc3366;

  --f-heading: "Lato", sans-serif;
  --f-body: "Heebo", sans-serif;
  --f-accent: "Roboto", sans-serif;
  --f-hero: "Montserrat", sans-serif;
  --f-button: "Open Sans", sans-serif;

  --container: 1140px;
  --gap: 20px;           /* spaziatura tra widget */
  --header-h: 94px;
  --shadow-card: 0 5px 30px 0 rgba(0, 0, 0, .1);
  --shadow-soft: 0 5px 15px 0 rgba(0, 0, 0, .1);
  --ease-fast: .3s;
  --ease: .4s;
}
@media (max-width: 1024px) { :root { --container: 1024px; } }
@media (max-width: 767px)  { :root { --container: 767px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-text);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--c-link); text-decoration: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--f-heading); color: var(--c-primary); }
h1, h2 { font-weight: 600; line-height: 1; }
h3 { font-weight: 400; }
p { margin: 0 0 .9rem; }
ul { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; }

.icon { width: auto; height: 1em; fill: currentColor; flex: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; padding: 10px 16px; background: var(--c-white); color: var(--c-primary); }
.skip-link:focus { left: 10px; top: 10px; }
:focus-visible { outline: 2px solid var(--c-secondary); outline-offset: 2px; }

/* ---------- Pulsanti (kit) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 15px;
  font-family: var(--f-body); font-size: 14px; font-weight: 400; line-height: 1;
  text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--c-white); background: var(--c-primary);
  border: 1px solid var(--c-primary); border-radius: 0;
  padding: 18px 32px;
  transition: all var(--ease-fast);
}
.btn .icon { height: 16px; }
.btn--hero {
  font-family: var(--f-button); font-size: 16px; font-weight: 600;
  background: var(--c-secondary); border-color: var(--c-white);
  padding: 15px; box-shadow: 0 5px 54px 0 rgba(0, 0, 0, .39);
}

/* ---------- Liste con icona ---------- */
.icon-list a { display: flex; align-items: center; color: inherit; }
.icon-list .icon { width: 1.25em; font-size: 14px; color: var(--c-secondary); }
.icon-list span { padding-left: 5px; transition: color var(--ease-fast); }
.icon-list--inline { display: flex; flex-wrap: wrap; gap: 0 16px; }

/* ==========================================================================
   Header
   ========================================================================== */
.topbar {
  background: var(--c-primary);
  border-bottom: 1px solid #ffffff14;
  padding: 10px 0;
  position: relative; z-index: 2;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 41px; padding-inline: 10px; }
.topbar .icon-list { font-size: 12px; line-height: 18px; letter-spacing: .5px; color: var(--c-white); }

.site-header { position: sticky; top: 0; z-index: 10; background: var(--c-primary); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.site-header__logo { flex: 0 0 30.439%; padding-left: 10px; }
.site-header__logo img { width: 100%; }

.main-nav { flex: 0 0 69.561%; padding-right: 10px; height: 100%; }
.main-nav ul { display: flex; justify-content: flex-end; height: 100%; }
.main-nav li a {
  display: flex; align-items: center; height: 100%;
  padding-left: 40px;
  font-family: var(--f-heading); font-size: 12px; font-weight: 400; line-height: 18px;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--c-white);
  transition: color var(--ease);
}
.main-nav li a[aria-current="page"] { color: var(--c-secondary); }
.main-nav__identity, .menu-toggle, .menu-overlay { display: none; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--c-primary); padding: 40px 0 20px; }
.site-footer__main { width: 50%; margin-top: 10px; padding: 10px 60px 10px 10px; color: var(--c-light); }
.site-footer__logo { display: block; margin: 0 0 var(--gap) -11px; }
.site-footer__logo img { width: 63%; }
.site-footer__contacts { margin-bottom: var(--gap); font-size: 16px; line-height: 1.5; }
.site-footer__contacts li + li { margin-top: 10px; }
.site-footer__contacts .icon { position: relative; top: 0; }
.social { display: flex; margin: 0 0 0 -5px; }
.social a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin: 5px; border-radius: 50%;
  background: var(--c-primary); color: var(--c-white);
  transition: background-color var(--ease);
}
.social .icon { height: 14px; }
.site-footer__divider { width: 98%; margin: 40px auto var(--gap); border: 0; border-top: 1px solid #a0aaba2b; padding: 2px 0; box-sizing: content-box; height: 0; }
.site-footer__copy { width: auto; margin: 0 10px 0 auto; padding-top: 10px; text-align: right; font-size: 14px; line-height: 21px; margin-bottom: 24.4px; }
.site-footer__copy a { color: var(--c-secondary); transition: color var(--ease-fast); }

/* ==========================================================================
   Forme divisorie (shape divider Elementor)
   ========================================================================== */
.shape { position: absolute; left: 0; width: 100%; overflow: hidden; line-height: 0; direction: ltr; pointer-events: none; }
.shape svg { display: block; position: relative; left: 50%; transform: translateX(-50%); width: calc(100% + 1.3px); height: auto; fill: var(--c-white); }
.shape--top { top: -1px; }
.shape--bottom { bottom: -1px; transform: rotate(180deg); }
.shape--curve-top svg { width: calc(103% + 1.3px); height: 47px; }
.shape--curve-bottom svg { height: 44px; }
.shape svg[viewBox="0 0 2600 131.1"] { aspect-ratio: 2600 / 131.1; }

/* ==========================================================================
   Home
   ========================================================================== */
/* Hero */
.hero {
  background: url("/assets/img/hero-rothko-rosso-1212.webp") bottom center / cover no-repeat;
  padding: 150px 0;
}
.hero__inner { display: flex; min-height: 223px; }
.hero__left { flex: 0 0 50.14%; display: flex; align-items: center; }
.hero__social { width: 15.112%; display: flex; justify-content: center; padding: 10px; }
.hero__social a { display: flex; padding: .2em; font-size: 30px; color: var(--c-light); transition: color var(--ease-fast), transform var(--ease-fast); }
.hero__social .icon { width: 1em; }
.hero__content { flex: 0 0 49.86%; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero h1 {
  position: relative; z-index: 5;
  margin-bottom: var(--gap);
  font-family: var(--f-hero); font-size: 50px; font-weight: 700; line-height: 80px;
  color: var(--c-white); text-shadow: 0 0 10px #000;
}

/* Benvenuto */
.welcome { padding: 100px 0; }
.welcome__inner { display: flex; }
.welcome__media { flex: 0 0 49.912%; display: flex; align-items: center; justify-content: center; padding: 10px; }
.welcome__media img { width: 100%; }
.welcome__col { flex: 0 0 50.088%; padding: 10px; }
.welcome__card {
  position: relative;
  width: 100%;
  margin: 40px 0 0 -60px;
  padding: 60px;
  background: var(--c-white);
  box-shadow: var(--shadow-card);
}
.kicker {
  margin: 0 0 var(--gap);
  font-family: var(--f-heading); font-size: 18px; font-weight: 600; line-height: 1;
  text-transform: uppercase; letter-spacing: 2px; color: var(--c-secondary);
}
.welcome__title { margin-bottom: var(--gap); font-size: 42px; line-height: 1.3; text-transform: uppercase; letter-spacing: 1px; }
.welcome__text { font-size: 16px; line-height: 26px; color: var(--c-text); }
.welcome__text p:last-child { margin-bottom: 0; }

/* Servizi */
.services { position: relative; background: var(--c-primary); padding: 100px 0 50px; }
.services__grid { display: flex; padding-top: 70px; }
.service-box {
  position: relative; overflow: hidden;
  flex: 0 0 auto; width: 360px;
  padding: 40px;
  background: var(--c-white) center / cover no-repeat;
  transition: all var(--ease) ease;
}
.service-box:nth-child(1) { margin-left: 10px; }
.service-box:nth-child(2) { margin-left: 30px; }
.service-box:nth-child(3) { margin-left: 10px; }
/* overlay che entra da sinistra al passaggio del mouse (hover_from_left) */
.service-box::before {
  content: ""; position: absolute; top: 0; left: -101%; width: 100%; height: 100%;
  background-color: #181818bf;
  transition: all .6s ease;
}
.service-box__icon, .service-box h3 { position: relative; z-index: 2; }
.service-box__icon { display: block; font-size: 40px; height: 60px; width: auto; padding: 10px 0; margin: 0 20px 20px 0; color: var(--c-secondary); transition: all var(--ease); }
.service-box h3 { margin: 0 0 16px; font-size: 24px; font-weight: 600; line-height: 1.2; color: #000; transition: all var(--ease) ease; }

/* Fasce decorative */
.band { position: relative; height: 140px; background: var(--c-primary); }
.spacer-70 { height: 70px; }
.panels { position: relative; height: 417px; background: url("/assets/img/fascia-tavole-di-progetto-2560.webp") center center no-repeat; }

/* Chi sono */
.about { padding: 90px 0 100px; background: var(--c-white); }
.about__inner { display: flex; align-items: center; }
.about__text { flex: 0 0 72.63%; padding: 10px 40px 10px 10px; margin-right: 7.456%; }
.about__text h2 { margin-bottom: var(--gap); font-size: 32px; letter-spacing: 1px; text-transform: uppercase; }
.about__text p { margin: 0; font-family: var(--f-accent); font-size: 16px; font-weight: 300; line-height: 26px; color: var(--c-text-2); }
.profile { flex: 0 0 auto; width: calc(19.55% - 15px); margin-left: 15px; padding-top: 10px; }
.profile__image { position: relative; overflow: hidden; z-index: 2; margin-bottom: var(--gap); }
.profile__image img { width: 100%; }
.profile__image::before {
  content: ""; position: absolute; top: 100%; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, .7); opacity: 0; visibility: hidden; z-index: 1;
  transition: all .4s ease .2s;
}
.profile__hover {
  position: absolute; top: 50%; left: 0; width: 100%; z-index: 2;
  display: flex; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(-20%);
  transition: all .3s ease;
}
.profile__hover a {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--c-secondary); color: var(--c-white);
  transition: background-color var(--ease);
}
.profile__hover .icon { height: 14px; }
.profile__image:focus-within::before { top: 0; opacity: 1; visibility: visible; transition: all .4s ease 0s; }
.profile__image:focus-within .profile__hover { opacity: 1; visibility: visible; transform: translateY(-50%); transition: all .3s ease .1s; }
.profile__card {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center;
  margin-top: -40px; padding: 20px 0;
  background: var(--c-white); box-shadow: var(--shadow-soft);
  text-align: center;
}
.profile__name { margin-bottom: calc(var(--gap) + 14.4px); font-family: var(--f-heading); font-size: 18px; font-weight: 600; line-height: 27px; color: var(--c-primary); }
.profile__role { margin-top: -10px; padding-bottom: 14.4px; font-size: 16px; line-height: 24px; color: var(--c-text); }

/* ==========================================================================
   Pagine interne: hero con titolo (scorre sotto l'header come nell'originale)
   ========================================================================== */
.page-hero {
  position: relative; z-index: 1;
  margin-top: -143px;
  padding: 380px 0 100px;
  background: center / cover no-repeat;
}
.page-hero .container { padding: 10px; }
.page-hero h1 {
  font-size: 48px; line-height: 1; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--c-white); text-shadow: 0 0 10px #000;
}
.page-hero--portfolio { background-image: url("/assets/img/hero-portfolio-1200.webp"); background-position: 0 38%; }
/* nell'originale un titolo di pagina nascosto (48px + margini) spinge l'hero 72px più in basso */
.page-hero--contatti { margin-top: -71px; background-image: url("/assets/img/hero-contatti-via-baracca-treviso-1330.webp"); background-position: 0 20%; }

/* ==========================================================================
   Pagine legali (Privacy Policy, Cookie Policy) — come la privacy originale
   ========================================================================== */
.legal { padding: 60px 0 70px; }
.legal .container { padding: 0 10px; }
.legal h1 { margin-bottom: 20px; font-size: 32px; font-weight: 700; }
.legal__text { padding-top: 10px; }
.legal__text h2 { margin: 8px 0 16px; font-family: var(--f-body); font-size: 24px; font-weight: 500; line-height: 1.2; color: var(--c-text); }
.legal__text a { color: var(--c-secondary); }
.legal__text ul, .legal__text ol { margin: 0 0 .9rem; padding-left: 40px; }
.legal__text ul { list-style: disc; }
.legal__text ol.legal__alpha { list-style: lower-alpha; }
.legal__text ol ol { margin: 0; list-style: decimal; }
.legal__text li { margin-bottom: 4px; }
.legal__text strong { font-weight: 500; color: var(--c-primary); }
.legal__updated { margin-top: 30px; }
/* testo generato dallo script della Cookie Policy di CookieYes */
.legal--cookieyes .legal__text { padding-top: 0; }
.legal__text h1 { margin-bottom: 30px; font-size: 32px; font-weight: 700; }
.legal__text .cky-banner-element {
  display: inline-flex; margin: 10px 0 20px; padding: 18px 32px;
  font: 400 14px/1 var(--f-body); text-transform: uppercase; letter-spacing: 1.2px;
  color: var(--c-white); background: var(--c-secondary); border: 1px solid var(--c-secondary); border-radius: 0; cursor: pointer;
  transition: all var(--ease-fast);
}
.legal__text table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: 14px; }
.legal__text th, .legal__text td { padding: 8px 10px; border: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.legal__text h3, .legal__text h4 { margin: 8px 0 16px; font-family: var(--f-body); font-weight: 500; color: var(--c-text); }

/* Pagina 404 */
.not-found { padding: 120px 0 140px; text-align: center; }
.not-found .container { padding: 0 20px; }
.not-found h1 { margin-bottom: var(--gap); font-size: 42px; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; }
.not-found p:not(.kicker) { margin-bottom: 40px; }
@media (max-width: 767px) { .not-found { padding: 80px 0 100px; } .not-found h1 { font-size: 28px; } }

/* ==========================================================================
   Contatti
   ========================================================================== */
.contact { padding: 100px 0 40px; }
.contact__col { width: 50%; padding: 10px 0 10px 10px; }
.contact h2 { margin-bottom: var(--gap); font-size: 30px; letter-spacing: 1px; text-transform: uppercase; }
.contact__divider { width: 5%; margin: 0 0 var(--gap); padding: 15px 0; border: 0; box-sizing: content-box; height: 1px; background: #000 content-box; }
.contact address { font-style: normal; }
.contact__list { font-size: 16px; line-height: 1.5; color: var(--c-text); }
.contact__list li + li { margin-top: 10px; }

.map { position: relative; height: 450px; background: #e9e9e9; }
.map iframe { display: block; width: 100%; height: 450px; border: 0; filter: saturate(0); }
.map__placeholder {
  height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px; text-align: center; color: var(--c-primary);
}
.map__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin: 10px 0 0; }
.map__actions a { color: var(--c-primary); text-decoration: underline; }
.map.is-loaded .map__placeholder { display: none; }
.btn--light { background: var(--c-secondary); border-color: var(--c-secondary); cursor: pointer; }

.spacer-110 { height: 110px; }

/* ==========================================================================
   Progetti: galleria masonry filtrabile + lightbox
   ========================================================================== */
.portfolio { padding-top: 100px; }
.portfolio__head { position: relative; text-align: center; margin-bottom: 90px; }
.ghost-title {
  position: absolute; top: -42px; left: -13px; width: 100%;
  font-family: var(--f-heading); font-size: 100px; font-weight: 600; line-height: 1;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--c-white); text-shadow: 0 0 1px rgba(0, 0, 0, .3);
  pointer-events: none; user-select: none;
}
.portfolio__head h2 { position: relative; z-index: 2; font-size: 32px; letter-spacing: 1px; text-transform: uppercase; }

.gallery { max-width: 1600px; margin-inline: auto; --gallery-duration: 350ms; }
/* filtri a riquadro: bordo sottile, maiuscoletto come il menu; attivo pieno rosso */
.gallery__filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  max-width: var(--container); margin: 0 auto 40px; padding: 0 10px;
}
.gallery__filter {
  padding: 11px 18px;
  background: var(--c-white); border: 1px solid #dcdcdc; border-radius: 0; cursor: pointer;
  font-family: var(--f-heading); font-size: 12px; font-weight: 400; line-height: 16px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--c-primary);
  transition: color .3s, background-color .3s, border-color .3s;
}
.gallery__filter[aria-pressed="true"] { background: var(--c-secondary); border-color: var(--c-secondary); color: var(--c-white); }

/* senza JS: griglia semplice a 3/2/1 colonne */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.gallery__item a { display: block; overflow: hidden; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; }
/* con JS: masonry a posizioni assolute come e-gallery (colonna più corta) */
.gallery.is-masonry .gallery__grid { display: block; position: relative; transition: height var(--gallery-duration); }
.gallery.is-masonry .gallery__item {
  position: absolute; top: 0; left: 0;
  transition-property: all; transition-duration: var(--gallery-duration);
}
.gallery.is-masonry .gallery__item.is-hidden { transform: scale3d(0, 0, 0); opacity: 0; pointer-events: none; }
.gallery.is-masonry .gallery__item img { transition: var(--gallery-duration); transform-origin: center top; }
.gallery.is-masonry .gallery__item img:not(.is-loaded) { opacity: 0; transform: scale(.5); }

.lightbox {
  --lb-ui: hsla(0, 0%, 93%, .9);
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, .8);
  user-select: none;
}
.lightbox[hidden] { display: none; }
.lightbox__header {
  position: absolute; top: 0; left: 0; z-index: 10; width: 100%;
  display: flex; align-items: center; justify-content: flex-end;
  padding: 15px 2.6em 15px 1em;
  font-size: 20px; color: var(--lb-ui);
  transition: .3s;
}
.lightbox__counter { margin-right: auto; font-size: .75em; }
.lightbox__btn {
  display: flex; margin: 0 .35em; padding: .25em;
  background: none; border: 0; cursor: pointer;
  font-size: 20px; color: var(--lb-ui); transition: all .3s;
}
.lightbox__btn .icon { width: 1em; }
.lightbox__close { position: absolute; top: 0; right: .75em; z-index: 11; margin: 13px 0 0; }
.lb-icon-zoom-out, .lb-icon-minimize, .lightbox.is-zoom .lb-icon-zoom-in, .lightbox.is-fullscreen .lb-icon-expand { display: none; }
.lightbox.is-zoom .lb-icon-zoom-out, .lightbox.is-fullscreen .lb-icon-minimize { display: block; }
.lightbox.is-zoom .lightbox__header { background: rgba(0, 0, 0, .5); }
.lightbox__share { position: relative; }
.lightbox__share-menu {
  position: absolute; top: 100%; right: 0; min-width: 220px; padding: 10px 0;
  background: var(--c-white); box-shadow: 0 5px 15px rgba(0, 0, 0, .2);
}
.lightbox__share-menu a { display: block; padding: 8px 16px; font-size: 14px; color: var(--c-primary); cursor: pointer; }
.lightbox__nav {
  position: absolute; top: 0; z-index: 5; height: 100%; width: 15%;
  display: flex; align-items: center; justify-content: center;
  background: none; border: 0; cursor: pointer;
  font-size: 25px; color: var(--lb-ui); transition: all .3s;
}
.lightbox__nav .icon { width: 1em; }
.lightbox__nav--prev { left: 0; }
.lightbox__nav--next { right: 0; }
.lightbox__stage {
  display: flex; align-items: center; justify-content: center;
  height: 100%; padding: 70px; overflow: hidden;
}
.lightbox__image {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  border-radius: 2px; box-shadow: 0 0 30px rgba(0, 0, 0, .3), 0 0 8px -5px rgba(0, 0, 0, .3);
  transition: transform .3s;
}
.lightbox.is-zoom .lightbox__image { cursor: move; }
html.lightbox-open { overflow: hidden; }

/* ==========================================================================
   Hover: solo con mouse
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--c-white); color: var(--c-primary); }
  .btn--hero:hover { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }
  .main-nav li a:hover { color: var(--c-secondary); }
  .site-footer__contacts a:hover span { color: var(--c-secondary); }
  .social a:hover { background: var(--c-secondary); }
  .site-footer__copy a:hover { color: var(--c-white); }
  .hover-shrink:hover { transform: scale(.9); color: var(--c-primary); }

  .service-box::before, .service-box:hover::before { will-change: left; }
  .service-box:hover::before { left: 0; }
  .service-box:hover h3, .service-box:hover .service-box__icon { color: var(--c-white); }
  .service-box--residenziale:hover { background-image: url("/assets/img/residenziale-loft-800.webp"); }
  .service-box--commerciale:hover { background-image: url("/assets/img/commerciale-lounge-bar-4bajo0-800.webp"); }
  .service-box--concorsi:hover { background-image: url("/assets/img/concorsi-progetto-800.webp"); }

  .profile__image:hover::before { top: 0; opacity: 1; visibility: visible; transition: all .4s ease 0s; }
  .profile__image:hover .profile__hover { opacity: 1; visibility: visible; transform: translateY(-50%); transition: all .3s ease .1s; }
  .profile__hover a:hover { background: var(--c-primary); }

  .lightbox__btn:hover, .lightbox__nav:hover { color: var(--c-white); }
  .lightbox__share-menu a:hover { color: var(--c-secondary); }

  .contact__list a:hover span { color: var(--c-secondary); }
  .gallery__filter:hover { border-color: var(--c-secondary); color: var(--c-secondary); }
  .gallery__filter[aria-pressed="true"]:hover { color: var(--c-white); }
  .map__actions a:hover { color: var(--c-secondary); }
  .btn--light:hover, .legal__text .cky-banner-element:hover { background: var(--c-primary); color: var(--c-white); border-color: var(--c-primary); }
}

/* ==========================================================================
   Animazioni d'ingresso (Elementor: durata 1.25s, attivate allo scroll)
   ========================================================================== */
.js [data-anim] { visibility: hidden; }
.js [data-anim].is-animated { visibility: visible; animation-duration: 1.25s; animation-fill-mode: both; }
.js [data-anim="fadeInDown"].is-animated { animation-name: fadeInDown; }
.js [data-anim="fadeInLeft"].is-animated { animation-name: fadeInLeft; }
.js [data-anim="slideInLeft"].is-animated { animation-name: slideInLeft; }
@keyframes fadeInDown { from { opacity: 0; transform: translate3d(0, -100%, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeInLeft { from { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes slideInLeft { from { transform: translate3d(-100%, 0, 0); visibility: visible; } to { transform: translate3d(0, 0, 0); } }

@media (prefers-reduced-motion: reduce) {
  .js [data-anim] { visibility: visible; }
  .js [data-anim].is-animated { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Tablet ≤ 1024px
   ========================================================================== */
@media (max-width: 1024px) {
  .topbar { padding: 10px; }
  .topbar__inner > :first-child { flex: 0 0 70%; }
  .topbar__inner > :last-child { flex: 0 0 30%; justify-content: flex-end; }

  .site-header { padding: 20px 10px; }
  .site-header__inner { height: auto; min-height: 48px; }
  .site-header__logo { flex-basis: 30%; }
  .site-header__logo img { width: 50%; }

  /* menu a scomparsa (ElementsKit offcanvas) */
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 50px; padding: 8px; margin-right: 10px;
    background: var(--c-white); border: 0; border-radius: 0; cursor: pointer;
    color: var(--c-secondary); font-size: 24px;
  }
  .main-nav {
    position: fixed; top: 0; left: -100vw; z-index: 20;
    display: flex; flex-direction: column;
    width: 100%; max-width: 350px; height: 100%; padding: 0 0 10px;
    overflow-y: auto; background: var(--c-white);
    transition: left .6s cubic-bezier(.6, .1, .68, .53);
  }
  .main-nav.is-open { left: 0; }
  .main-nav__identity { display: flex; justify-content: space-between; align-items: flex-start; min-height: 110px; padding: 20px; }
  .main-nav__identity a { display: block; margin: 15px 0 5px; padding: 5px; }
  .main-nav__identity img { width: 230px; max-width: 100%; height: auto; }
  .main-nav__identity a { flex: 0 1 auto; min-width: 0; }
  .menu-close {
    display: flex; align-items: center; justify-content: center;
    width: 45px; padding: 8px; margin: 15px;
    background: var(--c-primary); color: var(--c-white);
    border: 1px solid var(--c-primary); border-radius: 0; cursor: pointer; font-size: 16px;
    transition: all .4s ease-in;
  }
  .main-nav ul { flex-direction: column; justify-content: flex-start; height: auto; }
  .main-nav li a { height: auto; padding: 10px 30px 15px; color: #000; }
  .menu-overlay {
    display: block; position: fixed; inset: 0 auto 0 -100%; z-index: 14;
    width: 100%; background: rgba(51, 51, 51, .5);
    transition: all .6s cubic-bezier(.6, .1, .68, .53) .4s;
  }
  .menu-overlay.is-open { left: 0; transition: all .6s cubic-bezier(.22, .61, .24, 1) 0s; }

  .site-footer > .container { padding: 0 10px; }
  .site-footer__contacts { font-size: 14px; }

  .hero__left { padding: 20px; }
  .hero__content { padding: 0 20px; }
  .hero h1 { font-size: 40px; line-height: 50px; }

  .welcome { padding: 60px 10px; }
  .welcome__media, .welcome__col { flex-basis: 50%; }
  .welcome__col { padding: 0; }
  .welcome__card { margin: 40px 0 0 -40px; padding: 40px; }
  /* a capo del testo originale (incollato da PDF): sugli schermi stretti il testo scorre libero */
  .welcome__text br { display: none; }
  .welcome__text p { display: inline; }
  .welcome__title { font-size: 32px; }

  .services { padding-top: 80px; }
  .services__grid { gap: 0; }
  .service-box { width: auto; flex: 1 1 0; padding: 20px; }
  .service-box h3 { font-size: 20px; }

  .about { padding: 60px 10px; }
  .about__inner { flex-wrap: wrap; }
  .about__text { flex-basis: 100%; margin-right: 0; }
  .profile { width: 50%; margin: 40px 15px 0 0; }
  .profile__card { margin-top: -80px; }

  .page-hero { padding: 250px 10px 60px; }
  .page-hero--portfolio, .page-hero--contatti { background-position: 0 0; }
  .contact { padding: 60px 10px 40px; }
  .contact__list { font-size: 14px; }
  .page-hero h1 { font-size: 40px; }
  .ghost-title { left: -3px; }
  .gallery__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (hover: hover) and (pointer: fine) and (max-width: 1024px) {
  .menu-close:hover { background: var(--c-white); color: #000; }
  .main-nav li a:hover { color: var(--c-secondary); }
}

/* ==========================================================================
   Mobile ≤ 767px
   ========================================================================== */
@media (max-width: 767px) {
  .topbar { display: none; }

  .site-header__logo { flex-basis: 50%; }
  .site-header__logo img { width: 100%; }
  .menu-toggle { font-size: 20px; }

  .site-footer { padding: 0 0 20px; }
  .site-footer > .container { padding: 0 10px; }
  .site-footer__main { width: 100%; margin-top: 0; padding: 27px; }
  .site-footer__logo { margin: 0 0 var(--gap); }
  .site-footer__logo img { width: 100%; }
  .social { justify-content: center; margin: 0 0 var(--gap); }
  .site-footer__divider { margin-top: 40px; }
  .site-footer__copy { width: auto; margin: 0 10px 24.4px; padding-top: 12px; text-align: center; }

  .hero { background-image: url("/assets/img/hero-rothko-rosso-800.webp"); }
  .hero__inner { flex-direction: column; }
  .hero__left { flex-basis: auto; min-height: 61px; }
  .hero__social { display: none; }

  .welcome { padding: 40px 0; }
  .welcome__inner { flex-direction: column; }
  .welcome__card { margin: 0; padding: 40px 20px; text-align: center; }
  .kicker { font-size: 16px; }
  .welcome__title { font-size: 24px; }
  .welcome__text { padding: 0 10px; font-size: 14px; }

  .services { padding: 40px 10px 90px; }
  .services__grid { flex-direction: column; }
  .service-box { flex: none; width: 100%; margin: 20px 0 0 !important; padding: 20px 40px 20px 20px; }
  .service-box:first-child { margin-top: 40px !important; }

  .about { padding: 40px 10px; }
  .about__inner { flex-direction: column; align-items: stretch; }
  .about__text { padding: 0; text-align: center; }
  .about__text h2 { font-size: 24px; }
  .about__text p { font-size: 14px; }
  .profile { width: 240px; max-width: 100%; margin: 30px auto 0; }
  .profile__card { margin-top: -40px; }
  .profile__role { font-size: 14px; line-height: 21px; }

  .page-hero { padding: 200px 10px 100px; }
  .page-hero h1 { font-size: 28px; text-align: center; }
  .page-hero--contatti { background-position: center center; background-image: url("/assets/img/hero-contatti-via-baracca-treviso-800.webp"); }
  .page-hero--portfolio { background-image: url("/assets/img/hero-portfolio-800.webp"); }
  .legal h1 { font-size: 26px; }
  .legal__text h2 { font-size: 20px; }
  .legal__text ul, .legal__text ol { padding-left: 24px; }
  .legal__text table { display: block; overflow-x: auto; }
  .contact { padding: 40px 10px 0; }
  .contact__col { width: 100%; }
  .contact h2 { font-size: 24px; text-align: center; }
  .portfolio { padding-top: 40px; }
  .portfolio__head h2 { font-size: 24px; }
  .ghost-title { display: none; }
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__filters { gap: 8px; margin-bottom: 30px; }
  .gallery__filter { padding: 9px 12px; font-size: 11px; letter-spacing: .8px; }
  .lightbox__stage { padding: 70px 0; }
  .lightbox__nav { width: 20%; }
  .lightbox__nav--prev { justify-content: flex-start; }
  .lightbox__nav--next { justify-content: flex-end; }
  .lightbox__nav .icon { box-sizing: content-box; padding: 10px; background: rgba(0, 0, 0, .5); }
}
