/* =========================   RESET + VARIABILI GLOBALI   ========================= */

/* App-like: niente flash azzurro / outline da browser al tap (iOS/Android/Chrome). */
html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
body {
  -webkit-tap-highlight-color: transparent;
}
a,
button,
input,
select,
textarea,
label,
summary,
[role="button"],
[tabindex] {
  -webkit-tap-highlight-color: transparent;
}
/* Outline solo per navigazione da tastiera, non al tap/click */
:focus:not(:focus-visible) {
  outline: none;
}
:focus-visible {
  outline: 2px solid rgba(0, 102, 204, 0.45);
  outline-offset: 2px;
}

/* Utility legacy (ora ridondante ma ok se usata in markup) */
.me-no-tap-flash,
.me-no-tap-flash * {
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* Brand meedico (logo topbar: m/dico blu, “ee” giallo) */
  --meedico-brand-blue: #0066cc;
  --meedico-brand-blue-glow: rgba(13, 0, 255, 0.75);
  --meedico-brand-yellow: #ffcc00;
  --meedico-brand-yellow-ink: #1a1500;

  /*
   * Tipi contenuto (identità semantica: feed, esplora, mappa, profilo).
   * Regola contrasto: testo piccolo = *-ink su bianco o su *-soft (AA).
   * *-fill (offer/company) solo per pin/icone piene, non per label.
   */
  --meedico-people: var(--meedico-brand-blue);
  --meedico-people-ink: #1d4ed8;
  --meedico-people-soft: #dbeafe;
  --meedico-people-glow: rgba(0, 102, 204, 0.2);

  /* Offerte: blu “sky” — stessa famiglia del brand, ma distinto da persone (#0066cc) */
  --meedico-offer: #0284c7;
  --meedico-offer-ink: #0369a1;
  --meedico-offer-soft: #e0f2fe;
  --meedico-offer-soft-2: #bae6fd;
  --meedico-offer-glow: rgba(2, 132, 199, 0.2);

  --meedico-community: #7c3aed;
  --meedico-community-ink: #6d28d9;
  --meedico-community-soft: #f5f3ff;
  --meedico-community-glow: rgba(124, 58, 237, 0.18);

  --meedico-bando: #047857;
  --meedico-bando-ink: #065f46;
  --meedico-bando-soft: #d1fae5;
  --meedico-bando-glow: rgba(5, 150, 105, 0.2);

  --meedico-company: #0f766e;
  --meedico-company-ink: #115e59;
  --meedico-company-soft: #ccfbf1;
  --meedico-map-company: var(--meedico-company);

  --meedico-portfolio: #4338ca;
  --meedico-portfolio-ink: #3730a3;
  --meedico-portfolio-soft: #e0e7ff;

  /* Colori di default (se nessun tema è attivo) */
  --bg-color: #f4f4f4;
  --text-color: #333333;
  --heading-color: #111827;

  --primary-color: var(--meedico-brand-blue);
  --primary-color-darker: #004a99;
  --primary-color-soft: rgba(0, 102, 204, 0.1);

  --card-bg: #ffffff;
  --card-border: rgba(0, 0, 0, 0.05);
  --card-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);

  --input-bg: #ffffff;
  --input-border: #e0e0e0;
  --input-focus-border: #007bff;
  --input-focus-ring: rgba(0, 123, 255, 0.1);

  --button-bg: rgba(255, 255, 255, 0.85);
  --button-text: #111827;
  --button-hover-bg: #f9fafb;

  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-blur: 10px;
  --glass-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);

  --blob-blue: #dcff90;
  --blob-fuchsia: #eb7dff;
  --blob-yellow: #ffcb64;

  --font-family-base: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;

  /* Variabili usate per il telefono/parallasse */
  --screen-scroll-y: 0px;
  --card-scroll-y: 0px;

  --screen-perspective: 800px;
  --screen-rotate-x: 0deg;
  --screen-rotate-y: 12deg;
  --screen-rotate-z: -15.5deg;
  --screen-skew-y: 0deg;

  --card-perspective: 1200px;
  --card-rotate-x: 2deg;
  --card-rotate-y: 14deg;
  --card-rotate-z: -15deg;

  /* Navbar generica */
  --nav-inactive: #b0b0b0;
  --nav-active: #4a4a4a;
  --nav-border-color: #dbdbdb;
  --nav-bg-blur: rgba(255, 255, 255, 0.0);
  --nav-accent-color: #0066cc;

  /* Footer generico */
  --footer-bg: #f7f9fc;
  --footer-text: #4a4a4a;
  --footer-link: #777;
  --footer-link-hover: #0066cc;
  --footer-border-top: #e0e0e0;

  /* Icone social footer */
  --footer-whatsapp: #25d366;
  --footer-telegram: #0088cc;
  --footer-facebook: #3b5998;

  /* Evidenziazione testo animato footer */
  --footer-highlight-bg: #f0f0f0;
}

/* Reset di base */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-family-base);
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  background: var(--bg-color);
  padding-top: 60px;
}

