/* ============================================================
   Falegnameria Gazzeri — Stylesheet principale
   ============================================================ */

/* --- Reset & Base ----------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
*:focus-visible {
  outline: 2px solid #10980f;
  outline-offset: 2px;
}

html, body { height: auto; min-height: 100vh; }
html {
  font-size: 18px;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  font-style: normal;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #000;
}

h1, h2, h3, h4, h5, h6 { margin: 0; padding: 0; word-break: break-word; }
p, li, blockquote { font-size: 1.05rem; letter-spacing: 0.5px; line-height: 1.7; }
ul, ol, blockquote, p { margin: 0; }
a { cursor: pointer; text-decoration: none; color: inherit; }
a:hover { text-decoration: none; }
b, strong { font-weight: 700; }

blockquote {
  padding: 10px 0 10px 20px;
  position: relative;
  border-left: 3px solid #000;
}

img { max-width: 100%; height: auto; display: block; }

/* --- Typography ------------------------------------------- */
.display-1 { font-family: 'Fraunces', serif; font-size: 3.6rem; line-height: 1.14; letter-spacing: 0.01em; }
.display-2 { font-family: 'Fraunces', serif; font-size: 2.9rem; line-height: 1.16; letter-spacing: 0.008em; }
.display-4 { font-family: 'Source Sans 3', sans-serif; font-size: 1rem; line-height: 1.45; }
.display-5 { font-family: 'Source Sans 3', sans-serif; font-size: 1.7rem; line-height: 1.25; }
.display-7 { font-family: 'Source Sans 3', sans-serif; font-size: 1.15rem; line-height: 1.72; }

.policy-page,
.cookie-page {
  font-family: 'Source Sans 3', sans-serif;
  color: #111;
}

.policy-page .display-1,
.cookie-page .display-1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.policy-page .display-5,
.cookie-page .display-5,
.policy-page h2,
.cookie-page h2,
.policy-page h3,
.cookie-page h3 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.25;
  font-weight: 700;
}

.policy-page p,
.cookie-page p,
.policy-page li,
.cookie-page li,
.policy-page blockquote,
.cookie-page blockquote,
.policy-page td,
.cookie-page td,
.policy-page th,
.cookie-page th,
#cc-privacy-policy,
#cc-cookie-policy,
#cc-privacy-policy *,
#cc-cookie-policy * {
  font-family: 'Source Sans 3', sans-serif !important;
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
}

.policy-page p.display-7,
.cookie-page p.display-7 {
  font-size: 1.05rem !important;
  line-height: 1.7 !important;
}

@media (max-width: 768px) {
  .display-1 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.4; }
  .display-2 { font-size: clamp(1.8rem, 4vw, 2.9rem); line-height: 1.4; }
  .display-4 { font-size: clamp(0.9rem, 2vw, 1rem); line-height: 1.4; }
  .display-5 { font-size: clamp(1.35rem, 3vw, 1.7rem); line-height: 1.4; }
  .display-7 { font-size: 1.05rem; line-height: 1.4; }
}

.mbr-light    { font-weight: 300; }
.mbr-regular  { font-weight: 400; }
.mbr-semibold { font-weight: 500; }
.mbr-bold     { font-weight: 700; }
.text-upper   { text-transform: uppercase; }

.mbr-section-title    { margin: 0; padding: 0; font-style: normal; line-height: 1.2; width: 100%; }
.mbr-section-subtitle { line-height: 1.3; width: 100%; }
.mbr-text             { font-style: normal; line-height: 1.6; width: 100%; }

