@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --font-family: 'Montserrat', sans-serif;
  --color--foreground: #333333;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-bg-hover: rgba(232, 227, 213, 0.73);
  --color-shadow: rgba(0, 0, 0, 0.5);
  --color-gradient-start: rgba(0, 0, 0, 0.1);
  --color-gradient-end: transparent;
  --color-dot-bg: rgba(255, 255, 255, 0.5);
  --color-backdrop: rgba(0, 0, 0, 0.4);
  --color-breadcrumb-bg: #f8f8f8;
  --color-breadcrumb: #555555;
  --color-breadcrumb-hover: #000000;
  --colore-selezione: #ffcc00;
  --sfumatura-outline: rgba(255, 204, 0, 0.6);
  --breadcrumb-separator: "\203A";
  --border-color: #000000;
  --margin: 10px;
}

*::selection {
  background-color: var(--colore-selezione);
  color: var(--color-black);
}

*::-moz-selection {
  background-color: var(--colore-selezione);
  color: var(--color-black);
}

/* Disabilita outline di focus su TUTTI gli elementi */
:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px var(--sfumatura-outline);

}

/* Rimuove il bordo interno di Firefox sui button */
button::-moz-focus-inner {
  border: 0;
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.6);
}

/* 2) Disabilita il tap‐highlight blu sui dispositivi touch WebKit */
/* ——————————————————————————————————————————————————————— */
html,
body,
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

/* In Chrome Desktop/Edge puoi anche disabilitare la "focus ring" nativa */
/* (non sempre serve, ma per sicurezza) */
:focus {
  -webkit-focus-ring-color: transparent;
  -moz-focusring-color: transparent;
  /* solo se supportato */
}

/* Reset di base */
* {
  /* border: 1px solid var(--border-color); */
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

/* Global font */
body,
html {
  height: 100%;
  font-family: var(--font-family);
  margin: 0 auto;
}

body.boxed {
  max-width: 1200px;
}

/* Exclude icon font family */
.bx {
  font-family: 'boxicons' !important;
  font-size: 26px;
}

/* HEADER E SLIDER */
header.home {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: cover;
}

.slider-container {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  transition: transform 1s ease;
  z-index: 1;
}

/* CONTROLLI SLIDER */
.slider-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 15;
  pointer-events: none;
}

.slider-controls .arrow {
  pointer-events: auto;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-backdrop);
  border: none;
  color: var(--color-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.slider-controls .arrow.left {
  left: -5rem;
  transition: left .4s linear(0 0%, 0.22 2.1%, 0.86 6.5%, 1.11 8.6%, 1.3 10.7%, 1.35 11.8%, 1.37 12.9%, 1.37 13.7%, 1.36 14.5%, 1.32 16.2%, 1.03 21.8%, 0.94 24%, 0.89 25.9%, 0.88 26.85%, 0.87 27.8%, 0.87 29.25%, 0.88 30.7%, 0.91 32.4%, 0.98 36.4%, 1.01 38.3%, 1.04 40.5%, 1.05 42.7%, 1.05 44.1%, 1.04 45.7%, 1 53.3%, 0.99 55.4%, 0.98 57.5%, 0.99 60.7%, 1 68.1%, 1.01 72.2%, 1 86.7%, 1 100%);
}

.slider-controls .arrow.right {
  right: -5rem;
  transition: right .4s linear(0 0%, 0.22 2.1%, 0.86 6.5%, 1.11 8.6%, 1.3 10.7%, 1.35 11.8%, 1.37 12.9%, 1.37 13.7%, 1.36 14.5%, 1.32 16.2%, 1.03 21.8%, 0.94 24%, 0.89 25.9%, 0.88 26.85%, 0.87 27.8%, 0.87 29.25%, 0.88 30.7%, 0.91 32.4%, 0.98 36.4%, 1.01 38.3%, 1.04 40.5%, 1.05 42.7%, 1.05 44.1%, 1.04 45.7%, 1 53.3%, 0.99 55.4%, 0.98 57.5%, 0.99 60.7%, 1 68.1%, 1.01 72.2%, 1 86.7%, 1 100%);
}

.slider-controls .dots {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  pointer-events: auto;
}

.slider-controls .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-dot-bg);
  cursor: pointer;
}

