.card-link-full {
  display: block;
  color: inherit;
  text-decoration: none !important;
  padding-bottom: 0;
  transition: box-shadow 0.18s;
}
.card-link-full h3,
.card-link-full p {
  color: inherit;
  text-decoration: none !important;
}
.card-link-full:hover h3 {
  color: #8b6d36;
}
.card-link-full:focus {
  outline: 2px solid #c9a96e;
  outline-offset: 2px;
}
.card-img-link {
  display: inline-block;
  margin-bottom: 10px;
}
.card-img-link img {
  transition: transform 0.2s;
}
.card-img-link:hover img {
  transform: scale(1.08) rotate(-2deg);
  box-shadow: 0 2px 12px rgba(201,169,110,0.13);
}
/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8f9fc;
    color: #222;
    line-height: 1.6;
}

/* TOP BAR */
.top-bar {
    background: #c9a96e;
    text-align: center;
    padding: 8px;
    font-size: 12px;
}

.top-bar a {
    font-weight: bold;
    margin-left: 10px;
    color: black;
}

/* HEADER */
.header {
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    flex-wrap: wrap;
    overflow: visible; /* per mega menu */
}

/* LOGO */
.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

/* MENU DESKTOP */
nav ul.menu-desktop {
    display: flex;
    gap: 30px;
    list-style: none;
}

nav ul.menu-desktop li a {
    text-decoration: none;
    color: #0a2540;
    font-weight: 500;
    position: relative;
}

nav ul.menu-desktop li a::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #c9a96e;
    transition: 0.3s;
}

nav ul.menu-desktop li a:hover::after {
    width: 100%;
}

