/* ==========================================================
   BLU EST PORTAL — bluest.eu
   Costiero editoriale: navy + oro tramonto + beige sabbia
   ========================================================== */

:root {
    --navy: #0c2541;
    --navy-deep: #081a30;
    --navy-soft: #1a3759;
    --gold: #f5a623;
    --gold-warm: #e89018;
    --sand: #f5efe4;
    --sand-deep: #ebe2cf;
    --cream: #fdfbf6;
    --ink: #1c1c1c;
    --muted: #6b7280;

    --font-display: 'Fraunces', 'Times New Roman', serif;
    --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

    --max-w: 1240px;
    --pad-x: clamp(20px, 4vw, 56px);

    --radius-lg: 24px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--cream);
    background-image:
        radial-gradient(at 10% 0%, rgba(245, 166, 35, 0.06) 0px, transparent 50%),
        radial-gradient(at 90% 100%, rgba(12, 37, 65, 0.04) 0px, transparent 50%);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--navy);
}

h1 em, h2 em, h3 em {
    font-style: italic;
    font-weight: 400;
    color: var(--gold-warm);
    font-feature-settings: 'ss01';
}

p {
    color: var(--ink);
}

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold-warm);
}

/* ============= HEADER ============= */

.site-header {
    position: sticky;
    top: 0;
    background: rgba(253, 251, 246, 0.85);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid rgba(12, 37, 65, 0.08);
    z-index: 100;
}

.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 16px var(--pad-x);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.brand {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.brand-blu { color: var(--navy); }
.brand-est { color: var(--gold); font-style: italic; font-weight: 600; }
.brand-tag {
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--muted);
    margin-left: 8px;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
    position: relative;
    transition: color 0.2s;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}

.main-nav a:hover::after { transform: scaleX(1); }

@media (max-width: 700px) {
    .brand-tag { display: none; }
    .main-nav { gap: 16px; }
    .main-nav a { font-size: 13px; }
}


/* ============= HERO ============= */

.hero {
    padding: clamp(60px, 10vw, 140px) var(--pad-x) clamp(40px, 8vw, 100px);
    background: var(--navy);
    color: var(--cream);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.15), transparent 50%),
        radial-gradient(circle at 20% 90%, rgba(245, 166, 35, 0.08), transparent 40%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text .eyebrow {
    color: var(--gold);
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 110px);
    color: var(--cream);
    font-weight: 400;
    margin-bottom: 28px;
}

.hero h1 em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.hero .lead {
    font-size: clamp(16px, 1.4vw, 19px);
    color: rgba(253, 251, 246, 0.78);
    max-width: 540px;
    margin-bottom: 36px;
    line-height: 1.65;
}

/* "Sole" geometrico nel hero (decorazione che richiama il logo) */
.hero-mark {
    position: relative;
    aspect-ratio: 1;
    max-width: 380px;
    margin: 0 auto;
}

.hero-sun {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, var(--gold) 0%, var(--gold-warm) 70%);
    box-shadow:
        0 0 80px rgba(245, 166, 35, 0.35),
        0 0 160px rgba(245, 166, 35, 0.18);
    animation: gentle-pulse 6s ease-in-out infinite;
}

.hero-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(245, 166, 35, 0.5) 50%, transparent 100%);
}

.hero-line { top: 78%; }
.hero-line-2 { top: 84%; opacity: 0.6; }
.hero-line-3 { top: 90%; opacity: 0.4; }

@keyframes gentle-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.04); }
}

@media (max-width: 800px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .hero-mark {
        max-width: 240px;
        order: -1;
    }
}


/* ============= BOTTONI ============= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

.btn-primary {
    background: var(--gold);
    color: var(--navy);
}

.btn-primary:hover {
    background: var(--gold-warm);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(245, 166, 35, 0.35);
}


/* ============= SERVIZI ============= */

.services {
    padding: clamp(80px, 12vw, 160px) var(--pad-x);
    max-width: var(--max-w);
    margin: 0 auto;
}

.services-head {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 80px);
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.services-head h2 {
    font-size: clamp(36px, 5vw, 64px);
    margin-bottom: 16px;
}

.services-head p {
    font-size: 18px;
    color: var(--muted);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    position: relative;
    background: var(--sand);
    border-radius: var(--radius-lg);
    padding: 40px 32px 36px;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
                box-shadow 0.35s ease,
                background 0.35s ease;
    display: flex;
    flex-direction: column;
    min-height: 380px;
    isolation: isolate;
}