.slider-controls .dot.active {
  background: var(--color-white);
}

/* CONTENUTO  */
.content {
  height: fit-content;
  min-height: 500px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* FOOTER */

.site-footer {
  background: var(--color-breadcrumb-bg);
  font-family: var(--font-family);
  color: var(--color--foreground);
  position: relative;
  /* padding-bottom: 4rem; */
}

/* Container generali */
.site-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  justify-content: center;
}

/* Collapsible columns */
.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.footer-column {
  /* background: var(--color-white); */
  border-radius: 4px;
  overflow: hidden;
}

/* Trigger header */
.collapsible-trigger {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem;
  font-size: 1rem;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.collapsible-trigger i {
  transition: transform 0.3s ease;
}

/* Contenuto */
.collapsible-content {
  list-style: none;
  margin: 0;
  max-height: 0;
  padding: 0 1rem 1rem;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.1s ease-in, opacity .1s ease;
}

@media (max-width: 470px) {
  .collapsible-content {
    opacity: 0;
    padding: 0;
  }
}

.collapsible-content li {
  margin-bottom: 0.5rem;
}

.collapsible-content li a {
  color: var(--color--foreground);
  text-decoration: none;
}

.collapsible-content li a:hover {
  color: var(--color-breadcrumb-hover);
}

/* Aperto */
.footer-column.open .collapsible-trigger i {
  transform: rotate(180deg);
}

.footer-column.open .collapsible-content {
  max-height: 500px;
  /* sufficiente per mostrare tutti gli item */
}

.footer-column.open .collapsible-content {
  padding: 0 1rem 1rem;
  opacity: 1;
}

/* Social icons centro mobile/desktop */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 0;
}

.footer-social a {
  color: var(--color--foreground);
  font-size: 1.5rem;
}

.footer-social a:hover {
  color: var(--color-breadcrumb-hover);
}

/* Bottom row */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-shadow);
  padding: 1rem 0;
  font-size: 0.9rem;
}

.footer-legal {
  display: flex;
  gap: 1rem;
  list-style: none;
  font-weight: bold;
  margin: 20px;
  padding: 0;
}

.footer-legal a {
  color: var(--color--foreground);
  text-decoration: none;
}

.footer-legal a:hover {
  color: var(--color-breadcrumb-hover);
}

/* Pulsanti fissi */
.btn-scroll-top,
.btn-chat {
  position: fixed;
  right: 1rem;
  width: 56px;
  height: 56px;
  background: var(--color-white);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 5px var(--color-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 50;
  transition: bottom 1s linear(0 0%, 0.22 2.1%, 0.86 6.5%, 1.11 8.6%, 1.3 10.7%, 1.35 11.8%, 1.37 12.9%, 1.37 13.7%, 1.36 14.5%, 1.32 16.2%, 1.03 21.8%, 0.94 24%, 0.89 25.9%, 0.88 26.85%, 0.87 27.8%, 0.87 29.25%, 0.88 30.7%, 0.91 32.4%, 0.98 36.4%, 1.01 38.3%, 1.04 40.5%, 1.05 42.7%, 1.05 44.1%, 1.04 45.7%, 1 53.3%, 0.99 55.4%, 0.98 57.5%, 0.99 60.7%, 1 68.1%, 1.01 72.2%, 1 86.7%, 1 100%);
}

.btn-scroll-top {
  bottom: 10rem;
}

.btn-chat {
  bottom: 1rem;
  text-decoration: none;
}

.btn-scroll-top i,
.btn-chat i {
  font-size: 1.5rem;
  color: var(--color--foreground);
}

.btn-scroll-top:hover,
.btn-chat:hover {
  background: var(--color-bg-hover);
}

/* Responsive: mostra sempre aperto su desktop */
@media(min-width: 769px) {
  .footer-column .collapsible-content {
    max-height: none !important;
    overflow: visible;
  }

  .collapsible-trigger i {
    display: none;
  }

  .btn-scroll-top {
    visibility: hidden;
  }
}

/* NAVBAR */
header {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 20;
}

nav {
  position: relative;
  /* max-width: 1200px; */
  margin: 5px auto;
  padding: 0 var(--margin);
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 20;
  color: var(--color-white);
  /* background: linear-gradient(173deg, var(--color-gradient-start), var(--color-gradient-end)); */
}

#mainNav.sticky::before {
  display: none;
}

