/* ===== RESET & BODY ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fa;
    color: #333;
}

/* ===== HEADER / HERO ===== */
.pagina-separata-header {
    background: rgb(15,112,183);
    color: #fff;
    padding: 60px 20px 40px;
    text-align: center;
}

.header-form-section {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    flex-wrap: wrap;
}

.header-image {
    flex: 1;
    min-width: 300px;
}

.header-image img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: 8px;
}

.reservation-form {
    width: 400px;
    min-width: 300px;
    background-color: rgb(41,51,54);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.reservation-form h2 {
    color: rgb(15,112,183);
    margin-bottom: 1em;
    text-align: center;
    font-size: 1.5em;
}

.reservation-form input,
.reservation-form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
    box-sizing: border-box;
}

.reservation-form button {
    width: 100%;
    padding: 14px;
    background-color: rgb(243,146,0);
    color: #fff;
    border: none;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s;
}

.reservation-form button:hover {
    background-color: rgb(220,130,0);
}

/* ===== WRAP / CONTAINER ===== */
.wrap {
    width: auto;
    margin: auto;
    padding: 20px;
}

/* ===== SECTIONS ===== */
.section {
    margin-bottom: 60px;
}

.section h2 {
    text-align: center;
    font-size: 30px;
    margin-bottom: 10px;
    color: rgb(15,112,183);
    font-weight: 700;
}

.section .sub {
    text-align: center;
    color: #666;
    margin-bottom: 35px;
}

/* ===== GRID CARDS ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.card h3 {
    margin-bottom: 10px;
    color: #0f70b7;
}

.card p {
    font-size: 14px;
    line-height: 1.6;
    color: #444;
}

/* ===== PROCESS STEPS ===== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.step {
    background: #f5f9ff;
    padding: 22px;
    border-radius: 10px;
    border: 2px solid #0f70b7;
    box-shadow: 0 6px 15px rgba(0,0,0,0.05);
    text-align: center;
}

.step b {
    display: block;
    font-size: 20px;
    color: #0f70b7;
    margin-bottom: 8px;
}

/* ===== FAQ ===== */
.intrebari-frecvente-item,
.faq-item {
    max-width: 1000px;
    margin: 0 auto 12px auto;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
}

.intrebari-frecvente-item summary,
.faq-item summary {
    cursor: pointer;
    padding: 15px;
    font-weight: 600;
    font-size: 16px;
    background: #f7f7f7;
    list-style: none;
}

.intrebari-frecvente-item summary::-webkit-details-marker,
.faq-item summary::-webkit-details-marker {
    display: none;
}

.intrebari-frecvente-item summary::after,
.faq-item summary::after {
    content: "+";
    float: right;
    font-size: 20px;
}

.intrebari-frecvente-item details[open] summary,
.faq-item details[open] summary {
    background: #d9f0ff;
}

.intrebari-frecvente-item p,
.faq-item p {
    margin: 0;
    padding: 15px;
    background: #fff;
    line-height: 1.6;
    color: #444;
}

/* ===== CTA FINAL (fin) ===== */
.fin {
    position: relative;
    background: linear-gradient(135deg,#0f70b7,#084f82,#0f70b7);
    background-size: 300% 300%;
    animation: gradientMove 8s ease infinite;
    color: #fff;
    padding: 60px 25px;
    text-align: center;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,0.18);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.fin::before {
    content: '';
    position: absolute;
    bottom: -50px;
    left: 0;
    width: 200%;
    height: 100px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
    transform: rotate(15deg);
}

.fin::after {
    content: '';
    position: absolute;
    top: -50px;
    right: 0;
    width: 150%;
    height: 80px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    transform: rotate(-10deg);
}

.fin:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.22);
}

.fin h2 {
    font-size: 30px;
    margin-bottom: 12px;
    background: linear-gradient(90deg,#fff,#c6e2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.fin p {
    font-size: 18px;
    margin-bottom: 25px;
    color: #e2f0ff;
}

.fin a {
    display: inline-block;
    background: #fff;
    color: #0f70b7 !important;
    padding: 16px 36px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fin a:hover {
    background: #f1f9ff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* ===== AVANTAJE ===== */
.avantaje {
    background: #f4f7fa;
    padding: 70px 40px;
    margin-top: 50px;
    text-align: center;
}

.avantaje h2 {
    font-size: 30px;
    color: rgb(15,112,183);
    margin-bottom: 15px;
}

.avantaje-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
    gap: 30px;
    margin-top: 40px;
}

.avantaj {
    background: #fff;
    padding: 35px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
    text-align: center;
}

.avantaj:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.avantaj-icon {
    width: 70px;
    height: 70px;
    background: rgb(15,112,183);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 20px auto;
}

.avantaj-icon img {
    width: 35px;
    height: 35px;
}

.avantaj h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.avantaj p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

/* ===== CTA + IMAGE ===== */
.cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 30px;
    background: rgb(15,112,183);
    color: #fff;
    padding: 40px 20px;
    border-radius: 10px;
    margin-top: 50px;
}

.cta-image {
    flex: 1;
    min-width: 200px;
}

.cta-image img {
    width: 50%;
    border-radius: 10px;
}

.cta-text {
    flex: 2;
    min-width: 200px;
    text-align: left;
}

.cta-text h2 {
    font-size: 30px;
    color: #000 !important;
    margin-bottom: 10px;
}

.cta-text p {
    font-size: 18px;
    margin-bottom: 25px;
}

.cta-text a {
    display: inline-block;
    background: rgb(243,146,0);
    color: #000 !important;
    padding: 15px 30px;
    font-size: 18px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
    transition: 0.3s;
}

.cta-text a:hover {
    background: rgb(220,130,0);
}

/* ===== FOOTER ===== */
.pagina-separata-header ~ footer {
    text-align: center;
    padding: 8px 15px;
    background: #222;
    color: #ddd;
    margin-top: 30px;
    font-size: 13px;
    line-height: 1.2;
    border-top: 1px solid #444;
}

.pagina-separata-header ~ footer a {
    color: #f39a00;
    text-decoration: none;
    margin: 0 5px;
    font-size: 13px;
    transition: 0.2s;
}
/* ===== MEDIA QUERIES ===== */
@media(max-width: 900px){
    .install-wrapper { grid-template-columns: 1fr; }
}

@media(max-width: 768px){
    .header-form-section { flex-direction: column; }
    .cta { flex-direction: column; text-align: center; }
    .cta-text { text-align: center; }
    .cta-text a { width: 100%; font-size: 17px; padding: 16px; }
    .avantaje { padding: 50px 20px; }
    .header-image, .reservation-form { max-width: 100%; flex: 1 1 100%; }
    .faq { padding: 0 10px; }
}