/* Variante card: ognuna ha la sua "tinta" sottile */
.card-1 { background: linear-gradient(160deg, #fdf4e1 0%, #fbe6c4 100%); }
.card-2 { background: linear-gradient(160deg, #e8efff 0%, #c8d6f0 100%); }
.card-3 { background: linear-gradient(160deg, #ecf3e6 0%, #c8d8bb 100%); }

.card::before {
    content: '';
    position: absolute;
    bottom: -50%;
    right: -30%;
    width: 80%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    transition: transform 0.5s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 60px -20px rgba(12, 37, 65, 0.25);
}

.card:hover::before {
    transform: scale(1.4);
}

.card-num {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--navy);
    opacity: 0.45;
    position: relative;
    z-index: 1;
}

.card-body {
    margin-top: 32px;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card h3 {
    font-size: 32px;
    line-height: 1.05;
    margin-bottom: 16px;
}

.card p {
    color: var(--navy-soft);
    font-size: 15px;
    line-height: 1.6;
    flex: 1;
    margin-bottom: 24px;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--navy);
    font-size: 15px;
    margin-bottom: 8px;
}

.card-cta .arrow {
    transition: transform 0.25s ease;
    font-size: 18px;
}

.card:hover .card-cta .arrow {
    transform: translateX(6px);
}

.card-host {
    font-size: 12px;
    color: var(--navy-soft);
    opacity: 0.6;
    font-family: ui-monospace, 'SF Mono', Menlo, monospace;
    letter-spacing: -0.02em;
}

@media (max-width: 900px) {
    .cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .card { min-height: 280px; }
}


/* ============= CHI SIAMO ============= */

.about {
    background: var(--navy);
    color: var(--cream);
    padding: clamp(80px, 12vw, 140px) var(--pad-x);
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.08), transparent 70%);
    pointer-events: none;
}

.about-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 80px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.about-text .eyebrow {
    margin-bottom: 24px;
}

.about-text h2 {
    font-size: clamp(34px, 5vw, 56px);
    color: var(--cream);
    margin-bottom: 28px;
}

.about-text h2 em {
    color: var(--gold);
}

.about-text p {
    font-size: 17px;
    line-height: 1.7;
    color: rgba(253, 251, 246, 0.8);
    margin-bottom: 18px;
}

.about-facts {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px 32px;
    border-left: 1px solid rgba(245, 166, 35, 0.25);
}

.fact {
    display: flex;
    flex-direction: column;
}

.fact-num {
    font-family: var(--font-display);
    font-size: 68px;
    font-weight: 600;
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.03em;
}

.fact-num small {
    font-size: 0.5em;
    font-weight: 400;
    margin-left: 4px;
}

.fact-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(253, 251, 246, 0.65);
    margin-top: 6px;
}

@media (max-width: 800px) {
    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-facts {
        border-left: none;
        border-top: 1px solid rgba(245, 166, 35, 0.25);
        padding: 32px 0 0;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .fact-num { font-size: 48px; }
}


/* ============= CONTATTI ============= */

.contact {
    padding: clamp(80px, 12vw, 140px) var(--pad-x);
    background: var(--sand);
}

.contact-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    text-align: center;
}

.contact h2 {
    font-size: clamp(40px, 6vw, 72px);
    margin-bottom: 16px;
}

.contact p {
    font-size: 18px;
    color: var(--muted);
    margin-bottom: 56px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 32px 24px;
    background: var(--cream);
    border-radius: var(--radius-md);
    border: 1px solid rgba(12, 37, 65, 0.06);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(12, 37, 65, 0.08);
}

.contact-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold-warm);
    font-weight: 600;
}

.contact-value {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 600;
    color: var(--navy);
    letter-spacing: -0.01em;
}

a.contact-value:hover {
    color: var(--gold-warm);
}

@media (max-width: 700px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}


/* ============= FOOTER ============= */

.site-footer {
    background: var(--navy-deep);
    color: rgba(253, 251, 246, 0.7);
    padding: 60px var(--pad-x) 40px;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 24px;
    line-height: 1;
}
.footer-brand .brand-blu { color: var(--cream); }
.footer-brand .brand-est { color: var(--gold); font-style: italic; }
.footer-brand small {
    display: block;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(253, 251, 246, 0.5);
    margin-top: 8px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav a {
    font-size: 14px;
    color: rgba(253, 251, 246, 0.7);
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: var(--gold);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
    font-size: 12px;
}

.footer-legal a {
    color: rgba(253, 251, 246, 0.7);
    text-decoration: underline;
}

.footer-legal a:hover { color: var(--gold); }

@media (max-width: 700px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: left;
    }
    .footer-legal { text-align: left; }
}