#mainNav:before {
  background: linear-gradient(180deg, #00000082, #00000040, #0000000f, #0000);
  content: "";
  height: 6rem;
  left: 0;
  position: absolute;
  right: 0;
  top: -6px;
  z-index: -1;
}

@media(max-width: 768px) {
  #mainNav:before {
    background: linear-gradient(180deg, #ffffff, #ffffffbf, #ffffff82, #0000);
  }
}


.logo {
  width: 48px;
  height: 48px;
  border: 1px solid var(--color--foreground);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color--foreground);
  text-decoration: none;
  font-weight: bold;
}

.custom-logo-link img {
  max-height: 60px;
  width: auto;
  display: block;
}
.custom-logo-link img:after {
  background: linear-gradient(180deg, #00000082, #00000040, #0000000f, #0000);
  content: "";
  height: 6rem;
  left: 0;
  position: absolute;
  right: 0;
  top: -6px;
  z-index: -1;
}

/* MENU ORIZZONTALE */
.nav-items {
  display: flex;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.home .nav-items a {
  color: var(--color-white);
}

.sticky .nav-items a,
.nav-items a {
  color: var(--color--foreground);
  text-decoration: none;
  font-size: 21px;
  position: relative;
  padding-bottom: 2px;
  font-weight: bold;
}

.nav-items a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}

.nav-items a:hover::after {
  width: 100%;
}

.search-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  color: var(--color--foreground);
}

.search-btn:hover {
  background-color: var(--color-bg-hover);
}

.menu-btn {
  visibility: hidden;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  color: var(--color--foreground);
}

.menu-btn:hover {
  background-color: var(--color-bg-hover);
}

@media (max-width: 768px) {
  .nav-items {
    display: none;
  }

  .menu-btn {
    visibility: visible;
  }
}

@media (min-width: 769px) {
  nav {
    padding: 10px 15% 10px 15%;
  }
}

/* STICKY NAV */
.sticky {
  position: fixed;
  top: -5px;
  left: 0;
  background-color: var(--color-white);
  box-shadow: 0 2px 5px var(--color-shadow);
  width: 100%;
  z-index: 999;
  color: var(--color-black);
}

/* SENTINEL */
.sentinel {
  height: 1px;
}

/* MOBILE OFF-CANVAS NAV */
.mobile-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 25;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 80vw;
  height: 100vh;
  background: var(--color-white);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 30;
  padding: 2rem 1rem;
}

.mobile-nav.open {
  transform: translateX(0);
  z-index: 1000;
}

.mobile-nav.open~.mobile-backdrop {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-close {
  position: absolute;
  top: 3rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--color--foreground);
  border: 1px solid;
  height: 40px;
}

.mobile-nav-close i {
  font-size: 2.4rem;
}

/* riusa lo stile della tua nav-items */
.mobile-nav .nav-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  margin-top: 4rem;
  padding: 0;
}

.mobile-nav .nav-items a {
  color: var(--color--foreground);
  text-decoration: none;
  font-size: 1.2rem;
}

/* Breadcrumb styles */
.breadcrumb-nav {
  background: var(--color-breadcrumb-bg);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  z-index: 0
}

.breadcrumb-nav .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.breadcrumb-nav .breadcrumb-item {
  display: flex;
  align-items: center;
  color: var(--color-breadcrumb);
}

.breadcrumb-nav .breadcrumb-item a {
  text-decoration: none;
  color: var(--color-breadcrumb);
  transition: color 0.2s ease;
}

