html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* BASE */
html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1b1b1b;
    background-color: #ffffff;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* HEADER */
.site-header {
    background-color: #111111;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #ffffff;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 18px;
}

    .main-nav a {
        color: #ffffff;
        text-decoration: none;
        font-weight: 500;
        transition: 0.2s;
    }

        .main-nav a:hover {
            color: #f2b600;
        }

/* HERO */
.hero {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 90px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(242, 182, 0, 0.15);
    color: #f2b600;
    padding: 8px 14px;
    border-radius: 999px;
    margin-bottom: 20px;
    font-size: 14px;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #dcdcdc;
}

/* BOTTONI */
.btn-main {
    background: #f2b600;
    color: #111;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

    .btn-main:hover {
        background: #d9a300;
    }

.btn-secondary {
    border: 1px solid white;
    color: white;
    padding: 14px 22px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
}

    .btn-secondary:hover {
        background: white;
        color: #111;
    }

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* CARD HERO */
.hero-card {
    background: white;
    color: #111;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

    .hero-card h2 {
        margin-top: 0;
    }

    .hero-card ul {
        padding-left: 18px;
    }

    .hero-card li {
        margin-bottom: 10px;
    }

/* SEZIONI */
.services-preview {
    padding: 80px 0;
    background: #f4f4f4;
}

.section-dark {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
}

    .section-dark .info-card {
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(6px);
        color: white;
        border: 1px solid rgba(255,255,255,0.08);
    }
        .section-dark .info-card p {
            color: #d1d5db;
        }

    .section-dark .section-title p {
        color: #cbd5e1;
    }
.section-title {
    text-align: center;
    margin-bottom: 40px;
}

    .section-title h2 {
        font-size: 34px;
        margin-bottom: 10px;
    }

    .section-title p {
        color: #555;
    }

/* CARD */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.info-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    transition: 0.2s;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

    .info-card:hover {
        transform: translateY(-5px);
    }

    .info-card h3 {
        margin-top: 0;
        margin-bottom: 10px;
    }

    .info-card p {
        color: #444;
    }

/* CTA */
.cta-section {
    padding: 70px 0;
}

.cta-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: white;
    padding: 40px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
    .cta-box p {
        color: #ccc;
    }

/* FOOTER */
.site-footer {
    background: #f1f1f1;
    padding: 25px 0;
    margin-top: 40px;
    text-align: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .cta-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .hero h1 {
        font-size: 36px;
    }
}

/* PAGE HERO */
.page-hero {
    padding: 70px 0;
}

.page-hero-dark {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
}

.page-hero h1 {
    font-size: 44px;
    margin-bottom: 15px;
}

.page-hero p {
    font-size: 18px;
    max-width: 760px;
    color: #d8e0ea;
}

/* CALCOLATORE */
.calculator-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.calculator-card,
.calculator-result-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

    .calculator-card h2,
    .calculator-result-card h2 {
        margin-top: 0;
        margin-bottom: 24px;
    }

.calculator-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .form-group label {
        font-weight: 600;
    }

.form-control-custom {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d7dce2;
    border-radius: 12px;
    font-size: 16px;
    background: #ffffff;
    color: #1b1b1b;
}

    .form-control-custom:focus {
        outline: none;
        border-color: #f2b600;
        box-shadow: 0 0 0 3px rgba(242, 182, 0, 0.15);
    }

.text-danger {
    color: #c62828;
    font-size: 14px;
}

.result-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
}

    .result-box p {
        margin-bottom: 12px;
    }

    .result-box hr {
        border: 0;
        border-top: 1px solid #d9dee5;
        margin: 18px 0;
    }

.result-note {
    margin-bottom: 24px;
    color: #475569;
    line-height: 1.6;
}

.result-placeholder {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 24px;
    color: #475569;
}

.btn-dark-outline {
    border-color: #0f172a;
    color: #0f172a;
}

    .btn-dark-outline:hover {
        background: #0f172a;
        color: #ffffff;
    }

@media (max-width: 900px) {
    .calculator-grid {
        grid-template-columns: 1fr;
    }

    .page-hero h1 {
        font-size: 34px;
    }
}
/* GENERATORI */
.generatori-features {
    padding: 80px 0;
    background: #ffffff;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.feature-item {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
}

    .feature-item h3 {
        margin-top: 0;
        margin-bottom: 12px;
        font-size: 22px;
    }

    .feature-item p {
        margin: 0;
        color: #475569;
        line-height: 1.6;
    }

@media (max-width: 900px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* CONTATTI */
.contatti-section {
    padding: 80px 0;
    background: #f8f8f8;
}

.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.contatti-info {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
}

.contact-item {
    margin-bottom: 20px;
}

    .contact-item h3 {
        margin-bottom: 5px;
    }

.contatti-form-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.success-message {
    margin-top: 15px;
    color: #2e7d32;
    font-weight: 600;
}

@media (max-width: 900px) {
    .contatti-grid {
        grid-template-columns: 1fr;
    }
}

/* INFORMATICA */
.informatica-features {
    padding: 80px 0;
    background: #ffffff;
}

    .informatica-features .feature-item {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
    }

        .informatica-features .feature-item p {
            color: #475569;
        }


/* PREVENTIVO FACILE */
.preventivo-highlight {
    padding: 80px 0;
    background: #ffffff;
}

.preventivo-box {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    color: #ffffff;
    padding: 50px;
    border-radius: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.preventivo-text {
    max-width: 650px;
}

.preventivo-badge {
    display: inline-block;
    background: rgba(242, 182, 0, 0.15);
    color: #f2b600;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    margin-bottom: 15px;
}

.preventivo-box h2 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 32px;
}

.preventivo-box p {
    color: #cbd5e1;
    margin-bottom: 12px;
}

.preventivo-actions {
    display: flex;
    align-items: center;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .preventivo-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .preventivo-actions {
        width: 100%;
    }

        .preventivo-actions .btn-main {
            width: 100%;
            text-align: center;
        }
}

.preventivo-link-text a {
    color: #f2b600;
    font-weight: 600;
    text-decoration: none;
}

    .preventivo-link-text a:hover {
        text-decoration: underline;
    }