:root{
    --blu-principale:#243B64;
    --rosa-antico:#B76E79;
    --sfondo-caldo:#FAF7F2;
    --testo:#374151;
    --bianco:#FFFFFF;
    --bordo:#E7DFD8;
}

body{
    font-family:Arial, Helvetica, sans-serif;
    margin:0;
    background:var(--sfondo-caldo);
    color:var(--testo);
}

header{
    background:var(--blu-principale);
    padding:20px;
}


nav{
    display:flex;
    justify-content:center;
    flex-wrap:wrap;
    gap:12px;
}

nav a{
    color:var(--bianco);
    text-decoration:none;
    font-weight:600;
    transition:0.3s;
}
nav a:hover{
    background:rgba(255,255,255,0.18);
    color:var(--rosa-antico);
    transform:translateY(-2px);
}


main{
    max-width:900px;
    margin:50px auto;
    padding:20px;
}

h1{
    color:var(--blu-principale);
}

p{
    line-height:1.8;
    font-size:18px;
}
nav strong{
    font-size:24px;
    color:#ffffff;
    margin-right:40px;
    letter-spacing:1px;
}

nav{
    display:flex;
    align-items:center;
}

nav a{
    margin-left:0;
}
.hero-info{
    display:grid;
    grid-template-columns:repeat(3, 1fr);
    gap:20px;
    margin-top:35px;
    width:100%;
    box-sizing:border-box;
}

.info-card{
    background:#ffffff;
    padding:22px;
    border-radius:16px;
    box-shadow:0 8px 20px rgba(0,0,0,0.12);
    text-align:center;
    transition:0.3s;
}

.info-card:hover{
    transform:translateY(-5px);
}

.info-card h3{
    margin-bottom:10px;
}

.info-card p{
    margin:0;
}
.cards-servizi{
    display:grid;
    grid-template-columns:repeat(2, minmax(260px, 1fr));
    gap:20px;
    margin-top:25px;
    max-width:700px;
    margin-left:auto;
    margin-right:auto;
}

.card{
    background:#ffffff;
    padding:35px;
    min-height:220px;
    border-radius:16px;
    box-shadow:0 8px 20px rgba(0,0,0,0.12);
    text-align:center;
    transition:0.3s;
}

.card:hover{
    transform:translateY(-5px);
}

.card h3{
    margin-bottom:10px;
}

.card p{
    margin:0;
}
.chi-sono{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:40px;
}

.testo-chi-sono{
    flex:2;
}

.foto-chi-sono{
    flex:1;
    text-align:center;
}

.foto-chi-sono img{
    width:280px;
    border-radius:50%;
    border:5px solid #7b4b57;
}
.btn{
    display:inline-block;
    margin-top:20px;
    padding:12px 28px;
    background:var(--blu-principale);
    color:white;
    text-decoration:none;
    border:none;
    border-radius:10px;
    font-size:16px;
    font-weight:bold;
    letter-spacing:.5px;
    cursor:pointer;
    transition:.3s;
    box-shadow:0 8px 18px rgba(36,59,100,.25);
}

.btn:hover{
    background:var(--rosa-antico);
   transform:translateY(-3px);
   box-shadow:0 12px 28px rgba(36,59,100,.35); 
}
.percorso{
    margin-top:70px;
}

.percorso h2{
    text-align:center;
    color:var(--blu-principale);
    margin-bottom:35px;
    font-size:32px;
}

.step{
    display:flex;
    align-items:center;
    gap:20px;

    background:white;
    padding:18px 25px;
    margin:15px auto;
    max-width:700px;
    width: 100%;
box-sizing: border-box;

    border-left:6px solid var(--rosa-antico);
    border-radius:16px;
    box-shadow:0 8px 18px rgba(0,0,0,.08);

    transition:.3s;
}

.step:hover{
    transform:translateX(8px);
}

.step span{
    width:45px;
    height:45px;

    display:flex;
    align-items:center;
    justify-content:center;

    background:var(--blu-principale);
    color:white;

    border-radius:50%;

    font-weight:bold;
}

.step p{
    margin:0;
    font-size:18px;
}
main{
    max-width:1200px;
    margin:auto;
    padding:60px 30px;
}
.titolo-pagina{
    font-size:48px;
    color:var(--blu-principale);
    margin-bottom:15px;
}
/* ===== FORM LOGIN E REGISTRAZIONE ===== */

.form-section{
    max-width:600px;
    margin:70px auto;
    background:var(--bianco);
    padding:40px;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.10);
}

.form-section h1{
    color:var(--blu-principale);
    margin-bottom:15px;
}