/* --- Colors ----------------------------------------------- */
.mbr-white  { color: #fff; }
.mbr-black  { color: #000; }
.text-primary  { color: #000; }
.text-success  { color: #10980f; }
.text-warning  { color: #ff9900; }
.text-white    { color: #fcfcfc; }
.text-black    { color: #010101; }

a.text-primary:hover, a.text-primary:focus { color: #333; }
a.text-black:hover,   a.text-black:focus   { color: #555; }

/* --- Alignment -------------------------------------------- */
.align-left   { text-align: left; }
.align-center { text-align: center; }
.align-right  { text-align: right; }

@media (max-width: 767px) {
  .align-left, .align-center, .align-right { text-align: center; }
}

/* --- Utilities -------------------------------------------- */
.mbr-flex       { display: flex; }
.flex-wrap      { flex-wrap: wrap; }
.mbr-column     { flex-direction: column; }
.mbr-row-reverse { flex-direction: row-reverse; }
.mbr-jc-s  { justify-content: flex-start; }
.mbr-jc-c  { justify-content: center; }
.mbr-jc-e  { justify-content: flex-end; }
.mbr-jc-b  { justify-content: space-between; }
.mbr-ai-c  { align-items: center; }
.mbr-ml-auto { margin-left: auto; }
.mbr-mr-auto { margin-right: auto; }
.mbr-m-auto  { margin: auto; }
.mbr-flex-wrap { flex-wrap: wrap; }

/* --- Container -------------------------------------------- */
section, .container, .container-fluid { position: relative; word-wrap: break-word; }

section {
  background-color: #fff;
  background-position: 50% 50%;
  background-repeat: no-repeat;
  background-size: cover;
  overflow: hidden;
  padding: 30px 0;
}

.container {
  padding: 0 1rem;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}
@media (max-width: 767px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

.container-fluid { width: 100%; padding: 0 1rem; }

/* --- Miniheader comunicazioni ---------------------------- */
.mini-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 220;
  height: 40px;
  background: #bfeea8;
  border-bottom: 1px solid rgba(16, 152, 15, 0.25);
}
.mini-topbar .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-topbar-text {
  margin: 0;
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: #0f3b10;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 767px) {
  .mini-topbar-text {
    font-size: 0.86rem;
  }
}

/* --- Grid ------------------------------------------------- */
.mbr-row, .mbr-form-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1rem;
  margin-right: -1rem;
}
.mbr-form-row { margin-left: -0.5rem; margin-right: -0.5rem; }
.mbr-form-row > [class*="mbr-col"] { padding-left: 0.5rem; padding-right: 0.5rem; }

@media (max-width: 767px) {
  .mbr-col, .mbr-col-auto { padding: 0 1rem; }
  .mbr-col-sm-12 { flex: 0 0 100%; max-width: 100%; padding: 0 1rem; }
}
@media (min-width: 768px) {
  .mbr-col, .mbr-col-auto { padding: 0 1rem; }
  .mbr-col-md-2  { flex: 0 0 16.6667%; max-width: 16.6667%; padding: 0 1rem; }
  .mbr-col-md-3  { flex: 0 0 25%;      max-width: 25%;      padding: 0 1rem; }
  .mbr-col-md-4  { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 1rem; }
  .mbr-col-md-5  { flex: 0 0 41.6667%; max-width: 41.6667%; padding: 0 1rem; }
  .mbr-col-md-6  { flex: 0 0 50%;      max-width: 50%;      padding: 0 1rem; }
  .mbr-col-md-7  { flex: 0 0 58.3333%; max-width: 58.3333%; padding: 0 1rem; }
  .mbr-col-md-8  { flex: 0 0 66.6667%; max-width: 66.6667%; padding: 0 1rem; }
  .mbr-col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; padding: 0 1rem; }
  .mbr-col-md-12 { flex: 0 0 100%;     max-width: 100%;     padding: 0 1rem; }
}
@media (min-width: 992px) {
  .mbr-col, .mbr-col-auto { padding: 0 1rem; }
  .mbr-col-lg-2  { flex: 0 0 16.6667%; max-width: 16.6667%; padding: 0 1rem; }
  .mbr-col-lg-3  { flex: 0 0 25%;      max-width: 25%;      padding: 0 1rem; }
  .mbr-col-lg-4  { flex: 0 0 33.3333%; max-width: 33.3333%; padding: 0 1rem; }
  .mbr-col-lg-5  { flex: 0 0 41.6667%; max-width: 41.6667%; padding: 0 1rem; }
  .mbr-col-lg-6  { flex: 0 0 50%;      max-width: 50%;      padding: 0 1rem; }
  .mbr-col-lg-7  { flex: 0 0 58.3333%; max-width: 58.3333%; padding: 0 1rem; }
  .mbr-col-lg-8  { flex: 0 0 66.6667%; max-width: 66.6667%; padding: 0 1rem; }
  .mbr-col-lg-9  { flex: 0 0 75%;      max-width: 75%;      padding: 0 1rem; }
  .mbr-col-lg-10 { flex: 0 0 83.3333%; max-width: 83.3333%; padding: 0 1rem; }
  .mbr-col-lg-12 { flex: 0 0 100%;     max-width: 100%;     padding: 0 1rem; }
}

.mbr-col     { flex: 1 1 auto; max-width: 100%; }
.mbr-col-auto { flex: 0 0 auto; width: auto; }

@media (min-width: 991px) { .mbr-col { min-width: 50%; } }
@media (max-width: 991px) { .mbr-col { min-width: 100%; } }
@media (min-width: 992px) { .lg-pb { padding-bottom: 3rem; } }
@media (max-width: 991px) { .md-pb { padding-bottom: 2rem; } }

/* --- Spacing ---------------------------------------------- */
.mbr-pt-1,.mbr-py-1 { padding-top:    0.5rem; }
.mbr-pb-1,.mbr-py-1 { padding-bottom: 0.5rem; }
.mbr-px-1 { padding-left: 0.5rem; padding-right: 0.5rem; }
.mbr-p-1  { padding: 0.5rem; }

.mbr-pt-2,.mbr-py-2 { padding-top:    1rem; }
.mbr-pb-2,.mbr-py-2 { padding-bottom: 1rem; }
.mbr-px-2 { padding-left: 1rem; padding-right: 1rem; }
.mbr-p-2  { padding: 1rem; }

.mbr-pt-3,.mbr-py-3 { padding-top:    1.5rem; }
.mbr-pb-3,.mbr-py-3 { padding-bottom: 1.5rem; }
.mbr-px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.mbr-p-3  { padding: 1.5rem; }

.mbr-pt-4,.mbr-py-4 { padding-top:    0rem; }
.mbr-pb-4,.mbr-py-4 { padding-bottom: 2rem; }
.mbr-px-4 { padding-left: 2rem; padding-right: 2rem; }
.mbr-p-4  { padding: 2rem; }

.mbr-pt-5,.mbr-py-5 { padding-top:    3rem; }
.mbr-pb-5,.mbr-py-5 { padding-bottom: 3rem; }
.mbr-px-5 { padding-left: 3rem; padding-right: 3rem; }
.mbr-p-5  { padding: 3rem; }

@media (max-width: 991px) {
  .mbr-p-3,.mbr-p-4,.mbr-p-5 { padding: 1rem; }
  .mbr-px-4,.mbr-px-5 { padding-left: 1rem; padding-right: 1rem; }
  .mbr-py-3,.mbr-py-4,.mbr-py-5 { padding-top: 1rem; padding-bottom: 1rem; }
}

/* --- Buttons ---------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-style: normal;
  font-family: inherit;
  margin: 0.4rem 0.8rem;
  padding: 10px 30px;
  border: 2px solid;
  border-radius: 40px;
  line-height: 1.5;
  letter-spacing: 1px;
  white-space: normal;
  word-break: break-word;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-sm, .btn-md, .btn-lg { padding: 10px 30px; border-radius: 40px; }
.btn-form { padding: 1rem 2rem; }
form .btn, form .mbr-section-btn { margin: 0; }

.btn-primary          { background-color: #000; border-color: #000; color: #fff; }
.btn-primary:hover    { background-color: #333; border-color: #333; color: #fff; }

.btn-success          { background-color: #10980f; border-color: #10980f; color: #fff; }
.btn-success:hover    { background-color: #063b06; border-color: #063b06; color: #fff; }

.btn-warning          { background-color: #ff9900; border-color: #ff9900; color: #fff; }
.btn-warning:hover    { background-color: #995c00; border-color: #995c00; color: #fff; }

.btn-primary-outline          { background: none; border-color: #000; color: #000; }
.btn-primary-outline:hover    { background-color: #000; color: #fff; }

.btn-success-outline          { background: none; border-color: #10980f; color: #10980f; }
.btn-success-outline:hover    { background-color: #10980f; color: #fff; }

.btn-warning-outline          { background: none; border-color: #ff9900; color: #ff9900; }
.btn-warning-outline:hover    { background-color: #ff9900; color: #fff; }

.mbr-section-btn { margin: 0 -0.8rem; font-size: 0; }
nav .mbr-section-btn { margin: 0; }

/* CTA video in evidenza nella sezione Cad-Cam */
.cadcam-video-link {
  display: inline-block;
  margin-top: 0.15rem;
  color: #111;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.28px;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.cadcam-video-link:hover,
.cadcam-video-link:focus-visible {
  color: #10980f;
  text-decoration-color: #10980f;
}

@media (max-width: 767px) {
  .cadcam-video-link {
    font-size: 0.96rem;
  }
}

.section-how-we-work {
  padding: 3rem 0 1.75rem;
  background: #fff;
}

.section-how-we-work .display-1 {
  margin-bottom: 0.55rem;
}

.section-how-we-work .container {
  max-width: 820px;
}

.how-we-work-subtitle {
  color: #5a5a5a;
  margin: 0 auto;
  max-width: 720px;
  line-height: 1.75;
}

@media (max-width: 767px) {
  .section-how-we-work {
    padding: 2.2rem 0 1.25rem;
  }

  .how-we-work-subtitle {
    line-height: 1.6;
  }
}

/* --- Forms ------------------------------------------------ */
form input, form textarea, form select {
  padding: 11px 1rem;
  line-height: 1.6;
  width: 100%;
  background: #fff;
  border: 1px solid #efefef;
  border-radius: 0;
  color: #000;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s;
}
form input[type="checkbox"],
form input[type="radio"] { border: none; background: none; width: auto; }
form .field { padding: 0.5rem 0; }
form textarea.field-input { height: 200px; }
form input:hover, form input:focus,
form textarea:hover, form textarea:focus,
form select:hover, form select:focus { border-color: #000; outline: none; }

.form-block { padding: 3rem; position: relative; }
@media (max-width: 991px) { .form-block { padding: 1rem; } }

.form-check { margin-bottom: 0; }
.form-check-label { padding-left: 0; }
.form-check-input { position: relative; margin: 4px; }

div.form-success { background: #10980f; color: #fff; padding: 1rem; margin-bottom: 1rem; display: none; }
div.form-error   { background: #b2ccd2; color: #000; padding: 1rem; margin-bottom: 1rem; display: none; }
div.form-success.visible, div.form-error.visible { display: block; }

/* --- Icons ------------------------------------------------ */
.iconfont-wrapper { display: inline-block; }
.icon { display: inline-flex; }
.icon svg { width: 1em; height: 1em; fill: currentColor; }

/* --- Overlay ---------------------------------------------- */
.mbr-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0; top: 0;
  z-index: 0;
  pointer-events: none;
}

/* --- Google Map ------------------------------------------- */
.google-map { position: relative; width: 100%; height: 400px; }
.google-map iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 992px) { .google-map { padding: 0; margin: 0; } }

/* ============================================================
   NAVBAR
   ============================================================ */
section.menu { min-height: 50px; overflow: visible; padding: 0; }

.has-miniheader section.menu {
  min-height: var(--header-offset, 110px);
}

body:not(.has-miniheader) section.menu {
  min-height: var(--header-offset, 70px);
}

.menu-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  min-height: 58px;
}
@media (max-width: 991px) { .menu-container { max-width: 100%; padding: 0 2rem; } }
@media (max-width: 767px) { .menu-container { padding: 0 1rem; } }

.navbar {
  z-index: 100;
  width: 100%;
  position: fixed;
  top: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.has-miniheader .navbar {
  top: var(--mini-topbar-height, 40px);
}

.navbar-brand { display: flex; align-items: center; z-index: 1; flex: 0 0 auto; }
.navbar-logo  { margin: 0 0.8rem 0 0; }
.navbar-logo img {
  width: 160px;
  height: auto;
  object-fit: contain;
  margin: 4px 0;
  display: block;
}

.navbar-collapse {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: space-between;
  margin-left: 0.8rem;
  gap: 0.8rem;
  flex-wrap: nowrap;
  width: 100%;
}
@media (max-width: 991px) {
  .navbar-collapse {
    display: none;
    position: fixed;
    top: 0; right: 0;
    width: 280px;
    height: 100vh;
    background: #fff;
    overflow-y: auto;
    padding: 70px 2rem 1rem;
    z-index: 200;
    box-shadow: -4px 0 16px rgba(0,0,0,.15);
    transition: transform 0.3s ease;
    transform: translateX(100%);
  }
  .has-miniheader .navbar-collapse {
    top: var(--mini-topbar-height, 40px);
    height: calc(100vh - var(--mini-topbar-height, 40px));
  }
  .navbar-collapse.open {
    display: block;
    transform: translateX(0);
  }
}

.navbar-nav {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  padding: 0;
  margin: 0;
  flex: 1 1 auto;
}
@media (max-width: 991px) { .navbar-nav { flex-direction: column; } }

.nav-item { word-break: break-all; }

.nav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 1em;
  font-weight: 700;
  letter-spacing: 1px;
  color: #000;
  text-decoration: none;
  position: relative;
  transition: color 0.25s;
}

/* Linea decorativa sotto — parte dal centro */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: #10980f;
  border-radius: 2px;
  transition: width 0.3s ease, box-shadow 0.3s ease;
}

/* Hover: colore verde + linea che si espande + bagliore */
.nav-link:hover {
  color: #10980f;
  text-shadow: 0 0 8px rgba(16, 152, 15, 0.35);
}
.nav-link:hover::after {
  width: calc(100% - 2em);
  box-shadow: 0 0 6px rgba(16, 152, 15, 0.5);
}

@media (max-width: 991px) {
  .nav-link {
    height: auto;
    padding: 0.75rem 0;
    justify-content: flex-start;
  }
  .nav-link::after { display: none; }
}

.menu-social-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  padding-left: 0;
}
.menu-social-list a { margin: 0 0.5rem; color: #10980f; }
.menu-social-list a:hover { opacity: 0.75; }
.menu-social-list svg { width: 20px; height: 20px; fill: currentColor; display: block; }

.menu-right-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-left: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link-contact {
  height: 58px;
  padding: 0 0.7em;
}

.menu-widgets {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
  flex-wrap: nowrap;
}

.menu-widget {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  border: 0;
  background: #f6fbf6;
  color: #0f3b10;
}

.menu-widget-weather { min-width: 138px; justify-content: center; }

.menu-weather-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 0.2rem;
  border-radius: 50%;
  font-size: 0.95rem;
  background: radial-gradient(circle at 30% 30%, #fff7bf 0%, #ffe28b 45%, #ffc44f 100%);
  box-shadow: 0 2px 6px rgba(255, 167, 38, 0.35);
}

@media (min-width: 992px) {
  .menu-right-tools {
    margin-left: auto;
  }
}

@media (max-width: 1200px) {
  .menu-widget-weather { min-width: 120px; }
}

@media (max-width: 991px) {
  .navbar-collapse {
    justify-content: flex-start;
  }

  .menu-right-tools {
    margin-top: 0.45rem;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .nav-link-contact {
    height: auto;
    padding: 0.5rem 0;
  }

  .menu-widgets {
    width: 100%;
    margin-left: 0;
  }

  .menu-widget-weather {
    min-width: 0;
  }
}

/* Policy widget wrappers (Octaweb CCP) */
.policy-widget-shell {
  margin: 1.25rem 0 2rem;
  border: 1px solid #dce8dc;
  border-radius: 14px;
  background: linear-gradient(180deg, #f9fdf9 0%, #f3faf3 100%);
  box-shadow: 0 8px 22px rgba(1, 83, 1, 0.08);
  overflow: hidden;
}

.policy-widget-shell-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: #eff7ef;
  border-bottom: 1px solid #dce8dc;
}

.policy-widget-shell-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f3b10;
}

.policy-widget-shell-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f3b10;
  background: #d7f0d8;
  border: 1px solid #b7dfb9;
  border-radius: 999px;
  padding: 0.24rem 0.55rem;
}

.policy-widget-shell-body {
  padding: 1rem;
}

/* Hamburger */
.navbar-toggler {
  display: none;
  position: relative;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 300;
}
@media (max-width: 991px) { .navbar-toggler { display: flex; flex-direction: column; justify-content: space-between; } }

.navbar-toggler span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #10980f;
  transition: all 0.25s;
}
.navbar-toggler.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.navbar-toggler.active span:nth-child(2) { opacity: 0; }
.navbar-toggler.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* Sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  z-index: 150;
}
.sidebar-overlay.open { display: block; }

/* ============================================================
   HERO SLIDER
   ============================================================ */
.section-hero { padding: 0; position: relative; }

.hero-slider {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
}
@media (max-width: 768px) { .hero-slider { height: 60vw; min-height: 300px; } }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 24, 18, 0.62) 0%, rgba(12, 24, 18, 0.42) 45%, rgba(12, 24, 18, 0.62) 100%);
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

.hero-caption {
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  z-index: 2;
}

.custom-title-box {
  display: inline-block;
  padding-left: 50px;
  border-left: 2px solid #2e7d32;
}
.custom-title-box h4 { color: #fff; }
.custom-title-box h3 { color: #fff; text-align: left; }

/* Slider arrows */
.hero-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%) scale(1.5);
  z-index: 3;
  width: 45px;
  height: 45px;
  background: rgba(255,255,255,0.5) no-repeat center;
  background-size: 24px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.3s;
}
.hero-btn:hover { opacity: 1; }
.hero-btn-prev {
  left: 2rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23000' viewBox='0 0 24 24'%3E%3Cpath d='M19.4 1.4L8.8 12l10.6 10.6L18 24 6 12 18 0z'/%3E%3C/svg%3E");
}
.hero-btn-next {
  right: 2rem;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='%23000' viewBox='0 0 24 24'%3E%3Cpath d='M4.6 22.6L15.2 12 4.6 1.4 6 0l12 12L6 24z'/%3E%3C/svg%3E");
}

/* ============================================================
   SEZIONE AZIENDA
   ============================================================ */
.section-azienda {
  position: relative;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background-image: url("../images/foto_gruppo.png");
  background-size: cover;
  background-position: center top;
  min-height: calc(100vh - 50px);
}
.section-azienda-inner {
  position: relative;
  z-index: 1;
  transform: translateY(-70px);
}
@media (max-width: 768px) {
  .section-azienda-inner {
    transform: translateY(-20px);
  }
}
.section-azienda .mbr-overlay { background-color: #000; opacity: 0.72; }
.section-azienda .box {
  padding: 25px;
  position: relative;
  z-index: 1;
}
.section-azienda .box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10%;
  width: 1px;
  height: 80%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
}
.section-azienda .box:first-child::before { display: none; }
@media (max-width: 991px) { .section-azienda .box::before { display: none; } }
.section-azienda p, .section-azienda h4 { color: #fff; }
.section-azienda .box h4,
.section-azienda h4.display-5 {
  line-height: 1.15 !important;
  margin-bottom: 0.3rem !important;
}
.section-azienda .box p,
.section-azienda p.display-7 {
  line-height: 1.2 !important;
  font-size: 1.02rem;
}
.section-azienda h4.display-2 { color: #fff; }

.section-servizi .azienda-intro-row {
  margin-bottom: 2rem;
}

.section-servizi .azienda-highlight-box {
  display: block;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0.75rem 0;
  background: transparent;
  border-radius: 0;
  line-height: 1.75;
  color: #1f2933;
  box-shadow: none;
}
.section-servizi .azienda-highlight-box::before {
  content: none;
}
.section-servizi .azienda-highlight-box strong {
  display: inline-block;
  margin-bottom: 0.25rem;
  letter-spacing: 0.01em;
}
.section-servizi .azienda-highlight-box em {
  color: #3e4c59;
}
.section-servizi .azienda-highlight-box--wide {
  padding: 0 clamp(0.3rem, 2.2vw, 1rem);
  text-align: left;
}
.section-servizi .azienda-highlight-box p {
  margin: 0;
}
.section-servizi .azienda-highlight-box p + p {
  margin-top: 1rem;
}
.section-servizi .azienda-highlight-box .azienda-subtitle {
  margin-top: 1.35rem;
  font-weight: 700;
}
.section-servizi .azienda-highlight-box .azienda-quote {
  margin-top: 1.4rem;
  font-style: italic;
  color: #3e4c59;
}
@media (max-width: 991px) {
  .section-servizi .azienda-highlight-box {
    padding: 0.25rem 0;
  }
  .section-servizi .azienda-highlight-box--wide {
    padding: 0;
  }
  .section-servizi .azienda-intro-row {
    margin-bottom: 0.75rem;
  }
}

.section-azienda .icon-wrap { width: 4rem; height: 4rem; color: #1d8f36; }
.section-azienda .icon-wrap svg { width: 4rem; height: 4rem; fill: currentColor; }

/* ============================================================
   SEZIONE SERVIZI (card hover)
   ============================================================ */
.section-servizi { padding: 3rem 0; background-color: #fff; }

.card-box {
  width: 100%;
  padding: 70px 50px;
  background-color: #f6f9f8;
  transition: transform 0.5s, box-shadow 0.5s;
  text-align: center;
}
.card-box:hover { transform: translateY(-15px); box-shadow: 0 25px 45px rgba(0,0,0,0.2); }
@media (max-width: 767px) { .card-box { padding: 50px 30px; } }

.card-box .icon-wrap { width: 4rem; height: 4rem; color: #1d8f36; display: inline-block; transition: transform 1s; }
.card-box .icon-wrap svg { width: 4rem; height: 4rem; fill: currentColor; }
.card-box:hover .icon-wrap { transform: translateY(-15px); }
.card-box-wrapper { margin-bottom: 2rem; }
.section-servizi .card-box h4.display-5 {
  font-size: 1.2rem;
  line-height: 1.35;
}
.section-servizi .card-box p.display-7 {
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ============================================================
   SEZIONE FEATURES (lista icona + testo)
   ============================================================ */
.section-features { padding: 3rem 0; background-color: #fff; }

.feature-item {
  display: flex;
  align-items: center;
  padding-bottom: 20px;
}
.feature-item .icon-wrap { width: 4rem; height: 4rem; flex-shrink: 0; color: #1d8f36; }
.feature-item .icon-wrap svg { width: 4rem; height: 4rem; fill: currentColor; }
.feature-item .text-box { padding-left: 25px; }
.feature-item h3 { text-align: left; }
.section-features .feature-item .text-box h3.display-5 {
  font-size: 1.2rem;
  line-height: 1.3;
}
.section-features .feature-item .text-box p.display-7 {
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ============================================================
   SEZIONE TEAM
   ============================================================ */
.company-team-section {
  padding: 4.5rem 0;
  background:
    radial-gradient(circle at top, rgba(29, 143, 54, 0.12), transparent 38%),
    linear-gradient(180deg, #f6f9f8 0%, #ffffff 100%);
}

.company-team-intro {
  max-width: 760px;
  margin: 0 auto 2.5rem;
}

.company-team-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1d8f36;
}

.company-team-title {
  margin-bottom: 1rem;
}

.company-team-copy {
  max-width: 60ch;
  margin: 0 auto;
  color: #4d5b63;
}

.company-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 250px));
  justify-content: center;
  gap: 1.5rem;
}

.company-team-card {
  width: 250px;
  min-height: 100%;
  padding: 1rem 1rem 1.25rem;
  background-color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.company-team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.14);
}

.company-team-photo-shell {
  position: relative;
  width: 250px;
  height: 250px;
  margin: -1rem -1rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #f2f2f2;
}

.company-team-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.32s ease;
}

.company-team-photo--upload {
  transform: scale(1.02);
}

.company-team-card:hover .company-team-photo {
  transform: scale(1.03);
}

.company-team-card:hover .company-team-photo--upload {
  transform: scale(1.08);
}

.company-team-photo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.1rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 14, 16, 0.06) 20%, rgba(8, 14, 16, 0.82) 100%);
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.company-team-card:hover .company-team-photo-overlay {
  opacity: 1;
}

.company-team-overlay-name,
.company-team-overlay-role {
  color: inherit;
}

.company-team-overlay-name {
  margin: 0;
}

.company-team-overlay-role {
  margin: 0.4rem 0 0;
}

.company-team-body {
  text-align: center;
}

.company-team-name {
  margin: 0;
  color: #162126;
  font-size: 1.2rem;
  line-height: 1.3;
}

.company-team-role {
  margin: 0.55rem 0 0;
  color: #5b6770;
  font-size: 0.9rem;
  line-height: 1.45;
}

.company-team-overlay-name {
  font-size: 1.1rem;
  line-height: 1.3;
}

.company-team-overlay-role {
  font-size: 0.82rem;
  line-height: 1.4;
}

@media (max-width: 575px) {
  .company-team-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-team-card {
    width: min(100%, 250px);
    margin: 0 auto;
  }

  .company-team-photo-shell,
  .company-team-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .company-team-photo-overlay {
    opacity: 1;
  }
}

/* ============================================================
   SLIDER PROGETTO (immagini + testo)
   ============================================================ */
.section-slider-project { padding: 0; background-color: #fff; }
.project-text-col { padding: 2rem; }

.project-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}
@media (max-width: 992px) { .project-slider { height: 280px; } }

.project-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.7s; }
.project-slide.active { opacity: 1; }
.project-slide img { width: 100%; height: 100%; object-fit: cover; }

.project-slider .hero-btn-prev { left: 1rem; }
.project-slider .hero-btn-next { right: 1rem; }

@media (min-width: 992px) {
  .section-slider-project .mbr-row { margin-left: -2rem; margin-right: -2rem; }
  .section-slider-project .mbr-row > * { padding-left: 2rem; padding-right: 2rem; }
}

/* ============================================================
   GALLERY con lightbox
   ============================================================ */
.section-gallery { padding: 3rem 0; background-color: #f6f9f8; }

.gallery-img-wrap {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.gallery-img-wrap img { width: 100%; height: auto; display: block; transition: transform 0.4s; }
.gallery-img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #10980f;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-img-wrap:hover::after { opacity: 0.5; }
.gallery-img-wrap:hover img { transform: scale(1.04); }

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox-overlay.open { display: flex; }
.lightbox-overlay img { max-width: 90vw; max-height: 90vh; object-fit: contain; display: block; }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
}

/* ============================================================
   CONTATTI + MAPPA
   ============================================================ */
.section-contatti { padding: 3rem 0; background-color: #f6f9f8; }
.section-contatti .custom-box { background-color: #10980f; }
.section-contatti .contact-side-col { display: flex; }
.section-contatti .contacts-block { width: 100%; }
.section-contatti .contacts-block-inverse {
  color: #fff;
  padding: 2rem;
  width: 100%;
}
.section-contatti .contacts-block-inverse h4,
.section-contatti .contacts-block-inverse p,
.section-contatti .contacts-block-inverse a,
.section-contatti .contacts-block-inverse .linkedin-btn {
  color: #fff;
}
.section-contatti .contacts-block-inverse a { text-decoration: underline; }
@media (max-width: 992px) { .section-contatti .contacts-block { text-align: center; } }
.section-contatti .icon-wrap { width: 4rem; height: 4rem; display: inline-block; color: #fff; }
.section-contatti .icon-wrap svg { width: 4rem; height: 4rem; fill: currentColor; }
@media (max-width: 992px) { .section-contatti .first-element { padding-bottom: 2rem; } }
.section-contatti .map-block { width: 100%; min-height: 500px; }
@media (max-width: 992px) { .section-contatti .map-block { margin-bottom: 2rem; min-height: 350px; } }
.section-contatti .map-block .google-map { height: 100%; min-height: 500px; }
@media (max-width: 992px) { .section-contatti .map-block .google-map { min-height: 350px; } }
@media (min-width: 992px) {
  .section-contatti .mbr-row { margin-left: -2rem; margin-right: -2rem; }
  .section-contatti .mbr-row > * { padding-left: 2rem; padding-right: 2rem; }
}
.section-contatti .mbr-section-title,
.section-contatti .mbr-section-subtitle { text-align: center; }

/* ============================================================
   FORM CONTATTI — due colonne dentro il container
   ============================================================ */
.section-form {
  padding: 3rem 0;
  background-color: #f6f9f8;
}

.section-white-cta {
  padding: 3rem 0;
  background: #fff;
}

/* Card che contiene le due colonne */
.form-card {
  display: flex;
  border-radius: .5rem;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}

/* Colonna sinistra — info verde */
.form-info-col {
  flex: 0 0 36%;
  background-color: #10980f;
  color: #fff;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-info-col h3 { color: #fff; margin-bottom: 1.25rem; }
.form-info-col p  { color: rgba(255,255,255,.9); margin-bottom: .5rem; line-height: 1.7; }
.form-info-col a  { color: #fff; text-decoration: underline; }
.form-info-col a:hover { opacity: .8; }
.form-info-note {
  opacity: .75;
  font-size: .85rem;
}

.form-info-divider {
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,.4);
  margin: 1.25rem 0;
  border-radius: 2px;
}

.form-info-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-bottom: .9rem;
}
.form-info-item svg { flex-shrink: 0; margin-top: 2px; opacity: .85; }

/* Colonna destra — form bianca */
.form-body-col {
  flex: 1;
  background: #fff;
  padding: 2.5rem 2rem;
}
.form-body-col h4       { margin-bottom: .35rem; }
.form-body-col .form-subtitle {
  color: #888;
  font-size: .85rem;
  margin-bottom: 1.5rem;
}

/* Griglia campi */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .85rem;
}
.form-grid .field-full { grid-column: 1 / -1; }
.form-grid .field-half { grid-column: span 1; }

.form-field { display: flex; flex-direction: column; gap: .25rem; }
.form-field label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #555;
}
.form-field input,
.form-field textarea {
  padding: .6rem .85rem;
  border: 1.5px solid #dde1e7;
  border-radius: .3rem;
  font-family: 'Source Sans 3', sans-serif;
  font-size: .9rem;
  color: #222;
  background: #fafbfc;
  transition: border-color .2s, background .2s;
  width: 100%;
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: #10980f; background: #fff; }
.form-field textarea { height: 120px; resize: vertical; }

/* Privacy */
.form-privacy {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .8rem;
  color: #666;
  line-height: 1.5;
}
.form-privacy input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: #10980f;
  width: 15px; height: 15px;
  cursor: pointer;
}
.form-privacy label { cursor: pointer; }

/* Submit */
.form-submit-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .25rem;
}
.btn-form-submit {
  background-color: #10980f;
  color: #fff;
  padding: .65rem 2rem;
  border-radius: 40px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  cursor: pointer;
  border: 2px solid #10980f;
  transition: all .2s;
}
.btn-form-submit:hover { background-color: #063b06; border-color: #063b06; }
.form-spinner {
  color: #888;
  font-size: .85rem;
}

/* Alert feedback */
.form-alert {
  grid-column: 1 / -1;
  padding: .75rem 1rem;
  border-radius: .3rem;
  font-size: .85rem;
  display: none;
}
.form-alert.success { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.form-alert.error   { background: #ffebee; color: #c62828; border: 1px solid #ffcdd2; }
.form-alert.visible { display: block; }

/* Responsive */
@media (max-width: 991px) {
  .form-card { flex-direction: column; }
  .form-info-col { flex: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .field-half { grid-column: span 1; }
}

/* ============================================================
   CLIENTI (carousel)
   ============================================================ */
.section-clienti { padding: 45px 0; background-color: #fff; }
.section-clienti h2 { margin-bottom: 1rem; text-align: center; }
.section-clienti .mbr-section-subtitle { font-style: italic; color: #8c8c8c; padding-bottom: 2rem; text-align: center; }

.logo-carousel { overflow: hidden; position: relative; }
.logo-track {
  display: flex;
  align-items: center;
  gap: 3rem;
  animation: scroll-logos 20s linear infinite;
  width: max-content;
}
.logo-track img { height: 80px; width: auto; object-fit: contain; flex-shrink: 0; }
.logo-carousel:hover .logo-track { animation-play-state: paused; }

@keyframes scroll-logos {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   TIMELINE (pagina Progetti)
   ============================================================ */
.section-timeline { padding-top: 9rem; padding-bottom: 4rem; background-color: #fff; }

.timeline-element { position: relative; }
.timeline-element:not(:last-child)::before {
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: 40px;
  width: 2px;
  height: calc(100% - 20px);
  background-color: #e0e0e0;
  z-index: 0;
}
@media (max-width: 767px) {
  .timeline-element:not(:last-child)::before { left: 0; }
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #10980f;
  z-index: 1;
  transition: transform 0.3s, background-color 0.3s;
}
.timeline-element:hover .timeline-dot { transform: translateX(-50%) scale(1.3); background-color: #56bdbd; }
@media (max-width: 767px) { .timeline-dot { left: 0; transform: none; } }

.timeline-img-panel img { width: 100%; height: auto; display: block; }

.timeline-item-panel { transition: transform 0.4s; }
.timeline-element:nth-child(odd):hover  .timeline-item-panel { transform: translateX(12px); }
.timeline-element:nth-child(even):hover .timeline-item-panel { transform: translateX(-12px); }

@media (max-width: 767px) {
  .timeline-wrap { flex-direction: column !important; }
  .timeline-img-panel, .timeline-item-panel { width: 100%; margin: 0 !important; }
  .timeline-img-panel { margin-bottom: 1rem !important; }
  .timeline-element:nth-child(odd):hover  .timeline-item-panel,
  .timeline-element:nth-child(even):hover .timeline-item-panel { transform: none; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.section-footer {
  position: relative;
  padding: 2.2rem 0 0.9rem;
  background-color: #f6f9f8;
}

.section-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 460' preserveAspectRatio='none'%3E%3Crect width='1600' height='460' fill='%23f6f9f8'/%3E%3Cpath d='M0 84 C220 18 420 166 670 98 C920 30 1130 168 1600 102 L1600 460 L0 460 Z' fill='%23ffffff'/%3E%3Cpath d='M0 126 C240 58 450 206 700 138 C960 68 1175 214 1600 146 L1600 460 L0 460 Z' fill='%23fbfdfc'/%3E%3Cpath d='M0 170 C250 102 465 248 730 178 C995 108 1210 254 1600 188 L1600 460 L0 460 Z' fill='%23ffffff'/%3E%3Cpath d='M0 214 C265 146 490 292 760 224 C1025 156 1240 300 1600 236 L1600 460 L0 460 Z' fill='%23fafcfb'/%3E%3Cpath d='M0 258 C280 192 510 334 790 266 C1065 198 1278 340 1600 280 L1600 460 L0 460 Z' fill='%23ffffff'/%3E%3Cpath d='M0 304 C295 240 540 372 820 308 C1090 246 1300 382 1600 324 L1600 460 L0 460 Z' fill='%23fbfdfc'/%3E%3Cpath d='M0 118 C240 52 450 196 700 128 C960 58 1178 202 1600 138' stroke='%23dfe6e3' stroke-opacity='0.70' stroke-width='1.8' fill='none'/%3E%3Cpath d='M0 164 C252 98 468 242 736 172 C1002 102 1218 246 1600 182' stroke='%23dce4e0' stroke-opacity='0.62' stroke-width='1.6' fill='none'/%3E%3Cpath d='M0 208 C265 142 490 286 760 218 C1025 150 1242 294 1600 230' stroke='%23d9e1de' stroke-opacity='0.56' stroke-width='1.5' fill='none'/%3E%3Cpath d='M0 252 C280 186 510 328 790 262 C1065 194 1280 336 1600 276' stroke='%23d6dfdb' stroke-opacity='0.52' stroke-width='1.4' fill='none'/%3E%3C/svg%3E");
  background-size: 100% 420px;
  background-repeat: no-repeat;
  background-position: center calc(100% + 96px);
  opacity: 1;
}

.section-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(246, 249, 248, 0.02) 0%, rgba(246, 249, 248, 0.06) 35%, rgba(16, 152, 15, 0.025) 100%);
}

.section-footer .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .section-footer::before {
    background-size: 100% 300px;
    background-position: center calc(100% + 56px);
  }
}
.section-footer .mbr-row { align-items: stretch; }
.section-footer .mbr-row > [class*="mbr-col"] { display: flex; }
.section-footer .mbr-row > [class*="mbr-col"] {
  position: relative;
}
.section-footer .mbr-row > [class*="mbr-col"]:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  right: 0;
  width: 2px;
  transform: scaleX(1);
  transform-origin: center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.18) 18%,
    rgba(0, 0, 0, 0.28) 50%,
    rgba(0, 0, 0, 0.18) 82%,
    rgba(0, 0, 0, 0) 100%
  );
}
.section-footer .list-colums {
  column-count: 2;
  -moz-column-count: 2;
  -webkit-column-count: 2;
}
.section-footer .logo-box { max-width: 110px; }
.section-footer .logo-box img { width: 100%; height: auto; }
.section-footer .custom-title {
  color: #000;
  font-size: 0.84rem;
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.section-footer p { color: #000; }
.section-footer .display-7 {
  font-size: 0.84rem;
  line-height: 1.5;
}
.section-footer .mbr-text-al-c { text-align: center; }
.section-footer .mbr-row { row-gap: 1rem; }

.footer-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.footer-col .custom-title {
  min-height: 3rem;
  display: flex;
  align-items: flex-end;
  margin-bottom: 0.8rem;
}

.footer-col p {
  margin: 0 0 0.5rem;
}

.footer-meta-title {
  text-transform: uppercase;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #202020;
}

.footer-list-single {
  column-count: 1;
  -moz-column-count: 1;
  -webkit-column-count: 1;
}

.footer-policy-links p {
  margin: 0;
}

.footer-policy-links a {
  color: #000;
  text-decoration: none;
}

.footer-cols-divider {
  border: none;
  border-top: 1px solid #999;
  margin: 1rem 0 0;
}

@media (max-width: 991px) {
  .section-footer .mbr-row > [class*="mbr-col"]:not(:last-child)::after {
    display: none;
  }

  .section-footer .custom-title {
    padding-bottom: 1.2rem;
    min-height: auto;
  }

  .section-footer .display-7 {
    font-size: 0.84rem;
  }
}

.linkedin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 4px;
  color: #000;
  transition: background-color 0.3s, color 0.3s;
}
.linkedin-btn:hover { background-color: #0a66c2; color: #fff; }
.linkedin-btn svg { width: 28px; height: 28px; fill: currentColor; }

/* Footer copyright */
#footer-note {
  padding: 1.1rem 1rem 1.25rem;
  color: #000;
  text-align: center;
  background: #f6f9f8;
  line-height: 1.2;
}
#footer-note p { font-size: 0.84rem; color: #000; margin: 0.18rem 0; line-height: 1.2; }
#footer-note a { color: #000; text-decoration: underline; }
#footer-note hr { border: none; border-top: 1px solid #999; margin: .65rem auto; max-width: 960px; }

/* ============================================================
   POPUP / MODAL
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-overlay.open { display: flex; }

.modal-dialog {
  background: #fff;
  border-radius: 0.3rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.3);
  max-width: 500px;
  width: 100%;
  position: relative;
}
.modal-dialog.modal-xl { max-width: 800px; }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
}
.modal-body   { padding: 1rem; }
.modal-footer { display: flex; align-items: center; justify-content: center; padding: 1rem; }

.modal-close {
  position: absolute;
  top: 0.75rem; right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  opacity: 0.7;
}
.modal-close:hover { opacity: 1; }

/* Lightbox video elegante in stile premium */
#modal-video {
  background: rgba(16, 18, 24, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#modal-video .modal-dialog {
  position: relative;
  width: min(1100px, 100%);
  border-radius: 18px;
  background: #0b0b0b;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.35), 0 10px 28px rgba(0, 0, 0, 0.18);
  overflow: hidden;
  transform: translateY(16px) scale(0.985);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#modal-video.open .modal-dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

#modal-video .modal-header {
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #ececf0;
}

#modal-video .modal-header h5 {
  letter-spacing: 0.2px;
  font-weight: 600;
}

#modal-video .modal-body {
  padding: 0;
  background: #0b0b0b;
}

#modal-video .modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #f1f1f4;
  border: 1px solid #dfdfe5;
  font-size: 1.3rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#modal-video .video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

#modal-video .video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#modal-video .video-sound-link {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 0.2s ease, background 0.2s ease;
}

#modal-video .video-sound-link:hover,
#modal-video .video-sound-link:focus-visible {
  background: rgba(0, 0, 0, 0.72);
  opacity: 1;
}

#modal-video .video-sound-link[hidden] {
  display: none;
}

#modal-video .video-music-credit {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

#modal-video .video-music-credit a {
  color: inherit;
  text-decoration: underline;
}

@media (max-width: 767px) {
  #modal-video {
    padding: 0.5rem;
  }

  #modal-video .modal-dialog {
    border-radius: 12px;
  }
}


/* ============================================================
   MODALE POSIZIONI APERTE
   ============================================================ */
#modal-posizioni {
  display: none !important;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

#modal-posizioni.visible {
  display: flex !important;
}