/* =========================   LAYOUT GENERALE   ========================= */
.container,
.container-dashboard {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
}

.container {
  min-height: calc(100vh - 167px);
}

/* Da loggato il footer non c’è: riempi quasi tutto il viewport (solo chrome top). */
body:not(:has(footer.main-footer)) .container {
  min-height: calc(100dvh - 72px);
}

.container-dashboard {
  min-height: 80vh;
}

/* section {
  margin-top: 5px;
} */

section h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 5px;
  color: var(--heading-color);
}

section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--heading-color);
}
@media (max-width: 768px) {
    section h2 {
    font-size: 1rem;
    }
}

.subtitle-bandi {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 20px;
  color: #555;
  line-height: 1.5;
  padding: 0 15px;
}

.subtitle-bandi a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.subtitle-bandi a:hover {
  text-decoration: underline;
}

/* =========================   HERO (HOME)   ========================= */
.hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 50px 10%;
  min-height: 85vh;
  overflow: hidden;
  position: relative;
  background: transparent;
  text-align: left;
  background: rgb(0 29 255 / 11%);
}

.hero .content {
  flex: 1;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--heading-color);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* Testo SEO */
.content-width {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.content-width h3 {
  font-size: 1.8rem;
  margin-top: 70px;
  margin-bottom: 15px;
  color: #004a99;
}

.content-width p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #555;
}

/* =========================   BOTTONI GLOBALI (GLASS HERO STYLE)   ========================= */
.button-group,
.general,
.button-as-link {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  margin-top: 25px;
  padding: 0 20px;
}

.button-as-link a {
  text-decoration: none;
  color: inherit;
}

/* Bottoni principali con effetto vetro + animazione */
.button-group button,
.general button,
.signup button,
.hero button:not(.carousel-btn),
.job-carousel button:not(.carousel-btn),
.btn-candidati,
.btn-login-for-apply,
.apply-filters-btn,
.save-search-btn {
  flex-grow: 1;
  min-width: 300px;
  max-width: fit-content;
  padding: 15px 25px;
  font-size: 1.1em;
  border-radius: 12px;
  cursor: pointer;
  white-space: nowrap;
  color: #1a1a1a;
  font-weight: bold;
  position: relative;
  overflow: hidden;

  /* Background: vetro trasparente */
  background: rgba(255, 255, 255, 0.0);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);

  /* Bordi di rifrazione */
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.5);

  /* Shadow multiple per spessore */
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.1),
    inset 1px 1px 1px rgba(255, 255, 255, 0.4),
    inset -1px -1px 2px rgba(0, 0, 0, 0.05);

  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease, opacity 0.3s ease;

  /* Animazioni iniziali */
  opacity: 0;
  animation-fill-mode: forwards;
  animation-name: bounceIn, buttonJump;
  animation-duration: 1s, 1.5s;
  animation-timing-function: ease-out, ease-in-out;
  animation-iteration-count: 1, infinite;
  animation-delay: var(--initial-delay, 0s), var(--loop-delay, 1s);
}

/* Delay personalizzati (se usi nth-child) */
.button-group button:nth-child(1) {
  --initial-delay: 1.5s;
  --loop-delay: 1s;
}

.button-group button:nth-child(2) {
  --initial-delay: 1.7s;
  --loop-delay: 1.3s;
}

.button-group button:nth-child(3) {
  --initial-delay: 1.9s;
  --loop-delay: 1.6s;
}

/* Hover effetto vetro */
.button-group button:hover,
.general button:hover,
.hero button:not(.carousel-btn):hover {
  transform: translateY(-3px) scale(1.03);
  background: rgba(255, 255, 255, 0.6);
  box-shadow:
    0 12px 25px rgba(0, 0, 0, 0.12),
    inset 2px 2px 4px rgba(255, 255, 255, 0.6);
  opacity: 1;
  animation-play-state: paused;
}

/* Bottoni del carosello (frecce) – tenerli separati */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #333 !important;
  border: 1px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 12px !important;
  cursor: pointer;
  z-index: 10;
  box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.1),
    inset 1px 1px 2px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  padding: 0 !important;
  min-width: 0 !important;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-50%) scale(1.1);
}