.form-account{
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-top:30px;
}

.form-account label{
    font-weight:bold;
    color:var(--testo);
}

.form-account input{
    padding:14px;
    border:1px solid var(--bordo);
    border-radius:10px;
    font-size:16px;
}

.form-account input:focus{
    outline:none;
    border-color:var(--blu-principale);
    box-shadow:0 0 8px rgba(36,59,100,.2);
}

.form-account .btn{
    align-self:flex-start;
}
/* PAGINA REGISTRAZIONE */

.form-section{
    max-width:700px;
    margin:70px auto;
    background:white;
    padding:45px;
    border-radius:20px;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.form-section h1{
    text-align:center;
    color:var(--blu-principale);
    margin-bottom:15px;
}

.form-section p{
    text-align:center;
    margin-bottom:35px;
}

.form-account{
    display:flex;
    flex-direction:column;
    gap:18px;
}

.form-account label{
    font-weight:600;
    color:var(--testo);
}

.form-account input{
    padding:14px;
    border:2px solid var(--bordo);
    border-radius:12px;
    font-size:16px;
}

.form-account input:focus{
    outline:none;
    border-color:var(--blu-principale);
}

.privacy-check{
    display:flex;
    align-items:center;
    gap:10px;
    font-size:15px;
}
.button{
    background:#25D366;
    color:white;
    border:none;
    padding:14px 24px;
    border-radius:8px;
    font-size:16px;
    font-weight:bold;
    cursor:pointer;
}

.button:hover{
    background:#1EBE5D;
}
@media (max-width: 768px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    main,
    section,
    .container,
    .content,
    .wrapper {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 14px;
        padding-right: 14px;
    }

    .cards,
    .cards-servizi,
    .cards-metodo,
    .grid,
    .servizi-grid,
    .metodo-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 20px;
    }

    .card {
        display: block;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 auto 20px !important;
        padding: 24px 18px !important;
        height: auto !important;
    }

    .card h2,
    .card h3,
    .card p {
        width: 100%;
        max-width: 100%;
        text-align: center;
        overflow-wrap: anywhere;
        word-break: normal;
    }

    img {
        display: block;
        max-width: 100%;
        height: auto;
        margin-left: auto;
        margin-right: auto;
    }

    h1 {
        font-size: 42px;
        line-height: 1.08;
        overflow-wrap: anywhere;
    }

    h2 {
        font-size: 30px;
        line-height: 1.2;
        overflow-wrap: anywhere;
    }

    h3 {
        font-size: 25px;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    p {
        font-size: 18px;
        line-height: 1.55;
    }

    header,
    nav {
        width: 100%;
        max-width: 100%;
    }

    nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }

    .hero-info {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 20px !important;
   }
   h2,

h3 {
  font-size: 32px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: normal;

}

.info-card {
  width: calc(100% - 32px) !important;
  max-width: 520px !important;
  min-width: 0 !important;
  margin: 0 auto 24px !important;
  padding: 28px 20px !important;
}
.info-card h2,
.info-card h3 {
  max-width: 100% !important;
  font-size: 28px !important;
  line-height: 1.15 !important;
  text-align: center;
}

.info-card p {
  width: 100% !important;
  max-width: 100% !important;
  font-size: 20px !important;
  line-height: 1.5 !important;
  text-align: center;
}
.metodo-flow {
  display: flex !important;
  flex-direction: column !important;
  width: 100%!important;
  max-width: 100% !important;
  margin-left: 0!important;
  padding: 0 16px !important;
  box-sizing: border-box !important;
  gap: 18px !important;
}


.step {
    display: block !important;
    flex-direction: column !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    height: auto !important;
    grid-template-columns: 1fr !important;
   width: calc(100% - 24px) !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 auto !important;
    padding: 24px 18px !important;
    box-sizing: border-box !important;
    text-align: center !important;
}

.step h3,
.step p {
    width: 100% !important;
    max-width: 100% !important;
    text-align: center !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
}

.freccia {
    width: 100% !important;
    text-align: center !important;
}
a[href^="mailto:"] {
    display: inline-block;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}
}

.home-nav-icons {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 14px;
    max-width: 1050px;
    margin: 35px auto;
    padding: 18px;
    background: linear-gradient(135deg, #173c7a, #2f63b8);
    border-radius: 20px;
    box-shadow: 0 14px 35px rgba(23, 60, 122, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
 position: relative;
overflow: hidden;
}
.home-nav-icons::before {
    content: "";
    position: absolute;
    top: -40%;
    left: -20%;
    width: 45%;
    height: 180%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.18),
        transparent
    );
    transform: rotate(18deg);
    pointer-events: none;
}

