/* Stili del sito pubblico (landing page). I documenti stampabili usano landing.css. */
:root {
    --cm-primary: #1e88e5;
    --cm-primary-dark: #1565c0;
    --cm-accent: #e53935;
    --cm-accent-dark: #c62828;
    --cm-text: #546e7a;
    --cm-heading: #263238;
    --cm-surface: #f5f8fb;
    --bs-body-font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
    --bs-body-color: var(--cm-text);
    --bs-link-color: var(--cm-primary);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; /* compensa l'header sticky per i link a ancora */
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    font-weight: 300;
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--cm-heading);
    font-weight: 600;
    line-height: 1.25;
}

/* Header */
.site-header {
    background: linear-gradient(90deg, var(--cm-primary-dark), var(--cm-primary));
    box-shadow: 0 2px 12px rgba(0, 0, 0, .18);
}

/* Header sovrapposto all'hero: trasparente in cima (.at-top), pieno dopo lo scroll o con il menu mobile aperto */
.site-header-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    transition: background-color .3s ease, box-shadow .3s ease;
}

.site-header-overlay.at-top:not(:has(.navbar-collapse.show, .navbar-collapse.collapsing)) {
    background: transparent;
    box-shadow: none;
}

.site-header .nav-link {
    color: rgba(255, 255, 255, .88);
    font-weight: 400;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus {
    color: #fff;
}

/* Bottoni */
.btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--cm-accent);
    --bs-btn-border-color: var(--cm-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--cm-accent-dark);
    --bs-btn-hover-border-color: var(--cm-accent-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--cm-accent-dark);
    --bs-btn-active-border-color: var(--cm-accent-dark);
    font-weight: 500;
    border-radius: 50rem;
}

.btn-hero-outline {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .8);
    --bs-btn-hover-color: var(--cm-primary-dark);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
    border-radius: 50rem;
    font-weight: 500;
}

/* Hero */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 72px; /* spazio per l'header sovrapposto */
    color: #fff;
    text-align: center;
    background: url("../Images/home-banner.jpg") center / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(13, 71, 161, .65), rgba(30, 136, 229, .35));
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 30%;
    z-index: -1;
    background: url("../Images/banner-waves.png") bottom center / contain no-repeat;
}

.hero h1 {
    color: #fff;
    font-size: clamp(2.2rem, 6vw, 3.75rem);
    font-weight: 700;
    letter-spacing: .04em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.hero .lead {
    color: #fff;
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    font-weight: 400;
}

.hero p {
    color: rgba(255, 255, 255, .92);
}

/* Sezioni */
.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--cm-surface);
}

.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.section-title::after {
    content: "";
    display: block;
    width: 3.5rem;
    height: 4px;
    margin: .75rem auto 0;
    border-radius: 2px;
    background: var(--cm-primary);
}

/* Punti di forza */
.highlight {
    text-align: center;
    padding: 1.5rem 1rem;
    height: 100%;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .25rem 1rem rgba(38, 50, 56, .08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.highlight:hover {
    transform: translateY(-4px);
    box-shadow: 0 .75rem 1.75rem rgba(38, 50, 56, .14);
}

.highlight img {
    width: 4.5rem;
    height: 4.5rem;
    margin-bottom: .75rem;
}

.highlight .title {
    color: var(--cm-heading);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.highlight p {
    margin: .25rem 0 0;
    font-size: .9rem;
}

/* Funzionalità */
.feature h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.feature img {
    max-width: 100%;
    height: auto;
    border-radius: .75rem;
    box-shadow: 0 .75rem 2rem rgba(38, 50, 56, .18);
}

.feature img.plain {
    border-radius: 0;
    box-shadow: none;
}

/* Prezzi */
.price-card {
    max-width: 24rem;
    margin: 0 auto;
    border: 0;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 1rem 2.5rem rgba(38, 50, 56, .15);
}

.price-card .card-header {
    padding: 1rem;
    color: #fff;
    background: linear-gradient(90deg, var(--cm-primary-dark), var(--cm-primary));
}

.price-card .card-header h4 {
    margin: 0;
    color: #fff;
    letter-spacing: .08em;
}

.price-card .price {
    color: #2e7d32;
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.1;
}

.price-card ul li {
    padding: .35rem 0;
    border-bottom: 1px solid #eceff1;
}

.price-card ul li:last-child {
    border-bottom: 0;
}

/* Footer */
.site-footer {
    color: rgba(255, 255, 255, .8);
    background: var(--cm-heading);
    font-size: .9rem;
}

.site-footer a {
    color: #fff;
}