/* BUTTON */
.btn-primary {
    background: linear-gradient(135deg, #c9a96e, #b8965a);
    color: black;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

/* HERO */
.hero {
    height: 90vh;
    background: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f') center/cover;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.overlay {
    position: absolute;
    inset: 0;
    background: rgba(10,37,64,0.75);
}

.hero-content {
    position: relative;
    color: white;
    text-align: center;
    max-width: 700px;
}

.hero h1 {
    font-size: 48px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 20px;
}

.hero p {
    margin-bottom: 40px;
}

/* TRUST */
.trust {
    margin-top: 15px;
    font-size: 14px;
}

/* CONTAINER */
.container {
    padding: 60px 40px;
}

/* FEATURES */
.features {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.card {
    background: white;
    padding: 30px;
    flex: 1;
  display: flex;
  flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: 0.3s;
    border-radius: 10px;
    text-align: center;
}

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

.card img {
    display: block;
    margin: 0 auto 15px;
    width: 60px;
    height: 60px;
}

.card-main-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.card-main-link:hover h3 {
  color: #8b6d36;
}

.card p {
  margin-bottom: 20px;
}

.card-download {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #0a2540;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #d7dfe9;
  border-radius: 999px;
  padding: 9px 14px;
  transition: all 0.2s ease;
}

.card-download:hover {
  border-color: #c9a96e;
  color: #8b6d36;
  background: #fff9ef;
}

/* FORM CONTATTI MODERNO */
.form-top form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 500px;
    margin: 40px auto 0 auto;
}

.form-top input,
.form-top textarea {
    padding: 15px 18px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-top input:focus,
.form-top textarea:focus {
    outline: none;
    border-color: #c9a96e;
    box-shadow: 0 5px 15px rgba(201,169,110,0.3);
}

.form-top button {
    background: linear-gradient(135deg, #c9a96e, #b8965a);
    color: black;
    border: none;
    padding: 15px 25px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.form-top button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* CONTACT INFO */
.contact-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    margin-bottom: 8px;
    color: #0a2540;
}

.contact-info p a {
    text-decoration: none;
    color: #c9a96e;
    font-weight: 500;
}

.contatti-page .contact-info {
  margin-top: 42px;
}

/* CTA FINALE */
.cta-final {
    text-align: center;
    padding: 80px 20px;
    background: #0a2540;
    color: white;
}

.cta-final h2 {
    font-size: 36px;
    margin-bottom: 30px;
}

.cta-final p {
    font-size: 18px;
    margin-bottom: 50px;
}

/* BLOG STORIE VERE */
.blog-storie {
  background: linear-gradient(180deg, #f8f9fc 0%, #eef3fb 100%);
  border-top: 1px solid #e3e8f2;
}

.blog-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.blog-head h2 {
  font-size: 34px;
  color: #1f4e8c;
  margin-bottom: 10px;
}

.blog-head p {
  color: #456;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.story-card {
  background: #fff;
  border: 1px solid #dde5f2;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 8px 22px rgba(10,37,64,0.06);
}

.story-card h3 {
  color: #1f4e8c;
  margin-bottom: 12px;
  font-size: 22px;
}

.story-card p {
  color: #2a2f38;
  line-height: 1.75;
}

.story-card p + p {
  margin-top: 14px;
}

.chi-siamo-page {
  max-width: 1080px;
  margin: 0 auto;
}

.chi-siamo-image {
  margin: 14px 0 26px;
}

.chi-siamo-image img {
  width: 100%;
  max-width: 820px;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* FOOTER COMPATTO */
footer {
    background: #0a2540;
    color: white;
    text-align: center;
  padding: 6px 12px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 -3px 10px rgba(0,0,0,0.08);
    letter-spacing: 0.5px;
}

footer .container {
  padding: 6px 12px;
}

footer a {
    color: #c9a96e;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.footer-social {
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.footer-copy {
  font-size: 10px;
  line-height: 1.4;
  opacity: 0.9;
  margin-top: 6px;
}

.social-icons {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.social-icons a {
  color: #ffffff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  opacity: 0.95;
  transition: opacity 0.2s ease;
}

.social-icons a:hover {
  opacity: 1;
}

.social-icons svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #0a2540;
}

/* MENU MOBILE */
.menu-mobile {
    display: flex;
    flex-direction: column;
    gap: 15px;
    list-style: none;
    background: white;
    padding: 20px;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.menu-mobile.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.menu-mobile li a {
    display: block;
    width: 100%;
    padding: 12px 0;
    color: #0a2540;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
}

/* MOBILE */
@media(max-width:768px){

    .menu-desktop {
        display: none !important;
    }

    .hamburger {
        display: flex;
    }

    .nav {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .btn-primary {
        order: 3;
        width: 100%;
        margin-top: 10px;
        text-align: center;
        font-size: 14px;
        padding: 8px 20px;
    }

    .features {
        flex-direction: column;
        gap: 15px;
    }

    .card img {
        width: 50px;
        height: 50px;
        margin-bottom: 10px;
    }

    .logo-img {
        height: 45px;
    }

    .hero h1 {
        font-size: 32px;
    }

    .form-top form {
        width: 100%;
        margin: 30px 20px 0 20px;
    }

    .contatti-page {
      text-align: center;
    }

    .contatti-page .form-top form {
      margin: 24px auto 0;
      max-width: 520px;
    }

    .contatti-page .contact-info,
    .contatti-page .contact-info p,
    .contatti-page .contact-info h3,
    .contatti-page .form-success,
    .contatti-page .form-error {
      text-align: center;
    }

    .cta-final h2 {
        margin-bottom: 20px;
    }

    .cta-final p {
        margin-bottom: 40px;
    }

    .footer-social {
      flex-direction: column;
      gap: 8px;
    }

    .blog-head h2 {
      font-size: 28px;
    }

    .blog-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }
}

/* ========================= */
/* 🔹 MEGA MENU DESKTOP 🔹 */
.mega-menu {
    position: relative;
}

.mega-content {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: #fff;
    padding: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 999;
}

.mega-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mega-column ul li a {
    display: block;
    padding: 10px 15px;
    color: #222;
    text-decoration: none;
}

.mega-column ul li a:hover {
    background: #f5f5f5;
}

.mega-menu.active .mega-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* ========================= */
/* 🔹 MOBILE SUBMENU CON FRECCIA 🔹 */
.menu-mobile li.has-submenu > a::after {
    content: '▸'; /* freccia verso destra */
    float: right;
    transition: transform 0.3s ease;
}

.menu-mobile li.has-submenu.open > a::after {
    transform: rotate(90deg); /* freccia verso il basso */
}

.mobile-submenu {
    list-style: none;
    padding-left: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.menu-mobile li.has-submenu.open .mobile-submenu {
    max-height: 500px; /* permette di vedere tutte le voci */
}
.form-success {
    color: green;
    font-weight: 600;
    margin-bottom: 15px;
    background: #e6f4ea;
    padding: 10px 15px;
    border-radius: 6px;
}

.form-error {
    color: red;
    font-weight: 600;
    margin-bottom: 15px;
    background: #fdecea;
    padding: 10px 15px;
    border-radius: 6px;
}
.center-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.center-image img {
  max-width: 300px; /* riduci qui (es. 200px / 220px / 280px) */
  height: auto;
}
.zero-spese {
  display: flex;
  flex-wrap: wrap;
}

.zero-left {
  flex: 1;
  background: #2ca25f;
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.zero-right {
  flex: 1;
  background: #1f4e8c;
  color: white;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.zero-left h2 {
  font-size: 38px;
  margin-top: 0;
  margin-bottom: 10px;
  color: white;
}

.zero-left h3 {
  margin-top: 30px;
  color: #ffffff;
}

.zero-left ul {
  margin-top: 10px;
  padding-left: 10px;
}

.zero-right h2 {
  font-size: 38px;
  margin-top: 0;
  margin-bottom: 10px;
  color: white;
}

.zero-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: none;
  object-fit: contain;
  align-self: flex-start;
  margin: 0 0 10px 0;
}

.subtitle {
  opacity: 0.9;
  margin-bottom: 20px;
}

.sedi {
  margin-top: 30px;
}


@media (max-width: 768px) {

  /* 🔹 layout base */
  .container,
  .zero-spese {
    flex-direction: column;
    width: 100%;
    overflow: hidden;
  }

  /* 🔹 colonne */
  .left, 
  .right,
  .zero-left,
  .zero-right {
    width: 100%;
    padding: 20px; /* ridotto */
    text-align: center;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: auto; /* 🔥 FIX principale */
  }

  /* 🔹 testo */
  .left p,
  .right p,
  .zero-left ul,
  .zero-right p {
    max-width: 95%;
  }

  /* 🔹 immagine centrale */
  .center-image {
    width: 100%;
    padding: 10px;
  }

  .center-image img {
    max-width: 220px;
    width: 100%;
  }

}

body {
  overflow-x: hidden;
}
.left,
.right,
.zero-left,
.zero-right {
  text-align: left; /* 🔥 testo a sinistra */
}

.left p,
.right p,
.zero-right p,
.zero-left ul {
  text-align: left;
}

.center-image img.img-malasanita {
  width: 80px;
  max-width: none; /* 🔥 fondamentale */
  height: auto;
  margin-bottom: 10px;
}

/* MOBILE */
@media (max-width: 768px) {

    .menu-desktop {
        display: none !important;
    }

    .nav {
        padding: 15px 20px;
    }

    .container {
        padding: 30px 20px;
    }

    .container,
    .zero-spese {
        flex-direction: column;
    }

    .left,
    .right,
    .zero-left,
    .zero-right {
        width: 100%;
        padding: 20px;
        text-align: left;
    }

    .left p,
    .right p {
        max-width: 100%;
    }

    .chi-siamo-page {
      padding: 34px 26px;
    }

    .chi-siamo-image {
      margin: 10px 0 22px;
    }

    .zero-right .zero-logo {
      align-self: center;
      margin: 0 auto 10px;
    }

    /* 🔥 FIX IMMAGINE MALASANITA */
    .center-image {
        padding: 0;
    }

    .center-image img.img-malasanita {
        width: calc(100% + 40px);
        margin-left: -20px;
        margin-right: -20px;
        max-width: none;
    }
}
/* DESKTOP immagine a tutta altezza */
@media (min-width: 769px) {

  .center-image {
    padding: 0;
    height: 100%;
  }

  .center-image img.img-malasanita {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 🔥 riempie senza deformare */
    display: block;
  }

}
@media (min-width: 769px) {

  .center-image {
    padding: 0;
    height: 300px;
    overflow: hidden;
  }

  .center-image img.img-malasanita {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

}
/* 🔹 STRUTTURA 3 COLONNE DESKTOP */
.malasanita-3col {
  display: flex;
  flex-wrap: wrap;
}

/* colonne */
.malasanita-3col .col {
  padding: 40px;
  box-sizing: border-box;
}

/* larghezze */
.malasanita-3col .left {
  width: 35%;
  background: #ffffff;
}

.malasanita-3col .center {
  width: 30%;
  padding: 0; /* niente padding per immagine */
}

.malasanita-3col .right {
  width: 35%;
  background: #f0f2f5;
}

/* immagine centrale */
.malasanita-3col .center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 768px) {

  .malasanita-3col {
    flex-direction: column;
  }

  .malasanita-3col .left,
  .malasanita-3col .center,
  .malasanita-3col .right {
    width: 100%;
  }

  .malasanita-3col .center img {
    height: auto;
  }

}
.malasanita-3col .left,
.malasanita-3col .right {
  padding: 15px 40px;
}
/* Attacca il blocco malasanita al menu */
.malasanita-3col {
  margin-top: 10px !important;
  padding-top: 0 !important;
}
.malasanita-3col .left .center-image {
  margin: 0;
  padding: 0;
  line-height: 0; /* elimina spazio invisibile */
}

.malasanita-3col .left .center-image img {
  display: block;
  margin: 0;
}
.malasanita-3col .left .center-image {
  margin-bottom: 5px; /* oppure 0 */
}