.breadcrumb-nav .breadcrumb-item a:hover {
  color: var(--color-breadcrumb-hover);
}

.breadcrumb-nav .breadcrumb-item+.breadcrumb-item::before {
  content: var(--breadcrumb-separator);
  margin: 0 0.5rem;
  color: var(--color-breadcrumb);
}

.breadcrumb-nav .breadcrumb-item:last-child {
  font-weight: 600;
  color: var(--color-breadcrumb-hover);
}

.breadcrumb-nav .breadcrumb-item:last-child a {
  cursor: default;
  pointer-events: none;
  color: inherit;
}

@media (max-width: 480px) {
  .breadcrumb-nav {
    padding: 0.5rem;
    font-size: 0.8rem;
  }

  .breadcrumb-nav .breadcrumb-item+.breadcrumb-item::before {
    margin: 0 0.3rem;
  }
}

/* —————————— Footer "BMW-like" mobile accordion —————————— */

/* Sfondo leggermente diverso per la sezione top */
.site-footer {
  background: #f2f2f2;
  /* più chiaro e uniforme */
}

/* Titoli collapsible: bordo in basso e padding maggiore */
.collapsible-trigger {
  border-bottom: 1px solid #ddd;
  padding: 1.25rem 1rem;
  font-weight: 600;
}

.collapsible-trigger span {
  flex: 1;
  /* il testo prende tutto lo spazio tranne l'icona */
}

/* Quando aperto, il background interno */
.footer-column.open {
  background: #ffffff;
}

/* Sfumatura di apertura (effetto "slide") */
.collapsible-content {
  transition: max-height 0.5s ease, opacity 0.5s ease, padding 0.5s ease;
}

/* Separatori tra gli item */
.collapsible-content li {
  border-bottom: 1px solid #eee;
  padding: 0.75rem 0;
}

/* Icona più in evidenza */
.collapsible-trigger i {
  font-size: 1.4rem;
  color: #777;
}

.footer-column.open .collapsible-trigger i {
  color: #333;
}

/* Pulsante "scroll top" BMW-style: più grande e semitrasparente */
.btn-scroll-top {
  transition: opacity .3s ease;
  /* width: 56px; height: 56px; */
  background: rgba(255, 255, 255, 0.9);
  /* bottom: 8rem !important; */
  opacity: 0;
}

.btn-scroll-top i {
  font-size: 1.6rem;
  color: #333;
}

.top .btn-scroll-top {
  opacity: 1;
}

/* Pulsante chat */
.btn-chat {
  background: rgba(255, 255, 255, 0.9);
}

.btn-chat i {
  font-size: 1.6rem;
  color: #333;
}

/* Footer bottom: testo più piccolo e centrato su mobile */
.footer-bottom {
  font-size: 0.8rem;
}

.footer-bottom p {
  text-align: center;
  width: 100%;
  margin-bottom: 0.5rem;
}

.footer-legal {
  justify-content: center;
}

/* Aggiungo un piccolo gradient-top per la bottom bar */
.footer-bottom {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.03), transparent);
}

/* Responsive tweak: meno padding su mobile */
@media (max-width: 480px) {
  .footer-top {
    gap: 0.5rem;
  }

  .collapsible-trigger {
    font-size: 0.95rem;
  }

  .collapsible-content {
    padding: 0 0.75rem 0.75rem;
  }
}

/* piccolo overlay sfumato sopra la bottom bar */
.footer-gradient-top {
  position: absolute;
  bottom: 4rem;
  /* altezza footer-bottom */
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.05), transparent);
  z-index: 5;
}

/* —————————— Hero Section —————————— */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('https://picsum.photos/1920/1080?random=1');
  background-size: cover;
  background-position: center;
  color: var(--color-white);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
}

.hero-content .btn-primary {
  background: var(--color--foreground);
  color: var(--color-white);
  /* padding: 0.75rem 1.5rem; */
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
}

.hero-content .btn-primary:hover {
  background: var(--color-bg-hover);
}