#modal-posizioni .modal-content {
  width: 100%;
  max-width: 800px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  animation: slideIn 0.35s ease;
  display: flex;
  flex-direction: column;
  margin: auto;
}

@keyframes slideIn {
  from {
    transform: translateY(50px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 2.5rem;
  border-bottom: 2px solid #f0f0f0;
  background: linear-gradient(135deg, #fafcfb 0%, #f5f9f6 100%);
}

.modal-header h2 {
  margin: 0;
  font-size: 2rem;
  font-weight: 700;
  color: #10980f;
  letter-spacing: -0.5px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #999;
  opacity: 0.7;
  transition: all 0.2s;
  padding: 0.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  opacity: 1;
  color: #10980f;
  background: rgba(16, 152, 15, 0.08);
}

.modal-body {
  padding: 2.5rem;
  max-height: calc(70vh - 200px);
  overflow-y: auto;
}

.modal-body::-webkit-scrollbar {
  width: 6px;
}

.modal-body::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
  background: #10980f;
  border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
  background: #063b06;
}

.modal-body .spinner {
  text-align: center;
  color: #555;
  padding: 3rem 1rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.posizioni-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.posizione-card {
  padding: 1.75rem;
  background: linear-gradient(135deg, #fafcfb 0%, #f5f9f6 100%);
  border: 1px solid #e8ebe8;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.posizione-card:hover {
  box-shadow: 0 8px 24px rgba(16, 152, 15, 0.12);
  border-color: #10980f;
  transform: translateY(-4px);
  background: linear-gradient(135deg, #ffffff 0%, #f9fcf9 100%);
}

.posizione-header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.posizione-card h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #000;
  flex: 1;
  min-width: 200px;
  line-height: 1.4;
}

.badge {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: none;
}

.badge-tipo {
  background: linear-gradient(135deg, #e8f5e9 0%, #dceee0 100%);
  color: #2e7d32;
  box-shadow: 0 2px 6px rgba(46, 125, 50, 0.15);
}

.badge-livello {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe8cc 100%);
  color: #e65100;
  box-shadow: 0 2px 6px rgba(230, 81, 0, 0.15);
}

.posizione-info {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.posizione-card p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
}

.posizione-card strong {
  color: #10980f;
  font-weight: 600;
}

.posizione-scadenza {
  margin-top: 1rem !important;
  color: #555;
  font-size: 0.95rem !important;
  font-weight: 500;
}

.modal-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2.5rem;
  border-top: 2px solid #f0f0f0;
  background: linear-gradient(135deg, #fafcfb 0%, #f5f9f6 100%);
  gap: 1rem;
}

.modal-footer p {
  margin: 0;
  font-size: 1rem;
  color: #333;
  text-align: center;
  line-height: 1.6;
  font-weight: 500;
}

.modal-footer .btn {
  background: linear-gradient(135deg, #10980f 0%, #0d7309 100%);
  color: #fff;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(16, 152, 15, 0.25);
}

.modal-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 152, 15, 0.35);
}

@media (max-width: 768px) {
  #modal-posizioni .modal-content {
    max-width: 95vw;
    max-height: 90vh;
  }

  .modal-header {
    padding: 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.5rem;
  }

  .modal-body {
    padding: 1.5rem;
    max-height: calc(80vh - 180px);
  }

  .posizione-card {
    padding: 1.25rem;
  }

  .posizione-card h3 {
    font-size: 1.1rem;
  }

  .posizione-header {
    gap: 0.5rem;
  }

  .modal-footer {
    padding: 1.5rem;
  }
}

.modal-footer .btn {
  margin: 0;
  padding: 0.6rem 1.5rem;
}

@media (max-width: 768px) {
  .modal {
    max-width: 90vw;
  }

  .modal-header {
    padding: 1rem 1.5rem;
  }

  .modal-header h2 {
    font-size: 1.3rem;
  }

  .modal-body {
    padding: 1.5rem;
    max-height: 70vh;
  }

  .posizione-card {
    padding: 1rem;
  }

  .posizione-header {
    gap: 0.5rem;
  }

  .posizione-card h3 {
    font-size: 0.95rem;
  }

  .modal-footer {
    padding: 1rem 1.5rem;
  }
}

/* ============================================================
   SCROLL TO TOP
   ============================================================ */
#scrollToTopButton {
  position: fixed;
  bottom: 25px; right: 25px;
  opacity: 0;
  visibility: hidden;
  z-index: 5000;
  width: 52px; height: 52px;
  background-color: #000;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: opacity 0.3s, visibility 0.3s;
}
#scrollToTopButton.visible { opacity: 0.6; visibility: visible; }
#scrollToTopButton:hover { opacity: 1; }
#scrollToTopButton::before {
  content: '';
  position: absolute;
  height: 38%;
  top: 35%;
  width: 2px;
  left: calc(50% - 1px);
  background: #fff;
}
#scrollToTopButton::after {
  content: '';
  position: absolute;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  width: 30%;
  height: 30%;
  left: calc(35% - 1px);
  bottom: 32%;
  transform: rotate(-45deg);
}