/* Keyframes per i bottoni */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
  }
  60% {
    opacity: 1;
    transform: translateY(-5px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes buttonJump {
  0% {
    transform: translateY(0);
  }
  20% {
    transform: translateY(-5px);
  }
  40% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(0);
  }
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* =========================   SFONDO ANIMATO (BLOBS)   ========================= */
.animated-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  z-index: -2;
  pointer-events: none;
  background: transparent;
  animation: fadeInBackground 2s ease-in forwards;
}

.animated-background::before,
.animated-background::after,
.animated-background .blob-yellow {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* BLOB BLU (sinistra -> destra) */
.animated-background::before {
  background: radial-gradient(circle, var(--blob-blue), transparent);
  width: 450px;
  height: 450px;
  top: 80%;
  left: 10%;
  animation: moveBlobBlueLR 15s linear infinite, blobFade 15s ease-in-out infinite;
}

/* BLOB FUCSIA (destra -> sinistra) */
.animated-background::after {
  background: radial-gradient(circle, var(--blob-fuchsia), transparent);
  width: 350px;
  height: 350px;
  top: 75%;
  right: 10%;
  animation: moveBlobFuchsiaRL 9s linear infinite, blobFade 9s ease-in-out infinite;
}

/* BLOB GIALLO (sotto -> sopra) */
.animated-background .blob-yellow {
  background: radial-gradient(circle, var(--blob-yellow), transparent);
  width: 300px;
  height: 300px;
  top: 90%;
  left: 50%;
  animation: moveBlobYellowUpDown 11s linear infinite, blobFade 11s ease-in-out infinite;
}

/* Dissolvenza */
@keyframes blobFade {
  0%,
  100% {
    opacity: 0;
  }
  20%,
  80% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Fade-in generale background */
@keyframes fadeInBackground {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* BLOB BLU (Sinistra -> Destra + Pulsazione) */
@keyframes moveBlobBlueLR {
    0% { 
        transform: translateX(0vw) translateY(-90vh) scale(0.8); 
    }
    25% { 
        transform: translateX(20vw) translateY(-80vh) scale(1.1); /* Si ingrandisce */
    }
    50% { 
        transform: translateX(65vw) translateY(-50vh) scale(0.7); /* Si rimpicciolisce */
    }
    75% { 
        transform: translateX(100vw) translateY(-30vh) scale(0.5); 
    }
    100% { 
        transform: translateX(150vw) translateY(0%) scale(1.6); /* Pulsazione massima */
    }
}

/* BLOB FUCSIA (Destra -> Sinistra + Pulsazione) */
@keyframes moveBlobFuchsiaRL {
    0% { 
        transform: translateX(0) translateY(-50%) scale(1.2); 
    }
    33% { 
        transform: translateX(-80vw) translateY(-30%) scale(1.6); 
    }
    66% { 
        transform: translateX(-160vw) translateY(-70%) scale(1.1); 
    }
    100% { 
        transform: translateX(-250vw) translateY(-50%) scale(1.4); 
    }
}

/* BLOB GIALLO (Sotto -> Sopra + Effetto "Respiro") */
@keyframes moveBlobYellowUpDown {
    0% { 
        transform: translateX(-50%) translateY(0) scale(0.5); 
    }
    50% { 
        /* Quando è in alto, diventa enorme e "morbido" */
        transform: translateX(-50%) translateY(-65vh) scale(1.8); 
    }
    100% { 
        transform: translateX(-50%) translateY(0) scale(0.5); 
    }
}

/* Adattamenti mobile */
@media (max-width: 768px) {
  .animated-background::before {
    width: 280px;
    height: 280px;
    top: 80%;
  }

  .animated-background::after {
    width: 250px;
    height: 250px;
    top: 75%;
  }

  .animated-background .blob-yellow {
    width: 220px;
    height: 220px;
    top: 90%;
  }

  @keyframes moveBlobBlueLR {
    0% {
      transform: translateX(0%) translateY(-50%) scale(0.6);
      opacity: 0.7;
    }
    50% {
      transform: translateX(120vw) translateY(-50%) scale(0.9);
      opacity: 1;
    }
    100% {
      transform: translateX(250vw) translateY(-50%) scale(0.6);
      opacity: 0.7;
    }
  }
}

/* =========================   HERO PHONE / PARALLAX CARD   ========================= */
.hero-image-container {
  flex: 1.2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 600px;
  position: relative;
}

.phone-wrapper {
  position: relative;
  width: 400px;
  height: auto;
}

.phone-frame {
  position: relative;
  width: 100%;
  display: block;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0px 20px 40px rgba(0, 0, 0, 0.25));
}

.screen-content-mask {
  position: absolute;
  z-index: 5;
  overflow: hidden;
  border-radius: 34px;
  top: 2.5%;
  left: 22%;
  width: 62%;
  height: 94%;
  transform: perspective(var(--screen-perspective))
    rotateX(var(--screen-rotate-x)) rotateY(var(--screen-rotate-y))
    rotateZ(var(--screen-rotate-z)) skewY(var(--screen-skew-y));
  transform-style: preserve-3d;
}

.scrolling-images-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  transform: translateY(var(--screen-scroll-y));
  will-change: transform;
  transition: transform 0.1s linear;
}

.scrolling-images-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1px;
}

.parallax-card {
  position: absolute;
  z-index: 20;
  top: 20%;
  right: 10%;
  width: 220px;
  background: var(--glass-bg);
  backdrop-filter: blur(calc(var(--glass-blur) * 1.5));
  -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 1.5));
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  transform: perspective(var(--card-perspective))
    rotateX(var(--card-rotate-x)) rotateY(var(--card-rotate-y))
    rotateZ(var(--card-rotate-z)) translateY(var(--card-scroll-y));
  will-change: transform;
  transition: transform 0.1s ease-out;
}

