/* RESET BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background: #ffffff;
    color: #0B1730;
    line-height: 1.5;
}

/* CONTAINER GENERALE */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ----------------------------- */
/* HEADER */
/* ----------------------------- */

.header {
    width: 100%;
    border-bottom: 1px solid #e5e7eb;
    background: #ffffff;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    gap: 20px;
}

.logo {
    height: 60px;
    width: auto;
    border-radius: 0;
    object-fit: contain;
}

.menu {
    display: flex;
    align-items: center;
    gap: 14px;
}

.menu a {
    font-size: 14px;
    text-decoration: none;
    color: #1F2933;
    padding: 6px 10px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.menu a:hover {
    background: #0B1730;
    color: #ffffff;
}

/* HEADER SOLO IN HOME:
   - sopra l'immagine hero
   - logo nascosto
   - menu agganciato a destra */
.home .header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent;
    border-bottom: none;
    z-index: 100;
}

.home .logo {
    display: none;
}

.home .header-inner {
    justify-content: flex-end;
}

/* ----------------------------- */
/* HERO CANVA (HOME) */
/* ----------------------------- */

.hero-canva {
    width: 100%;
    max-width: 100%;
    overflow: hidden;           /* niente scroll orizzontale */
    background-color: #000000;  /* bordo nero sotto la grafica */
    margin-top: 0;
}

.hero-canva-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

/* ----------------------------- */
/* HERO CLASSICA (altre pagine, se la usi) */
/* ----------------------------- */

.hero {
    padding: 60px 0 40px;
    background: linear-gradient(135deg, #F5F7FB 0%, #FFFFFF 60%);
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero-left {
    flex: 1 1 50%;
    min-width: 280px;
}

.hero-right {
    flex: 1 1 40%;
    min-width: 260px;
    text-align: right;
}

.hero-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hero-logo {
    height: 70px;
    border-radius: 999px;
    object-fit: cover;
}

.hero-tag {
    font-size: 13px;
    background: #0B1730;
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 999px;
}

.hero-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 15px;
    color: #4B5563;
    margin-bottom: 18px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* immagine generica usata nelle pagine dei pack */
.hero-img {
    width: 100%;
    max-width: 460px;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* ----------------------------- */
/* BOTTONI GENERALI */
/* ----------------------------- */

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
}

.btn.primary {
    background: #0B1730;
    color: #ffffff;
}

.btn.primary:hover {
    background: #111827;
}

.btn.secondary {
    background: #ffffff;
    color: #0B1730;
    border-color: #0B1730;
}

.btn.secondary:hover {
    background: #F3F4F6;
}

/* ----------------------------- */
/* SEZIONE SERVIZI (3 PACK) */
/* ----------------------------- */

.services {
    padding: 50px 0;
}

.section-title {
    font-size: 28px;
    margin-bottom: 30px;
}

/* Contenuto generico dentro .services (pagine interne) */
.services p {
    margin-bottom: 12px;
    color: #4B5563;
}

.services h1.section-title {
    margin-bottom: 20px;
}

.services h2 {
    font-size: 22px;
    margin: 20px 0 10px;
}

.services ul {
    margin-left: 20px;
    margin-bottom: 16px;
    color: #4B5563;
}

.services ul li {
    margin-bottom: 4px;
}

/* Lista servizi in home: 3 immagini in riga */
.service-list {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.service-row {
    flex: 1 1 30%;
    max-width: 32%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Immagini dei pack in home */
.service-image {
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 8px;
}

.service-image img {
    width: 100%;
    display: block;
}

/* Link "Scopri lo/il..." sotto ogni immagine */
.link-more {
    margin-top: 4px;
    font-size: 14px;
    font-weight: 600;
    color: #0B1730;
    text-decoration: none;
}

.link-more:hover {
    text-decoration: underline;
}

/* ----------------------------- */
/* SEZIONE E-BOOK */
/* ----------------------------- */

.ebook-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.ebook-title {
    font-size: 26px;
    margin-bottom: 18px;
}

.ebook-cover {
    max-width: 320px;
    width: 100%;
    height: auto;
    margin: 0 auto 16px;
    display: block;
    border-radius: 8px;
}

.ebook-subtitle {
    margin-bottom: 20px;
    color: #4B5563;
    font-size: 15px;
}

/* ----------------------------- */
/* FORM CONTATTI (base) */
/* ----------------------------- */

form {
    margin-top: 20px;
}

form p {
    margin-bottom: 10px;
}

/* ----------------------------- */
/* RESPONSIVE */
/* ----------------------------- */

@media (max-width: 900px) {

    .header-inner {
        padding: 8px 0;
    }

    .menu a {
        font-size: 13px;
        padding: 4px 8px;
    }

    .header-right {
        gap: 12px;
    }

    .search-input {
        min-width: 120px;
        font-size: 12px;
    }

    /* hero classica */
    .hero-inner {
        flex-direction: column;
    }

    .hero-right {
        text-align: left;
    }

    .hero-img {
        max-width: 380px;
    }

    /* servizi in colonna su mobile */
    .service-list {
        flex-direction: column;
    }

    .service-row {
        max-width: 100%;
    }
}

@media (max-width: 600px) {

    .menu a {
        font-size: 12px;
        padding: 3px 6px;
    }

    .search-input {
        min-width: 110px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .hero-logo {
        height: 60px;
    }

    .hero-img {
        max-width: 320px;
    }
}
