/* ------------------------------
   RESET / BASE
------------------------------ */
body {
    margin: 0;
    font-family: "Inter", sans-serif;
    color: #1f2937;
}

h1, h2, h3, p {
    margin: 0;
}

img {
    user-select: none;
    max-width: 100%;
    height: auto;
}

/* ------------------------------
   HEADER
------------------------------ */
.header {
    width: 100%;
    padding: 16px 6%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 220px;
    margin-left: 40px;
}

.header-btn {
    padding: 10px 22px;
    background: #ffffff55;
    border-radius: 30px;
    border: 1px solid #ffffffaa;
    backdrop-filter: blur(6px);
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
}

.header-btn:hover {
    background: #ffffff99;
}

/* ------------------------------
   HERO
------------------------------ */
.hero {
    padding: 120px 8% 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background: linear-gradient(135deg, #FFECEE, #FFF6F2);
}

.hero-content {
    max-width: 500px;
    margin-left: 40px;
}

.hero h1 {
    font-size: 46px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1f2937;
}

.hero p {
    font-size: 18px;
    color: #4b5563;
    margin-bottom: 30px;
}

.cta {
    padding: 14px 26px;
    background-color: #DD8597;
    border: none;
    border-radius: 30px;
    font-size: 18px;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

.cta:hover {
    background-color: #c77586;
}

.hero-image img {
    width: 480px;
    margin-top: -40px;
    transform: rotate(-8deg);
    filter: drop-shadow(0 30px 60px rgba(0,0,0,0.18));
    border-radius: 38px;
}

/* ------------------------------
   FEATURES
------------------------------ */
.features {
    text-align: center;
    padding: 90px 8% 100px;
    background: linear-gradient(180deg, #FFF4F6 0%, #FFFFFF 100%);
}

.features-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1f2937;
}

.features-subtitle {
    font-size: 18px;
    opacity: 0.75;
    margin-bottom: 45px;
}

/* GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.feature-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transition: 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: #FFECEF;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.icon-wrapper img {
    width: 42px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.feature-card p {
    font-size: 16px;
    opacity: 0.7;
    line-height: 1.45;
}

/* ------------------------------
   AUDIENCE SECTIONS
------------------------------ */
.audience-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 90px 10%;
    gap: 40px;
}

.audience-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1f2937;
}

.audience-section .subtitle {
    font-size: 18px;
    margin-bottom: 20px;
    opacity: 0.75;
}

.audience-list {
    list-style: none;
    padding: 0;
    margin: 0 0 30px;
}

.audience-list li {
    font-size: 18px;
    margin-bottom: 10px;
    color: #374151;
}

.audience-image img {
    width: 360px;
    border-radius: 22px;
    object-fit: cover;
}

/* CTA SECONDARIA */
.cta.secondary {
    background-color: transparent;
    border: 2px solid #DD8597;
    color: #DD8597;
    padding: 12px 26px;
    border-radius: 30px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.2s;
}

.cta.secondary:hover {
    background-color: #DD8597;
    color: white;
}

/* Alternanza layout */
.family {
    flex-direction: row;
}

.rsa {
    flex-direction: row-reverse;
}

/* ------------------------------
   SICUREZZA / GDPR
------------------------------ */
.security-section {
    padding: 90px 10% 110px;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF4F6 70%);

}

.security-content {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.security-section h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1f2937;
}

.security-section .subtitle {
    font-size: 18px;
    opacity: 0.75;
    margin-bottom: 55px;
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.security-item {
    background: #fff;
    padding: 35px 25px;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
    text-align: center;
    transition: 0.25s;
}

.security-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}

.security-icon {
    margin-bottom: 22px;
}

.security-item h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.security-item p {
    font-size: 15px;
    opacity: 0.75;
    line-height: 1.45;
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 1100px) {
    .logo {
        height: 180px;
        margin-left: 20px;
    }

    .hero {
        padding: 110px 6% 50px;
        gap: 30px;
    }

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

    .hero-image img {
        width: 380px;
        margin-top: -20px;
    }

    .features-grid,
    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .audience-section {
        padding: 80px 8%;
        gap: 30px;
    }

    .audience-section h2,
    .security-section h2 {
        font-size: 34px;
    }

    .audience-image img {
        width: 300px;
    }
}