.parallax-card.bottom {
  top: 64%;
  right: -11%;
  top: 54%;
  transform: perspective(calc(var(--card-perspective) - 250px)) rotateX(calc(var(--card-rotate-x) - 09deg)) rotateY(calc(var(--card-rotate-y) + 08deg)) rotateZ(calc(var(--card-rotate-z) + 0deg)) translatey(calc(var(--card-scroll-y) - 30px));
  width: 290px;
}

.card-glass-content {
  padding: 15px;
  text-align: left;
}

.t-title {
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 5px;
  color: var(--heading-color);
}

.t-date {
  font-size: 0.8rem;
  color: #6b7280;
}

.t-wish {
  font-weight: 700;
  color: var(--primary-color-darker);
  margin-top: 8px;
  font-size: 0.85rem;
}

/* =========================   FORM REGISTRAZIONE (HOME)   ========================= */
.signup {
  background: rgba(0, 29, 255, 0.11);
  /* border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: 1px solid rgba(255, 255, 255, 0.4);
  border-left: 1px solid rgba(255, 255, 255, 0.5); */
  padding: 80px 10%;
  text-align: center;
  padding-top:20px;
  color: #fff;
}

.signup h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #fff;
}

.signup form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 450px;
  margin: 0 auto;
}

.signup input,
.signup button {
  padding: 14px;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
}

.signup input {
  background: #f4f7fa;
}

/* Pack Google + email (home / landing) */
.home-signup-oauth {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 2px;
}

.home-signup-google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  transition: opacity 0.15s ease, box-shadow 0.15s ease;
}

.home-signup-google-btn.is-disabled {
  opacity: 0.72;
}

.home-signup-google-btn:hover {
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.12);
}

.home-signup-consent {
  text-align: left;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.12);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.home-signup-consent.is-collapsed[hidden] {
  display: none;
}

.home-signup-consent.is-nudge {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95), 0 8px 22px rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.2);
}

.home-signup-consent-hint {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.home-signup-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 2px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.home-signup-divider::before,
.home-signup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

.home-signup-checks {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.home-signup-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #fff;
  font-size: 0.92rem;
  line-height: 1.4;
  cursor: pointer;
  border-radius: 8px;
  padding: 4px 2px;
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.home-signup-check input {
  margin-top: 3px;
  flex: 0 0 auto;
  min-width: auto;
  width: auto;
  padding: 0;
}

.home-signup-check a {
  color: #fff;
  text-decoration: underline;
}

.home-signup-check.is-nudge {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
}

.home-signup-privacy {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
  line-height: 1.45;
}

.home-signup-privacy a {
  color: #fff;
  text-decoration: underline;
}

.signup .home-signup-submit {
  align-self: center;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-left: auto;
  margin-right: auto;
  border-radius: 12px;
}

/* =========================   FORM FILTRI (OFFERTE + BANDI)   ========================= */
.filter-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px 18px 18px;
  border-radius: 18px;
  align-items: stretch;
  max-width: 90%;
  margin: auto auto 20px;

  /* Glassmorphism coerente con la hero */
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-top: 1px solid rgba(255, 255, 255, 0.65);
  border-left: 1px solid rgba(255, 255, 255, 0.75);

  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);

  /* Fondamentale: non taglia l'ombra dei bottoni */
  overflow: visible;
}

/* Wrapper header+contenuto (se vuoi un titolo/collapse in futuro) */
.filter-header-and-content-wrapper {
  width: 100%;
}

/* Contenuto collassabile (eventuale) */
.filter-collapsible-content {
  width: 100%;
  overflow: visible; /* NON hidden, altrimenti taglia le ombre */
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Wrapper orizzontale scrollabile per i filtri */
.scrollable-filters-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  flex-shrink: 0;
}

/* Contenitore vero e proprio dei campi */
.filter-container {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 10px;
  padding: 4px 2px;
  width: fit-content;
  justify-content: flex-start;
  align-items: flex-end;
}

/* Gruppi input/select */
.filter-group {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 150px;
}

.filter-group.date-filter {
  flex-direction: row;
  align-items: center;
  gap: 5px;
}

/* Label */
.filter-group label {
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: rgba(15, 23, 42, 0.8);
}

/* Input e select uniformi */
.filter-group input,
.filter-group select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.9rem;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.6);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
  height: 40px;
}

.filter-group input:focus,
.filter-group select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
  background-color: #ffffff;
}

.filter-group input[type='number'] {
    max-width: 150px;
}


/* Azioni in fondo al form */
.filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  margin-top: 4px;
  align-self: center;
}

/* Bottoni del form filtri: riusano lo stile glass globale */
.apply-filters-btn,
.save-search-btn {
  /* NIENTE background-fill qui: eredita dal blocco bottoni globale */
  min-width: 200px;
}