/* —————————— Gallery —————————— */
.gallery h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--color--foreground);
}

.gallery .grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery .grid a {
  display: block;
  overflow: hidden;
  border-radius: 4px;
}

.gallery .grid img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.gallery .grid img:hover {
  transform: scale(1.05);
}

/* —————————— About Me —————————— */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2rem 1rem;
}

.about h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.about .btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color--foreground);
  border: 2px solid var(--color--foreground);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s, color 0.3s;
}

.about .btn-secondary:hover {
  background: var(--color--foreground);
  color: var(--color-white);
}

.about-image img {
  width: 100%;
  border-radius: 4px;
}

/* —————————— Testimonials —————————— */
.testimonials {
  background: var(--color-breadcrumb-bg);
  padding: 2rem 1rem;
}

.testimonials h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.testimonial-list {
  max-width: 800px;
  margin: 0 auto;
}

.testimonial-list blockquote {
  border-left: 4px solid var(--color--foreground);
  padding-left: 1rem;
  margin: 1rem 0;
  font-style: italic;
}

.testimonial-list cite {
  display: block;
  margin-top: 0.5rem;
  text-align: right;
  font-style: normal;
  font-weight: 600;
}

/* —————————— Call To Action —————————— */
.cta {
  text-align: center;
  padding: 2rem 1rem;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta .btn-primary.large {
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

/* Responsive tweaks */
@media(max-width: 768px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-image {
    order: -1;
  }
}

/* —————— Pagina Contatti —————— */

/* Hero */
.contact-hero {
  position: relative;
  height: 50vh;
  background: url('https://picsum.photos/1920/600?random=7') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
}

.contact-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.contact-hero h1 {
  position: relative;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.contact-hero p {
  position: relative;
  font-size: 1.25rem;
}

/* Mappa */
.contact-map {
  padding: 2rem 1rem;
}

.contact-map h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 2rem;
}

.contact-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 4px;
}

/* Form & Info */
.contact {
  padding: 2rem 1rem !important;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.contact-form,
.contact-info {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: 4px;
  box-shadow: 0 2px 5px var(--color-shadow);
}

.contact-form h2,
.contact-info h2 {
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-bottom: 0.25rem !important;
  font-weight: 600 !important;
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 1rem !important;
  padding: 0.75rem !important;
  border: 1px solid #ccc !important;
  border-radius: 4px !important;
  font-family: var(--font-family) !important;
  max-width: 100% !important;
}

.contact-form .btn-primary,
.wpforms-submit {
  align-self: flex-start !important;
}

.contact-info img {
  width: 100%;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.contact-info a {
  color: var(--color--foreground);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

div.wpforms-container-full:not(:empty){
  margin: 0;
  padding: 0;
}
/* Responsive */
@media(max-width:768px) {
  .contact-hero h1 {
    font-size: 2rem;
  }

  .contact-hero p {
    font-size: 1rem;
  }

  .contact-map iframe {
    height: 300px;
  }
}

/* ———————— Stile per tutti i bottoni (.btn) ———————— */
.btn {
  display: inline-block;
  font-family: var(--font-family);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

/* ———————— Stile specifico per .btn-primary ———————— */
.contact-form .btn-primary,
.wpforms-submit {
  background-color: var(--color--foreground) !important;
  color: var(--color-white) !important;
  border: none !important;
  padding: 0.75rem 1.5rem !important;
  border-radius: 4px !important;
  font-size: 1rem !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
  margin-top: 1rem !important;
  width: 100% !important;
  max-width: 240px !important;
}

/* Hover e active */
.contact-form .btn-primary:hover,
.wpforms-submit {
  background-color: #555555 !important;
  /* un grigio più scuro */
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15) !important;
}

.contact-form .btn-primary:active,
.wpforms-submit {
  transform: translateY(0) !important;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1) !important;
}

/* Rimuovo eventuale outline di focus e tap-highlight */
.contact-form .btn-primary:focus,
.wpforms-submit {
  outline: none !important;
}

.contact-form .btn-primary,
.wpforms-submit {
  -webkit-tap-highlight-color: transparent !important;
}

/* —————— MASONRY "HONEYCOMB" —————— */
.portfolio-masonry h1 {
  text-align: center;
  margin-bottom: 1.5rem;
}

.grid-masonry {
  column-count: 3;
  column-gap: 1rem;
}

@media(max-width: 1024px) {
  .grid-masonry {
    column-count: 2;
  }
}

@media(max-width: 600px) {
  .grid-masonry {
    column-count: 1;
  }
}

.grid-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.grid-item img {
  width: 100%;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.grid-item img:hover {
  transform: scale(1.05);
}

/* —————— CAROUSEL TOUCH-SNAP —————— */
.portfolio-carousel h2 {
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.carousel-wrapper {
  position: relative;
}

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: 1rem;
  padding-bottom: 1rem;
}

.carousel .slide {
  flex: 0 0 80%;
  scroll-snap-align: start;
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.carousel .slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* frecce */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: background 0.2s;
}

.carousel-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
}

.carousel-arrow.prev {
  left: -1rem;
}

.carousel-arrow.next {
  right: -1rem;
}

/* nasconde scrollbar su webkit */
.carousel::-webkit-scrollbar {
  display: none;
}

/* Responsive */
@media(max-width: 768px) {
  .carousel .slide {
    flex: 0 0 90%;
  }

  .carousel-arrow {
    display: none;
  }
}

/* ————— Lightbox Fullscreen ————— */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.lightbox.open {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  text-align: center;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 4px;
}

.lightbox-caption {
  margin-top: .5rem;
  color: #fff;
  font-size: 1rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  padding: .5rem;
  transition: color .2s;
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
}

.lightbox-close:hover {
  color: #ddd;
}

.lightbox-nav.prev {
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav.next {
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav:hover {
  color: #ccc;
}

/* ————— Desktop dropdown ————— */
.nav-items li {
  position: relative;
}

.nav-items .has-submenu>a::after {
  content: "▾";
  margin-left: 0.4em;
  font-size: 0.8em;
}

.nav-items .has-submenu .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 50;
}

.nav-items .has-submenu:hover>.submenu {
  display: block;
}

.nav-items .submenu li {
  padding: 0;
}

.nav-items .submenu a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--color--foreground);
}

.nav-items .submenu a:hover {
  background: var(--color-bg-hover);
}

/* ————— Mobile accordion ————— */
.mobile-nav .has-submenu>a {
  position: relative;
}

.mobile-nav .has-submenu>a::after {
  content: "▸";
  position: absolute;
  right: 1rem;
  font-size: 1em;
  transition: transform 0.3s ease;
}

.mobile-nav .has-submenu.open>a::after {
  transform: rotate(90deg);
}

.mobile-nav .submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 1rem;
}

.mobile-nav .has-submenu.open>.submenu {
  max-height: 500px;
  /* abbastanza grande per mostrarli tutti */
}

.mobile-nav .submenu a {
  padding: 0.5rem 0;
  display: block;
  color: var(--color--foreground);
  text-decoration: none;
}

.mobile-nav .submenu a:hover {
  text-decoration: underline;
}

/* Assicura che il submenu desktop non compaia in mobile */
@media(max-width:768px) {
  .nav-items .submenu {
    display: none !important;
  }
}

/* Lazy Loading Styles */
.lazy-load {
  opacity: 0;
  transition: opacity 0.3s ease-in;
  background: #f0f0f0;
}

.lazy-load[src] {
  opacity: 1;
}

/* Placeholder per immagini in caricamento */
.lazy-load:not([src]) {
  position: relative;
}

.lazy-load:not([src])::before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}