@media (max-width: 768px) {
    .logo {
        height: 120px;
        margin-left: 0;
    }

    .hero {
        padding: 110px 7% 40px;
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        margin-left: 0;
        max-width: 540px;
    }

    .hero-image img {
        width: 320px;
        margin-top: 10px;
        transform: rotate(-6deg);
    }

    .features,
    .security-section {
        padding: 70px 7% 70px;
    }

    .features-title,
    .security-section h2 {
        font-size: 32px;
    }

    .features-grid,
    .security-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .audience-section {
        flex-direction: column;
        text-align: center;
        padding: 70px 7%;
    }

    .family,
    .rsa {
        flex-direction: column;
    }

    .audience-image img {
        width: 260px;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 90px;
    }

    .hero {
        padding: 95px 6% 35px;
        gap: 24px;
    }

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

    .hero-image img {
        width: 260px;
        transform: rotate(-4deg);
    }

    .features,
    .security-section {
        padding: 55px 6% 60px;
    }

    .features-title,
    .security-section h2 {
        font-size: 26px;
    }

    .features-subtitle,
    .security-section .subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .features-grid,
    .security-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .audience-section {
        padding: 55px 6%;
    }

    .audience-image img {
        width: 230px;
    }
}
/* ------------------------------
   COME FUNZIONA
------------------------------ */
.how-section {
    padding: 90px 10% 110px;
    text-align: center;
    background: linear-gradient(180deg, #FFF4F6 0%, #FFFFFF 100%);
}

.how-section h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.how-subtitle {
    font-size: 18px;
    opacity: 0.75;
    margin-bottom: 55px;
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.how-step {
    background: #fff;
    padding: 40px 30px;
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
    transition: 0.25s ease;
}

.how-step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.how-icon {
    width: 80px;
    height: 80px;
    background: #FFECEF;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.how-step h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.how-step p {
    font-size: 16px;
    opacity: 0.75;
    line-height: 1.45;
}

/* ------------------------------
   RESPONSIVE — COME FUNZIONA
------------------------------ */

@media (max-width: 1100px) {
    .how-steps {
        grid-template-columns: 1fr 1fr;
    }
    .how-section h2 {
        font-size: 34px;
    }
}

@media (max-width: 768px) {
    .how-section {
        padding: 70px 7% 80px;
    }

    .how-section h2 {
        font-size: 32px;
    }

    .how-subtitle {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .how-steps {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .how-section {
        padding: 55px 6% 70px;
    }

    .how-section h2 {
        font-size: 26px;
    }

    .how-subtitle {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .how-step {
        padding: 30px 22px;
    }
}
/* ------------------------------
   CTA FINALE
------------------------------ */
.final-cta {
    padding: 100px 10%;
    text-align: center;
    background: transparent;
    border-radius: 0;
}

.final-cta h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
}

.final-cta p {
    font-size: 18px;
    opacity: 0.75;
    margin-bottom: 30px;
}

.cta.big {
    padding: 16px 34px;
    font-size: 20px;
    border-radius: 35px;
}

/* Responsive */
@media (max-width: 768px) {
    .final-cta {
        padding: 80px 8%;
    }

    .final-cta h2 {
        font-size: 32px;
    }

    .cta.big {
        font-size: 18px;
        padding: 14px 28px;
    }
}

@media (max-width: 480px) {
    .final-cta h2 {
        font-size: 26px;
    }

    .final-cta p {
        font-size: 16px;
    }
}
/* ------------------------------
   FOOTER
------------------------------ */
.footer {
    background: transparent;
    padding: 40px 10%;
    text-align: center;
    border-top: 1px solid #e5e7eb;
}

.footer-logo {
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-links {
    margin-bottom: 18px;
}

.footer-links a {
    margin: 0 12px;
    color: #6b7280;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s;
}

.footer-links a:hover {
    color: #DD8597;
}

.footer-copy {
    font-size: 14px;
    color: #9ca3af;
}

/* Responsive */
@media (max-width: 480px) {
    .footer-logo {
        height: 60px;
    }

    .footer-links a {
        font-size: 14px;
        margin: 0 8px;
    }

    .footer-copy {
        font-size: 13px;
    }
}

/* CONTENITORE UNICO PER EFFETTO GRADIENTE */
.cta-footer-wrapper {
    background: linear-gradient(
        180deg,
        #FFFFFF 0%,      /* inizio bianco */
        #FFECEE 100%     /* finisce nel colore primario */
    );
}


/* -------------------------------------
   WRAPPER SFONDO A GRADIENTE UNICO
-------------------------------------- */
.bg-wrapper {
  background: linear-gradient(
    to bottom,
    #FFECEE 0%,
    #FFFFFF 25%,
    #FFF4F6 55%,
    #FFFFFF 80%,
    #FFECEE 100%
  );
  width: 100%;
  min-height: 100vh;
}

/* ------------------------------
   PAGINA FAMIGLIE — SISTEMATA
------------------------------ */

/* Hero famiglie */
.hero-family .hero-content {
  max-width: 540px;
}

/* Sezione emergenze */
.emergency-section {
  padding: 90px 10% 110px;
  background: transparent; /* usa il gradiente globale */
}

.emergency-inner {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.emergency-section h2 {
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.emergency-subtitle {
  font-size: 18px;
  opacity: 0.8;
  margin-bottom: 45px;
}

.emergency-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.emergency-card {
  background: #ffffffcc; /* leggero bianco trasparente */
  border-radius: 22px;
  padding: 28px 24px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.06);
  backdrop-filter: blur(4px);
  text-align: left;
}

.emergency-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #111827;
}

.emergency-card p {
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
}

/* Sezione benefici famiglie */
.family-benefits {
  padding: 80px 10% 90px;
  background: transparent;
}

.family-benefits-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.family-benefits h2 {
  font-size: 34px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 32px;
}

.family-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.family-column h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: #111827;
}

.family-column ul {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
  line-height: 1.7;
}

/* Features per famiglie */
.features-family {
  padding-top: 80px;
  background: transparent;
}

/* Responsive famiglie */
@media (max-width: 1024px) {
  .emergency-grid,
  .family-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .emergency-section {
    padding: 70px 7% 80px;
  }

  .emergency-section h2 {
    font-size: 28px;
  }

  .family-benefits {
    padding: 60px 7% 70px;
  }

  .family-benefits h2 {
    font-size: 28px;
  }
}