.home-nav-item {
    flex: 1;
    min-width: 140px;
    padding: 18px 12px;
    color: white;
    text-decoration: none;
    text-align: center;
    border-radius: 15px;
    transition: transform 0.25s ease, background 0.25s ease;
}

.home-nav-item span{
    display: block;
    margin-bottom: 8px;
    font-size: 38px;
}

.home-nav-item strong {
    display: block;
    font-size: 17px;
}

.home-nav-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
}


@media (max-width: 768px) {
    .home-nav-icons {
        overflow-x: auto;
        justify-content: flex-start;
        margin: 24px 14px;
        padding: 14px;
        gap: 10px;
    }

    .home-nav-item {
        flex: 0 0 125px;
        min-width: 125px;
        padding: 15px 10px;
    }

    .home-nav-item span {
        font-size: 30px;
    }

    .home-nav-item strong {
        font-size: 15px;
    }
}
.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin: 24px 0 10px;
}

.hero-buttons .button {
    margin: 0;
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .hero-buttons .button {
        width: min(100%, 280px);
        text-align: center;
    }
}
.assistenza-scelta {
    max-width: 1100px;
    margin: 45px auto;
    padding: 38px 24px;
    text-align: center;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 16px 38px rgba(31, 69, 130, 0.16);
}

.assistenza-scelta h2 {
    margin-bottom: 10px;
    color: #2c5aa0;
    font-size: 34px;
}

.assistenza-scelta > p {
    max-width: 720px;
    margin: 0 auto 30px;
    color: #4b5568;
    font-size: 18px;
}

.assistenza-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.assistenza-card {
    display: flex;
    min-height: 145px;
    padding: 22px 14px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #2c5aa0;
    text-decoration: none;
    background: #f7f9fd;
    border: 1px solid #dce5f4;
    border-radius: 18px;
    transition: transform 0.25s ease, box-shadow 0.25s ease,
        background 0.25s ease;
}

.assistenza-card i {
    font-size: 36px;
    color: #c0922e;
}

.assistenza-card strong {
    font-size: 17px;
    line-height: 1.35;
}

.assistenza-card:hover {
    background: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 12px 24px rgba(31, 69, 130, 0.18);
}

.assistenza-aiuto {
    color: #ffffff;
    background: linear-gradient(135deg, #2c5aa0, #173c7a);
    border: none;
}

.assistenza-aiuto i {
    color: #ffffff;
}

.assistenza-aiuto:hover {
    background: linear-gradient(135deg, #3569b7, #204d91);
}

@media (max-width: 768px) {
    .assistenza-scelta {
        margin: 28px 14px;
        padding: 28px 16px;
    }

    .assistenza-scelta h2 {
        font-size: 27px;
    }

    .assistenza-scelta > p {
        font-size: 16px;
    }

    .assistenza-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .assistenza-card {
        min-height: 135px;
        padding: 18px 10px;
    }

    .assistenza-card i {
        font-size: 31px;
    }

    .assistenza-card strong {
        font-size: 15px;
    }
}

@media (max-width: 768px) {
  #metodo,
  #metodo .percorso,
  #metodo .metodo-flow {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
  }

  #metodo .step {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px auto !important;
    padding: 26px 20px !important;
    box-sizing: border-box !important;
  }

  #metodo .step h3,
  #metodo .step p {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}
.cta-whatsapp-finale {
    max-width: 850px;
    margin: 40px auto;
    padding: 35px 24px;
    text-align: center;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 14px 32px rgba(31, 69, 130, 0.16);
}

.cta-whatsapp-finale h2 {
    margin-bottom: 12px;
    color: #2c5aa0;
    font-size: 30px;
}

.cta-whatsapp-finale p {
    max-width: 650px;
    margin: 0 auto 24px;
    color: #4b5568;
    font-size: 17px;
    line-height: 1.6;
}

.btn-whatsapp-finale {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 25px;
    color: #ffffff;
    text-decoration: none;
    font-size: 17px;
    font-weight: bold;
    background: #25d366;
    border-radius: 12px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-whatsapp-finale:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(37, 211, 102, 0.30);
}

@media (max-width: 768px) {
    .cta-whatsapp-finale {
        margin: 28px 14px;
        padding: 28px 18px;
    }

    .cta-whatsapp-finale h2 {
        font-size: 25px;
    }

    .cta-whatsapp-finale p {
        font-size: 16px;
    }

    .btn-whatsapp-finale {
        width: 100%;
        box-sizing: border-box;
    }
}