/* HOME */

/* Hero Slider */
.hero-slider {
  height: 60vh;
  position: relative;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url(https://picsum.photos/1920/1080?random=10);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 2rem;
}

.hero-content h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--color-white);
  color: var(--color--foreground);
}

.btn-outline {
  border: 2px solid var(--color-white);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color--foreground);
  color: var(--color-white);
}

.btn-link {
  color: var(--color--foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
}

/* Services Section */
.services {
  padding: 6rem 0;
  background: var(--color-white);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.service-card {
  text-align: center;
  padding: 2rem;
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-card i {
  font-size: 3rem;
  color: var(--color--foreground);
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Recent Works */
.recent-works {
  padding: 6rem 0;
  background: var(--color-breadcrumb-bg);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.work-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  color: var(--color-white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work-item:hover .work-overlay {
  opacity: 1;
}

.work-item:hover img {
  transform: scale(1.1);
}

.center-button {
  text-align: center;
}

/* About Preview */
.about-preview {
  padding: 6rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.about-features {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.about-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.about-features i {
  color: var(--color--foreground);
}

/* Testimonials */
.testimonials {
  padding: 6rem 0;
  background: var(--color-breadcrumb-bg);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.testimonial-content {
  margin-bottom: 2rem;
}

.testimonial-content i {
  font-size: 2rem;
  color: var(--color--foreground);
  opacity: 0.5;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 1rem;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-author img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  margin: 0;
  font-size: 1.1rem;
}

.author-info span {
  color: var(--color--foreground);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://picsum.photos/1920/1080?random=7') center/cover no-repeat;
  color: var(--color-white);
  text-align: center;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-content {
    order: -1;
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .services,
  .recent-works,
  .about-preview,
  .testimonials,
  .cta-section {
    padding: 4rem 0;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* correzione cazzo di blocchi */
.hero-cta .wp-block-button__link{
  background: none;
}

.services .is-layout-flex{
  display: grid !important;
}

/* Hero Section */
.about-hero {
  position: relative;
  height: 60vh;
  background: url('https://picsum.photos/1920/1080?random=4') center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  text-align: center;
  padding: 2rem;
}

.about-hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.about-hero h1,
.about-hero p {
  position: relative;
  z-index: 2;
}

.about-hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.about-hero p {
  font-size: 1.5rem;
  max-width: 600px;
}

/* About Me Section */
.about-me {
  padding: 4rem 1rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-content h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--color--foreground);
}

.specialties {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}

.specialties li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.specialties i {
  font-size: 1.5rem;
  color: var(--color--foreground);
}

.about-image {
  position: relative;
}

.main-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

/* Approach Section */
.approach {
  background: var(--color-breadcrumb-bg);
  padding: 4rem 1rem;
  text-align: center;
}

.approach h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.approach-card {
  background: var(--color-white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.approach-card:hover {
  transform: translateY(-5px);
}

.approach-card i {
  font-size: 2.5rem;
  color: var(--color--foreground);
  margin-bottom: 1rem;
}

.approach-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.approach-card p {
  color: var(--color--foreground);
  line-height: 1.6;
}

/* Equipment Section */
.equipment {
  padding: 4rem 1rem;
}

.equipment h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.equipment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.equipment-text p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.equipment-text ul {
  list-style: none;
  padding: 0;
}

.equipment-text li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.equipment-text li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color--foreground);
}

.equipment-images {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.equipment-images img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://picsum.photos/1920/1080?random=5') center/cover no-repeat;
  color: var(--color-white);
  text-align: center;
  padding: 6rem 1rem;
}

.cta-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-section .btn-primary {
  display: inline-block;
  background: var(--color-white);
  color: var(--color--foreground);
  padding: 1rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.cta-section .btn-primary:hover {
  background: var(--color-bg-hover);
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 968px) {
  .about-grid,
  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-content {
    order: -1;
  }

  .about-hero h1 {
    font-size: 2.5rem;
  }

  .about-hero p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  .about-me,
  .approach,
  .equipment,
  .cta-section {
    padding: 3rem 1rem;
  }

  h2 {
    font-size: 2rem !important;
  }

  .approach-grid {
    grid-template-columns: 1fr;
  }
}

.page #mainNav:before{
  background: none;
}


.home #mainNav:before{
  background: linear-gradient(180deg, #00000082, #00000040, #0000000f, #0000);
}

