/* ==========================================
   DataProtec.it - Modern Institutional CSS
   Services: MSP | BaaS | Data Security
   ========================================== */

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1e293b;
    background-color: #ffffff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 2rem;
}

/* ===== Header & Navigation ===== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, .95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    z-index: 10;
    transition: box-shadow .3s ease;
}

.header.scrolled {
    box-shadow: 0 4px 12px rgba(15, 23, 42, .06);
}

.header__wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
}

.header__logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1b3a57;
}

.header__logo .accent {
    color: #ea580c;
}

/* Desktop Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav__list {
    display: flex;
    gap: 1.5rem;
}

.nav__link {
    color: #334155;
    font-weight: 500;
    font-size: .95rem;
    transition: color .2s ease;
}

.nav__link:hover,
.nav__link.active {
    color: #ea580c;
}

/* Mobile Nav Toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    width: 2rem;
    height: 1.5rem;
    justify-content: center;
}

.nav__toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: #1e293b;
    transition: all .3s ease;
}

/* ===== Hero Section ===== */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1b3a57 0%, #1b3a57 100%);
    color: #ffffff;
    padding-block: 4rem 6rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -150px;
    right: -150px;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, rgba(14, 165, 233, .25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.hero__title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.2rem;
    color: #ffffff;
}

.hero__subtitle {
    font-size: 1.15rem;
    font-weight: 300;
    opacity: .9;
    margin-bottom: 2rem;
}

.hero__cta {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.8rem;
    background-color: #ea580c;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background-color .2s ease, transform .1s ease;
}

.hero__cta:hover {
    background-color: #c2410c;
}

.hero__cta:active {
    transform: scale(.98);
}

.hero__cta .arrow {
    font-size: 1.1rem;
}

/* ===== Section Title ===== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title__badge {
    display: inline-block;
    background-color: #eff6ff;
    color: #ea580c;
    font-size: .8rem;
    font-weight: 600;
    padding: .3rem .9rem;
    border-radius: 9999px;
    margin-bottom: 1rem;
}

.section-title__h2 {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    color: #1b3a57;
    font-weight: 700;
}

.section-title__p {
    margin-top: 1rem;
    color: #64748b;
    font-size: 1.05rem;
    max-width: 720px;
    margin-inline: auto;
}

/* ===== Services Grid ===== */
.services {
    padding-block: 5rem 4rem;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 24px rgba(14, 165, 233, .08);
    border-color: #bae6fd;
}

.service-card__icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #ea580c, #38bdf8);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #ffffff;
}

.service-card__title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1b3a57;
}

.service-card__desc {
    color: #64748b;
    font-size: .95rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.service-card__link {
    color: #ea580c;
    font-weight: 600;
    font-size: .9rem;
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

.service-card__link:hover {
    color: #c2410c;
}

/* ===== CTA Banner ===== */
.cta {
    background: linear-gradient(135deg, #1b3a57 0%, #1b3a57 100%);
    color: #ffffff;
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 16px;
    margin-block: 4rem 2rem;
}

.cta__title {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
}

.cta__subtitle {
    font-size: 1.05rem;
    opacity: .9;
    max-width: 640px;
    margin: 0 auto 2rem;
}

.cta__btn {
    display: inline-block;
    padding: .85rem 2rem;
    background-color: #ea580c;
    color: #ffffff;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color .2s ease;
}

.cta__btn:hover {
    background-color: #c2410c;
}

/* ===== Footer ===== */
.footer {
    background-color: #1b3a57;
    color: #cbd5e1;
    padding: 4rem 2rem 2rem;
    font-size: .9rem;
}

.footer__top {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-inline: auto;
}

.footer__col h3 {
    color: #ffffff;
    font-size: 1.15rem;
    margin-bottom: 1rem;
}

.footer__col ul li {
    margin-bottom: .6rem;
}

.footer__col a {
    color: #94a3b8;
    transition: color .2s ease;
}

.footer__col a:hover {
    color: #38bdf8;
}

.footer__social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.footer__social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    background-color: #1e293b;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
    transition: background-color .2s ease, color .2s ease;
}

.footer__social a:hover {
    background-color: #ea580c;
    color: #ffffff;
}

.footer__bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1e293b;
    color: #94a3b8;
    font-size: .85rem;
    max-width: 1200px;
    margin-inline: auto;
}

/* ===== Breadcrumb (pages) ===== */
.breadcrumb {
    padding: 1rem 2rem;
    font-size: .9rem;
    color: #64748b;
    max-width: 1200px;
    margin-inline: auto;
}

.breadcrumb a {
    color: #ea580c;
}

/* ===== Page Header (inner pages) ===== */
.page-header {
    background: linear-gradient(135deg, #1b3a57 0%, #1b3a57 100%);
    color: #ffffff;
    text-align: center;
    padding: 4rem 2rem;
}

.page-header__title {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: .5rem;
}

.page-header__subtitle {
    opacity: .85;
    font-size: 1.05rem;
}

/* ===== Contact Form ===== */
.contact-form {
    background-color: #ffffff;
    border-radius: 14px;
    padding: 2.5rem;
    border: 1px solid #e2e8f0;
}

.contact-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.contact-form__field {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}

.contact-form__label {
    font-weight: 600;
    color: #1b3a57;
}

.contact-form__input,
.contact-form__textarea {
    padding: .8rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color .2s ease;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, .35);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 140px;
}

.contact-form__submit {
    grid-column: 1 / -1;
    padding: .9rem 2rem;
    background-color: #ea580c;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color .2s ease;
}

.contact-form__submit:hover {
    background-color: #c2410c;
}

/* ===== Alert messages ===== */
.alert {
    padding: 1rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: .95rem;
}

.alert--success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.alert--error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* ===== Info cards (contact page) ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.8rem;
    text-align: center;
}

.info-card__icon {
    font-size: 1.8rem;
    margin-bottom: .8rem;
}

.info-card__title {
    font-weight: 700;
    color: #1b3a57;
    margin-bottom: .4rem;
}

.info-card__text {
    color: #64748b;
    font-size: .95rem;
}

/* ===== Content sections ===== */
.section {
    padding-block: 4rem;
}

.section--alt {
    background-color: #f8fafc;
}

.content-text p {
    margin-bottom: 1rem;
    color: #334155;
}

.feature-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: .6rem;
    color: #334155;
}

.feature-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #ea580c;
    font-weight: 700;
}

/* ===== Values grid (chi-siamo) ===== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
}

.value-card__icon {
    font-size: 2rem;
    margin-bottom: .8rem;
}

.value-card__title {
    font-weight: 700;
    color: #1b3a57;
    margin-bottom: .5rem;
}

.value-card__desc {
    color: #64748b;
    font-size: .92rem;
}

/* ===== Typography ===== */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    color: #1b3a57;
}

/* ===== Responsive ===== */
@media (max-width: 991px) {
    .nav__toggle {
        display: flex;
    }

    .nav__list.nav-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background-color: #ffffff;
        border: 1px solid #e2e8f0;
        margin-top: 0;
        padding: 1.5rem 2rem;
        gap: 1rem;
        box-shadow: 0 11px 30px rgba(15, 23, 42, .08);
    }
}

@media (max-width: 767px) {
    .hero__content {
        max-width: 100%;
    }

    .hero__cta {
        width: 100%;
        justify-content: center;
    }

    .contact-form__grid {
        grid-template-columns: 1fr;
    }
}
