* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    color: #444;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.container {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
}

/* HEADER */

.header {
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo-box img {
    height: 68px;
    width: auto;
    display: block;
}

.menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.menu a {
    color: #1b1b1b;
    font-weight: bold;
    font-size: 15px;
    transition: .2s;
}

.menu a:hover {
    color: #1f7ea8;
}

.menu-btn {
    background: linear-gradient(135deg,#103c5c,#1f7ea8);
    color: #ffffff !important;
    padding: 11px 20px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(16,60,92,0.18);
}

.menu-toggle {
    display: none;
    background: #103c5c;
    color: #ffffff;
    border: 0;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
}

/* BUTTONS */

.btn {
    display: inline-block;
    padding: 15px 26px;
    border-radius: 40px;
    font-weight: bold;
    transition: 0.25s;
}

.btn-primary {
    background: linear-gradient(135deg,#103c5c,#1f7ea8);
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(16,60,92,0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid #103c5c;
    color: #103c5c;
    background: #ffffff;
}

.btn-outline:hover {
    background: #103c5c;
    color: #ffffff;
}

.btn-white {
    background: #ffffff;
    color: #103c5c;
    white-space: nowrap;
}

/* COMMON SECTIONS */

section {
    padding: 85px 0;
}

.light-section {
    background: linear-gradient(180deg,#f7fafc,#eef5f9);
}

.section-title {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 52px auto;
}

.section-title h2 {
    margin: 0 0 16px 0;
    color: #103c5c;
    font-size: 42px;
    line-height: 1.15;
}

.section-title p {
    font-size: 18px;
}

/* HOME */

.home-hero {
    background:
        radial-gradient(circle at top left, rgba(31,126,168,0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(16,60,92,0.08), transparent 35%),
        linear-gradient(135deg, #eef7fb 0%, #ffffff 60%, #f7fbfd 100%);
    padding: 95px 0 80px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 55px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #1f7ea8;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.home-hero h1 {
    margin: 0 0 24px 0;
    color: #103c5c;
    font-size: 60px;
    line-height: 1.06;
}

.home-hero p {
    font-size: 20px;
    margin-bottom: 34px;
    max-width: 740px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-card {
    background: #ffffff;
    border-radius: 24px;
    padding: 38px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.hero-card:after {
    content: "";
    position: absolute;
    left: -20%;
    bottom: -60px;
    width: 140%;
    height: 120px;
    background: linear-gradient(135deg,#1f7ea8,#103c5c);
    border-radius: 50%;
    opacity: 0.12;
}

.hero-card h2,
.hero-card ul {
    position: relative;
    z-index: 1;
}

.hero-card h2 {
    margin-top: 0;
    color: #103c5c;
}

.hero-card ul {
    padding-left: 22px;
    margin-bottom: 0;
}

.hero-card li {
    margin-bottom: 14px;
}

/* CARDS */

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.four-cards {
    grid-template-columns: repeat(4, 1fr);
}

.card {
    background: #ffffff;
    border-radius: 24px;
    padding: 34px;
    box-shadow: 0 14px 36px rgba(0,0,0,0.06);
    transition: .25s;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
}

.card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(135deg,#1f7ea8,#103c5c);
}

.card h3 {
    margin-top: 0;
    margin-bottom: 16px;
    color: #103c5c;
    font-size: 24px;
}

/* SMARTCID HOME BOX */

.smartcid-box {
    background:
        radial-gradient(circle at right top, rgba(255,255,255,0.08), transparent 35%),
        linear-gradient(135deg,#103c5c,#1f7ea8);
    border-radius: 30px;
    padding: 50px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    box-shadow: 0 20px 40px rgba(16,60,92,0.20);
}

.smartcid-box h2 {
    margin-top: 0;
    font-size: 40px;
}

.smartcid-box p {
    margin-bottom: 0;
    font-size: 19px;
    max-width: 760px;
}

.smartcid-box .btn {
    background: #ffffff;
    color: #103c5c;
    white-space: nowrap;
}

/* PAGE HERO */

.page-hero {
    background:
        radial-gradient(circle at top left, rgba(31,126,168,0.10), transparent 28%),
        linear-gradient(135deg,#eef7fb 0%,#ffffff 70%,#f7fbfd 100%);
    padding: 82px 0 64px 0;
    text-align: center;
}

.compact-hero {
    padding: 76px 0 60px 0;
}

.page-hero h1 {
    margin: 0 0 22px 0;
    color: #103c5c;
    font-size: 52px;
    line-height: 1.08;
}

.page-hero p {
    max-width: 880px;
    margin: 0 auto;
    font-size: 20px;
}

/* CHI SIAMO */

.content-section {
    background: #ffffff;
}

.two-col {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 44px;
    align-items: start;
}

.two-col h2 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #103c5c;
    font-size: 38px;
    line-height: 1.15;
}

.two-col p {
    font-size: 18px;
    margin-top: 0;
}

.highlight-box {
    background:
        radial-gradient(circle at right top, rgba(255,255,255,0.13), transparent 34%),
        linear-gradient(135deg,#103c5c,#1f7ea8);
    color: #ffffff;
    padding: 36px;
    border-radius: 26px;
    box-shadow: 0 18px 38px rgba(16,60,92,0.18);
}

.highlight-box h3 {
    margin-top: 0;
    margin-bottom: 18px;
    font-size: 28px;
}

.highlight-box ul {
    padding-left: 20px;
    margin-bottom: 0;
}

.highlight-box li {
    margin-bottom: 13px;
}

.cta-section {
    padding-top: 35px;
    padding-bottom: 90px;
}

.cta-box {
    background:
        radial-gradient(circle at right top, rgba(255,255,255,0.08), transparent 35%),
        linear-gradient(135deg,#103c5c,#1f7ea8);
    border-radius: 30px;
    padding: 48px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    box-shadow: 0 20px 40px rgba(16,60,92,0.20);
}

.cta-box h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 38px;
    line-height: 1.15;
}

.cta-box p {
    margin-bottom: 0;
    font-size: 18px;
}

/* FOOTER */

.footer {
    background: linear-gradient(135deg,#111,#1d2a35);
    color: #d8d8d8;
    padding: 46px 0;
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.footer strong {
    color: #ffffff;
    font-size: 18px;
}

/* RESPONSIVE */

@media (max-width: 950px) {

    .menu-toggle {
        display: block;
    }

    .menu {
        display: none;
        position: absolute;
        top: 88px;
        left: 0;
        right: 0;
        background: #ffffff;
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 5%;
        box-shadow: 0 10px 24px rgba(0,0,0,0.08);
    }

    .menu.open {
        display: flex;
    }

    .hero-grid,
    .two-col {
        grid-template-columns: 1fr;
    }

    .cards {
        grid-template-columns: 1fr 1fr;
    }

    .four-cards {
        grid-template-columns: 1fr 1fr;
    }

    .smartcid-box,
    .cta-box {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {

    section {
        padding: 65px 0;
    }

    .home-hero,
    .page-hero {
        padding: 70px 0 58px 0;
    }

    .home-hero h1,
    .page-hero h1 {
        font-size: 38px;
    }

    .home-hero p,
    .page-hero p {
        font-size: 17px;
    }

    .section-title h2,
    .two-col h2 {
        font-size: 32px;
    }

    .cards,
    .four-cards {
        grid-template-columns: 1fr;
    }

    .smartcid-box,
    .highlight-box,
    .cta-box {
        padding: 32px;
    }

    .smartcid-box h2,
    .cta-box h2 {
        font-size: 30px;
    }

    .logo-box img {
        height: 58px;
    }
}

/* CONTATTI */

.contact-section {
    background:
        radial-gradient(circle at top left, rgba(31,126,168,0.06), transparent 32%),
        linear-gradient(180deg,#ffffff,#f7fafc);
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 460px;
    gap: 34px;
    align-items: stretch;
}

.contact-main-card,
.contact-side-card {
    background: #ffffff;
    border-radius: 30px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.07);
    overflow: hidden;
}

.contact-main-card {
    padding: 42px;
    position: relative;
}

.contact-main-card:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 7px;
    background: linear-gradient(135deg,#1f7ea8,#103c5c);
}

.contact-main-card h2,
.contact-side-card h2,
.contact-mini-card h3 {
    color: #103c5c;
    margin-top: 0;
}

.contact-main-card h2,
.contact-side-card h2 {
    font-size: 38px;
    line-height: 1.15;
    margin-bottom: 18px;
}

.contact-main-card p,
.contact-side-card p {
    font-size: 18px;
}

.contact-email-box {
    margin: 30px 0;
    padding: 28px;
    border-radius: 24px;
    background: linear-gradient(135deg,#eef7fb,#ffffff);
    border: 1px solid #dcebf2;
    display: flex;
    gap: 20px;
    align-items: center;
}

.contact-email-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg,#103c5c,#1f7ea8);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 12px 24px rgba(16,60,92,0.20);
}

.contact-email-box strong {
    color: #103c5c;
    font-size: 18px;
}

.contact-email-box a {
    color: #1f7ea8;
    font-weight: bold;
    font-size: 18px;
}

.contact-mini-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 28px;
}

.contact-mini-card {
    background: #ffffff;
    border: 1px solid #e4eef4;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 12px 28px rgba(0,0,0,0.04);
}

.contact-mini-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.contact-mini-card p {
    margin-bottom: 0;
    font-size: 16px;
}

.contact-side-card {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.13), transparent 35%),
        linear-gradient(135deg,#103c5c,#1f7ea8);
    color: #ffffff;
    padding: 38px;
    box-shadow: 0 20px 44px rgba(16,60,92,0.20);
}

.contact-side-card h2,
.contact-side-card p {
    color: #ffffff;
}

.contact-list {
    margin: 28px 0 0 0;
    padding: 0;
    list-style: none;
}

.contact-list li {
    margin-bottom: 16px;
    padding-left: 30px;
    position: relative;
}

.contact-list li:before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f2b705;
    position: absolute;
    left: 0;
    top: 8px;
}

.contact-form-card {
    margin-top: 36px;
    padding: 36px;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 38px rgba(0,0,0,0.06);
    border: 1px solid #e6eef3;
}

.contact-form-card h2 {
    color: #103c5c;
    font-size: 34px;
    margin: 0 0 12px 0;
}

.contact-form-card p {
    font-size: 17px;
    margin-top: 0;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 26px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #103c5c;
}

.form-control {
    width: 100%;
    border: 1px solid #d7e2e8;
    border-radius: 14px;
    padding: 15px 16px;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    background: #ffffff;
    transition: .2s;
}

.form-control:focus {
    outline: none;
    border-color: #1f7ea8;
    box-shadow: 0 0 0 4px rgba(31,126,168,0.12);
}

.form-textarea {
    min-height: 155px;
    resize: vertical;
}

.form-note {
    font-size: 14px !important;
    color: #666;
    margin: 18px 0 0 0;
}

.form-note a {
    color: #1f7ea8;
    font-weight: bold;
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

@media (max-width: 950px) {

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-mini-grid,
    .contact-form-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {

    .contact-main-card,
    .contact-side-card,
    .contact-form-card {
        padding: 30px;
        border-radius: 24px;
    }

    .contact-main-card h2,
    .contact-side-card h2,
    .contact-form-card h2 {
        font-size: 30px;
    }

    .contact-email-box {
        align-items: flex-start;
        padding: 24px;
    }

    .contact-mini-grid,
    .contact-form-grid {
        grid-template-columns: 1fr;
    }
}

/* COOKIE BANNER */

.cookie-banner {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
}

.cookie-content {
    max-width: 1180px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.18);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    border-top: 6px solid #1f7ea8;
}

.cookie-text strong {
    display: block;
    color: #103c5c;
    font-size: 20px;
    margin-bottom: 8px;
}

.cookie-text p {
    margin: 0 0 8px 0;
    font-size: 15px;
    line-height: 1.5;
}

.cookie-text a {
    color: #1f7ea8;
    font-weight: bold;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.cookie-btn {
    border: 0;
    border-radius: 30px;
    padding: 12px 18px;
    font-weight: bold;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    transition: 0.25s;
}

.cookie-btn:hover {
    transform: translateY(-2px);
}

.cookie-primary {
    background: linear-gradient(135deg,#103c5c,#1f7ea8);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(16,60,92,0.18);
}

.cookie-secondary {
    background: #eef7fb;
    color: #103c5c;
}

@media (max-width: 780px) {
    .cookie-banner {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .cookie-content {
        grid-template-columns: 1fr;
        padding: 22px;
        border-radius: 22px;
    }

    .cookie-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .cookie-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-btn {
        width: 100%;
    }
}
/* COOKIE POLICY */

.policy-card {
    background: #ffffff;
    border-radius: 30px;
    padding: 46px;
    box-shadow: 0 18px 42px rgba(0,0,0,0.07);
    border: 1px solid #e6eef3;
}

.policy-card h2 {
    color: #103c5c;
    font-size: 34px;
    margin-top: 42px;
    margin-bottom: 16px;
    line-height: 1.15;
}

.policy-card h2:first-child {
    margin-top: 0;
}

.policy-card p {
    font-size: 18px;
    margin-top: 0;
    line-height: 1.7;
}

.policy-highlight {
    margin: 30px 0;
    padding: 32px;
    border-radius: 24px;
    background:
        radial-gradient(circle at right top, rgba(255,255,255,0.13), transparent 35%),
        linear-gradient(135deg,#103c5c,#1f7ea8);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(16,60,92,0.18);
}

.policy-highlight h3 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 28px;
    color: #ffffff;
}

.policy-highlight p {
    margin-bottom: 0;
    color: #ffffff;
}

.policy-note {
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid #dce6ec;
    font-size: 15px;
    color: #777;
}

@media (max-width: 680px) {

    .policy-card {
        padding: 30px;
        border-radius: 24px;
    }

    .policy-card h2 {
        font-size: 28px;
    }

    .policy-highlight {
        padding: 24px;
    }

    .policy-highlight h3 {
        font-size: 24px;
    }
}
/* FOOTER IMPAGINATO */

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.footer-col p {
    margin: 12px 0 0 0;
    color: #d8d8d8;
}

.footer-links {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: #d8d8d8;
    transition: .2s;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    margin-top: 20px !important;
    font-size: 13px;
    color: #bfc6cc !important;
}

@media (max-width: 780px) {

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}
}