/* Su mobile i filtri vanno a colonna */
@media (max-width: 768px) {
  .filter-container {
    display: inline-flex;
    flex-wrap: nowrap;
    width: fit-content;
  }

  .filter-group {
    min-width: calc(50% - 8px);
  }

  .filter-actions {
    justify-content: center;
  }
}

/* Bottoni Filtra, Candidati, Login: già gestiti come bottoni globali */

.apply-filters-btn,
.btn-candidati,
.btn-login-for-apply {
  min-width: fit-content;
}

/* .apply-filters-btn:hover, */
.btn-candidati:hover,
.btn-login-for-apply:hover {
  background-color: #0056b3;
}

/* =========================   POPUP “SALVA RICERCA”   ========================= */
/* .save-search-btn {
  background-color: #28a745;
  color: #ffffff;
  border-radius: 8px;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
} */

.save-search-popup {
  position: fixed;
  bottom: 20px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 15px 40px 15px 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.save-search-popup p {
  margin: 0;
  font-size: 0.95em;
  color: #333;
  line-height: 1.4;
  display: inline-block;
  padding-right: 10px;
}

.save-search-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.save-search-popup .highlight-text {
  font-weight: bold;
  color: #28a745;
}

.close-popup-btn {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  font-size: 1.2em;
  color: #666;
  cursor: pointer;
  padding: 5px;
  line-height: 1;
}

.save-search-btn-popup {
  background: none;
  border: 1px solid #28a745;
  border-radius: 5px;
  color: #28a745;
  cursor: pointer;
  padding: 8px 12px;
  margin-left: 10px;
  font-size: 0.9em;
  transition: background-color 0.3s ease, color 0.3s ease;
}

@keyframes continuousMarqueeMobile {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(calc(-100% - 100vw));
  }
}

@keyframes continuousMarqueeDesktop {
  0% {
    transform: translateX(100vw);
  }
  100% {
    transform: translateX(calc(-100% - 100vw));
  }
}

/* =========================   CARDS OFFERTE / BANDI   ========================= */
.job-card,
.bando-card {
  position: relative;
  background: var(--card-bg);
  padding: 20px;
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  border: 1px solid var(--card-border);
  transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out,
    border-color 0.2s ease-in-out;
  margin-bottom: 15px;
}

.job-card[data-offer-url] {
  cursor: pointer;
}

.job-card[data-offer-url]:hover {
  transform: scale(1.02);
  z-index: 2;
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
}

.job-card-header,
.job-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.job-title-main {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--primary-color);
}

.job-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.job-status-inactive {
  font-weight: 400;
  font-size: 0.85rem;
  color: #d9534f;
  margin-left: 4px;
}

.job-info {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 10px;
  margin-bottom: 0;
}

.job-info p {
  display: flex;
  justify-content: space-between;
  padding: 8px 15px;
  background: #f9f9f9;
  border-radius: 5px;
  font-size: 0.9rem;
  margin: 3px 0;
}

.job-info .category-p {
  background-color: #fef9c3;
  color: #854d00;
}

/* Azioni */
.job-actions-front {
  margin-top: 10px;
  text-align: right;
}

.job-apply-form {
  display: inline-block;
  margin: 0;
  width: -webkit-fill-available;
}

/* Referral panel visuals: /css/referral_panel.css */

/* =========================   POPUP GENERICI / OVERLAY   ========================= */
.overlay,
.overlay-login-prompt {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.popup,
.login-prompt-popup {
  display: none;
  position: fixed;
  border-radius: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-align: center;
}

/* =========================   MESSAGGI DI STATO / ALERT   ========================= */
.alert {
  padding: 12px 14px;
  border-radius: 14px;
  margin: 12px 0;
  font-size: 0.98rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.alert-success {
  color: #14532d;
  border-left: 5px solid #22c55e;
  background: rgba(34, 197, 94, 0.10);
}

.alert-error {
  color: #7f1d1d;
  border-left: 5px solid #ef4444;
  background: rgba(239, 68, 68, 0.10);
}

/* =========================   MEDIA QUERIES   ========================= */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    padding: 40px 15px 0 15px;
    justify-content: flex-start;
    text-align: center;
  }

  .hero .content {
    width: 100%;
    margin-bottom: 30px;
  }

  .hero-image-container {
    width: 100%;
    height: auto;
    min-height: 500px;
    align-items: flex-start;
  }

  .phone-wrapper {
    width: 280px;
    margin: 0 auto;
  }

  .parallax-card {
    width: 160px;
    right: auto;
    left: 40%;
    top: 25%;
  }

  .parallax-card.bottom {
    top: 80%;
    width: 240px;
  }

  .animated-background::before {
    width: 280px;
    height: 280px;
    top: 80%;
  }

  .animated-background::after {
    width: 250px;
    height: 250px;
    top: 75%;
  }

  .animated-background .blob-yellow {
    width: 220px;
    height: 220px;
    top: 90%;
  }

  @keyframes moveBlobBlueLR {
    0% {
      transform: translateX(0%) translateY(-50%) scale(0.6);
      opacity: 0.7;
    }
    50% {
      transform: translateX(120vw) translateY(-50%) scale(0.9);
      opacity: 1;
    }
    100% {
      transform: translateX(250vw) translateY(-50%) scale(0.6);
      opacity: 0.7;
    }
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 0 15px;
  }

  .hero h1 {
    margin-top: 40px;
    font-size: 1.8rem;
    line-height: 1.2;
  }

  .hero p {
    padding: 0 20px;
    font-size: 1rem;
  }

  .job-card {
    width: 80%;
    min-width: 70vw;
    margin-inline: auto;
  }
}

/* =========================   NAVBAR - RESET COMPLETO   ========================= */
/* Top bar con logo */
.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: var(--nav-bg-blur, rgba(255, 255, 255, 0.8));
  backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--nav-border-color, #dbdbdb);
  z-index: 1000;
  /* pointer-events: gestiti in navbar.css (avatar e azioni in top bar) */
}

.top-bar .logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--nav-accent-color, #0066cc);
}

.top-bar .logo a {
  text-decoration: none;
  color: inherit;
}

/* Icon nav */
.icon-nav {
  position: fixed;
  z-index: 1001;
  width: 100%;
}

/* Contenitore voci nav */
.nav-container {
  display: flex;
  justify-content: space-around;
  align-items: center;
  width: 100%;
  height: 60px;
  margin: 0 auto;
}

/* Voci nav */
.nav-item {
  text-decoration: none;
  color: var(--nav-inactive, #b0b0b0);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  flex: 1;
  height: 100%;
  cursor: pointer;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nav-item i {
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.nav-text {
  font-size: 9px;
  font-weight: 600;
  display: block;
}

/* Stato attivo */
.nav-item.active {
  color: var(--nav-active, #4a4a4a);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  background-color: var(--nav-active, #4a4a4a);
}

/* Pubblica con accento */
.nav-publish i {
  color: var(--nav-accent-color, #0066cc);
  font-size: 1.4rem;
}

/* =========================   DROPDOWN INFO   ========================= */
.dropdown {
  position: relative;
}

/* Base pannello */
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 180px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.15);
  z-index: 1500;
  border-radius: 8px;
  border: 1px solid var(--nav-border-color, #dbdbdb);
  box-sizing: border-box;
}

.dropdown-content a {
  color: #555;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  font-size: 0.85rem;
  text-align: center;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
  border-bottom: none;
}

.dropdown-content a:hover {
  background-color: #f9f9f9;
  color: var(--nav-accent-color, #2563eb);
}

.dropdown-content a.active {
  font-weight: 700;
  color: var(--nav-accent-color, #2563eb);
}

/* Stato aperto via JS */
.dropdown-content.info-open {
  display: block;
  right: -410%;
}

/* =========================   PANNELLO TEMA (OCCHIO)   ========================= */
.theme-nav-item {
  position: relative;
}

.theme-nav-item .nav-link {
  cursor: pointer;
}

.theme-panel {
  display: none;
  position: absolute;
  left: -110%;
  background-color: rgba(255,255,255,0.96);
  min-width: 220px;
  max-width: 260px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1500;
  border-radius: 12px;
  border: 1px solid var(--nav-border-color, #dbdbdb);
  box-sizing: border-box;
  padding: 10px 12px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: none;
  flex-direction: column;
  gap: 8px;
}

.theme-panel.theme-panel-open {
  display: flex;
}

/* Contenuti interni tema */
.theme-mode-row,
.theme-style-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.theme-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nav-active, #111827);
}

/* Toggle light/dark neutro */
.theme-mode-switch {
  position: relative;
  width: 70px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--nav-border-color, #d1d5db);
  background: var(--footer-border-top);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.theme-mode-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--nav-inactive, #9ca3af);
  z-index: 1;
  margin-top: 4px;
}

.theme-mode-knob {
  position: absolute;
  width: 32px;
  height: 22px;
  border-color: var(--bg-color);
  border-radius: 999px;
  background: #ffffff;
  /* box-shadow:
    0 4px 10px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(148, 163, 184, 0.35); */
  left: 2px;
  transition: transform 0.25s ease;
}

.theme-mode-switch[data-mode="dark"] {
  background: #111827;
  border-color: #1f2937;
}

.theme-mode-switch[data-mode="dark"] .theme-mode-knob {
  transform: translateX(36px);
}

/* Stili Glass / Cartoon / Minimal */
.theme-style-options {
  display: flex;
  gap: 6px;
}

.theme-style-option {
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.7);
  padding: 4px 8px;
  font-size: 0.75rem;
  cursor: pointer;
  color: var(--nav-inactive, #9ca3af);
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.theme-style-option:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-1px);
}

.theme-style-option.theme-style-option-active {
  border-color: var(--nav-accent-color, #2563eb);
  color: var(--nav-active, #111827);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.16);
}

/* Lista stili nel pannello tema, con la stessa grafica di dropdown-content */
.theme-style-list {
  margin-top: 4px;
  border-top: 1px solid #f0f0f0;
}

/* Usiamo i bottoni ma li stilizziamo come link della dropdown */
.theme-style-link {
  width: 100%;
  display: block;
  text-align: center;
  padding: 10px 14px;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  cursor: pointer;
  color: #555;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Ultimo elemento senza bordo bottom (opzionale) */
.theme-style-link:last-child {
  border-bottom: none;
}

/* Hover come dropdown-content a:hover */
.theme-style-link:hover {
  background-color: #f9f9f9;
  color: var(--nav-accent-color, #2563eb);
}

/* Stato attivo, analogo a .dropdown-content a.active */
.theme-style-link.theme-style-link-active {
  font-weight: 700;
  color: var(--nav-accent-color, #2563eb);
}

/* =========================   RESPONSIVE NAVBAR   ========================= */
/* Mobile: barra in fondo */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
    padding-bottom: 70px;
  }

  .icon-nav {
    bottom: 0;
    left: 0;
    height: 65px;
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--nav-border-color, #dbdbdb);
  }

  .nav-item.active::after {
    top: 0;
    width: 30%;
    height: 2px;
  }

  .dropdown-content {
    bottom: 65px;
    transform: translateX(-50%);
  }

  .theme-panel {
    bottom: 65px;
    transform: translateX(-50%);
  }
}

/* Desktop: barra in alto a destra */
@media (min-width: 769px) {
  body {
    padding-top: 60px;
    padding-bottom: 0;
  }

  .icon-nav {
    top: 0;
    right: 20px;
    width: auto;
    height: 60px;
    border-top: none;
  }

  .nav-container {
    gap: 5px;
    width: auto;
  }

  .nav-item {
    padding: 0 10px;
    flex: none;
  }

  .nav-item.active::after {
    bottom: 0;
    width: 60%;
    height: 2px;
  }

  .nav-text {
    font-size: 10px;
  }

  .dropdown-content {
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
  }

  .theme-panel {
    top: 60px;
    transform: translateX(-50%);
  }
}

/* =========================   FOOTER (RIPRISTINO LAYOUT ORIGINALE)   ========================= */
.main-footer {
    background-color: var(--footer-bg, #f7f9fc);
    color: var(--footer-text, #4a4a4a);
    font-family: var(--font-family-base, 'Inter', sans-serif);
    padding: 30px 20px;
    border-top: 1px solid var(--footer-border-top, #e0e0e0);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    gap: 20px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 15px;
}

.footer-title {
    color: #666;
    font-size: 1rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.footer-section p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 8px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 6px;
}

.footer-section a {
    color: var(--footer-link, #777);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--footer-link-hover, #0066cc);
    text-decoration: underline;
}

/* Pulsanti social */
.footer-social-share-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    justify-content: flex-start;
}

.footer-social-share-buttons a {
    color: #ffffff;
}

.footer-social-share-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-social-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

.footer-whatsapp-btn {
    background-color: var(--footer-whatsapp, #25D366);
}

.footer-whatsapp-btn:hover {
    background-color: #1DA851;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.2);
}

.footer-telegram-btn {
    background-color: var(--footer-telegram, #0088CC);
}

.footer-telegram-btn:hover {
    background-color: #006AA7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 136, 204, 0.2);
}

.footer-facebook-btn {
    background-color: var(--footer-facebook, #3b5998);
}

.footer-facebook-btn:hover {
    background-color: #2d4373;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(59, 89, 152, 0.2);
}

.contact-email {
    margin-top: 15px;
    font-size: 0.85rem;
    color: var(--footer-text, #4a4a4a);
}

.contact-email a {
    color: var(--footer-link-hover, #0066cc);
    font-weight: 600;
}

/* Footer bottom + testo animato */
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid var(--footer-border-top, #e0e0e0);
    font-size: 0.8rem;
    color: #555;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.heart-text-container {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1px 5px;
    border-radius: 3px;
    background-color: var(--footer-highlight-bg, #f0f0f0);
    overflow: hidden;
    vertical-align: baseline;
    line-height: 1.2;
    height: 1.3em;
    min-width: 90px;
    width: max-content;
    text-align: center;
    transition: background-color 0.5s ease;
}

.heart-text {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(100%);
    opacity: 0;
    font-weight: 700;
    white-space: nowrap;
    color: #333;
}

/* Animazione */
@keyframes slideUp {
    0% { transform: translateY(100%); opacity: 0; }
    30% { transform: translateY(0%);   opacity: 1; }
    70% { transform: translateY(0%);   opacity: 1; }
    100%{ transform: translateY(-100%);opacity: 0; }
}

.heart-text.slide-in {
    animation: slideUp 2.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* =========================   RESPONSIVE FOOTER (COME PRIMA)   ========================= */

/* Tablet / small desktop */
@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-section {
        min-width: unset;
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-section ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-social-share-buttons {
        justify-content: center;
        gap: 8px;
        margin-top: 0px;
    }

    .footer-social-share-section {
        align-items: center;
        border-top: 1px solid #e0e0e0;
    }

    .contact-email {
        text-align: center;
        margin-top: 15px;
    }

    .footer-title {
        margin-bottom: 10px;
        display: none;
    }

    .footer-section p {
        margin-bottom: 5px;
    }
}

/* Mobile stretto: due colonne Links/Legal + social sotto (come nel CSS originale) */
@media (max-width: 480px) {
    .main-footer {
        padding: 20px 10px;
    }

    /* Nasconde titoli e descrizione sulla sezione 'about' */
    .footer-section.about .footer-title,
    .footer-section.about p {
        display: none;
    }

    .footer-section.about {
        margin-bottom: 0;
    }

    /* Nasconde i titoli delle sezioni links e legal e social */
    .footer-section.links .footer-title,
    .footer-section.legal .footer-title,
    .footer-section.social-share-section .footer-title {
        display: none;
    }

    .footer-section p,
    .footer-section a,
    .footer-bottom p {
        font-size: 0.78rem;
    }

    .heart-text-container {
        font-size: 0.8rem;
        height: 1.1em;
        min-width: 100px;
        width: max-content;
        padding: 1px 4px;
    }

    .footer-bottom {
        padding-top: 20px;
        margin-top: 0px;
        gap: 3px;
    }

    /* QUI la disposizione che ti piaceva: 
       Navigazione e Informazioni Legali in 2 colonne */
    .footer-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-around;
        align-items: flex-start;
        gap: 15px;
    }

    .footer-section.links,
    .footer-section.legal {
        flex: 1 1 45%;
        min-width: 140px;
        margin-bottom: 0;
        text-align: left;
    }

    .footer-section.links ul,
    .footer-section.legal ul {
        align-items: flex-start;
    }

    .footer-section.social-share-section {
        flex: 1 1 100%;
        order: 3;
        margin-top: 15px;
        align-items: center;
        border-top: 1px solid #e0e0e0;
    }

    .footer-social-share-buttons {
        justify-content: center;
    }

    .contact-email {
        margin-top: 20px;
    }
}

/* =========================   NUOVO CSS SEZIONE PLANNING   ========================= */
.planning-promo-section {
    padding: 60px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(calc(var(--glass-blur) * 1.5));
    -webkit-backdrop-filter: blur(calc(var(--glass-blur) * 1.5));
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}
.planning-promo-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.planning-text {
    flex: 1;
    min-width: 300px;
}
.planning-text h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 15px;
    line-height: 1.2;
}
.planning-text p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 25px;
    line-height: 1.6;
}
.btn-planning {
    display: inline-block;
    background-color: #2563eb;
    color: white;
    padding: 12px 28px;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, background-color 0.2s;
}
.btn-planning:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}
.planning-visual {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
}
/* Card stilizzata CSS per rappresentare il planning */
.planning-card-visual {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid #e2e8f0;
    width: 100%;
    max-width: 400px;
    position: relative;
}
.pc-header { display: flex; gap: 10px; margin-bottom: 15px; }
.pc-avatar { width: 40px; height: 40px; background: #e0f2fe; border-radius: 50%; }
.pc-lines { flex: 1; display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.pc-line { height: 8px; background: #f1f5f9; border-radius: 4px; width: 80%; }
.pc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pc-cell { height: 30px; background: #f8fafc; border-radius: 6px; border: 1px solid #e2e8f0; }
.pc-cell.active { background: #dbeafe; border-color: #bfdbfe; }
.pc-cell.active-red { background: #fee2e2; border-color: #fecaca; }
.planning-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #10b981;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3);
}
@media (max-width: 768px) {
    .planning-promo-section { padding: 40px 15px; }
    .planning-text h2 { font-size: 1.8rem; }
    .planning-container { flex-direction: column; text-align: center; }
    .planning-text { text-align: center; }
}

/* =========================   SEO TEXT GLASS CARD   ========================= */
.seo-glass-card {
    background: var(--glass-bg, rgba(255, 255, 255, 0.65));
    backdrop-filter: blur(calc(var(--glass-blur, 10px) * 1.5));
    -webkit-backdrop-filter: blur(calc(var(--glass-blur, 10px) * 1.5));
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.9));
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    padding: 40px 50px;
    max-width: 900px;
    margin: 40px auto;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Aggiungiamo un piccolo accento visivo laterale */
.seo-glass-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 6px;
    background: var(--glass-bg, #0066cc);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
}

.seo-glass-card h3 {
    font-size: 1.8rem;
    color: var(--heading-color, #111827);
    margin-bottom: 20px;
    margin-top: 0;
    line-height: 1.3;
}

.seo-glass-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 15px;
}

/* Adattamento per dispositivi mobili */
@media (max-width: 768px) {
    .seo-glass-card {
        padding: 30px 20px;
        margin: 20px 15px;
    }
    .seo-glass-card h3 {
        font-size: 1.5rem;
    }
}