﻿:root {
    --bg: #ffffff;  
    --text: #0b1220;  
    --muted: #5b6475;  
    --line: #e7e9ee; 
    --card: #f8fafc;  
    --ring: #e6eaf2; 
    --brand: #d32f2f;  
    --accent: #fbbf24;  
    --brand-ink: #0b1220; 
    --radius-xl: 22px;
    --radius-2xl: 28px;
}

    :root.dark {
        --bg: #0b0f16;  
        --text: #eef2f7;
        --muted: #a6b0c2;
        --line: #1b2431;
        --card: #0f172a;
        --ring: #111827;
    }

* {
    box-sizing: border-box
}

html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

/* --- NAV responsive additions --- */
.mobile-only { display: none; }

/* elementi del menu */
#navMenu .menu {
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu li{
    padding: 10px 0px;
}
#navMenu .menu > li > a,
#navMenu .drop-trigger {
  font-weight: 500;
  padding: 8px 10px;
  border-radius: 10px;
}
#navMenu .menu > li > a:hover,
#navMenu .drop-trigger:hover { background: var(--card); }
#navToggle{
    display: none;
    cursor: pointer;
}
/* Dropdown */
.has-dropdown { position: relative; }
.drop-trigger {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 220px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  display: none;
  box-shadow: 0 12px 30px rgba(2,6,23,.10);
  z-index: 20;
}
.dropdown a {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
}
.dropdown a:hover { background: var(--card); }

 @media (hover:hover) and (min-width: 860px) {
  .has-dropdown:hover > .dropdown { display: block; }
}

/* Mobile layout */
@media (max-width: 860px) {
  .mobile-only { display: inline-flex; }
    #navToggle{ display: block;}
  /* il tuo CSS nasconde .menu su mobile: qui lo mostriamo quando il nav è "open" */
  #navMenu {
    position: absolute;
    right: 12px;
    left: 12px;
    top: 68px;
    display: none;
  }
  #navMenu.open { display: block; }

  #navMenu .menu {
    display: grid;            /* a griglia su mobile */
    gap: 20px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding:20px 10px;
    box-shadow: 0 16px 40px rgba(2,6,23,.12);
  }

  /* Dropdown: incolonnato nello stesso pannello */
  .has-dropdown { position: static; }
  .has-dropdown .dropdown {
    position: static;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 4px 0 0 12px;
    display: none; /* chiuso di default */
  }
  .has-dropdown.open .dropdown { display: block; }
}


.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

html, body {
    height: 100%
}

body {
    margin: 0;
    font-family: Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
    background: var(--bg);
    color: var(--text)
}

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

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

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 18px
}

.btn {
    display: inline-flex;
    gap: .55rem;
    align-items: center;
    border-radius: 16px;
    padding: .9rem 1.1rem;
    border: 1px solid var(--line);
    background: transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease
}

    .btn.primary {
        background: var(--brand);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 12px 26px rgba(211,47,47,.25)
    }

        .btn.primary:hover {
            transform: translateY(-1px)
        }

    .btn.ghost {
        border-color: var(--ring)
    }

        .btn.ghost:hover {
            background: color-mix(in oklab, var(--brand) 8%, transparent)
        }

.pill {
    display: none;
    font-size: 12px;
    padding: .4rem .7rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-weight: 700
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border-radius: 12px;
    padding: .35rem .6rem;
    background: color-mix(in oklab, var(--brand) 14%, transparent);
    color: var(--brand);
    font-weight: 600
}

.ring {
    box-shadow: 0 0 0 1px var(--ring) inset
}

.shadow-xl {
    box-shadow: 0 22px 60px rgba(2,6,23,.18)
}

.shadow-lg {
    box-shadow: 0 16px 38px rgba(2,6,23,.16)
}

header.sticky {
    width: 100%;
    padding: 0px 20px;
    position: fixed;
    top: 0;
    z-index: 600;
    background: color-mix(in oklab, var(--bg) 84%, transparent);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--line)
}

.brand-mark {
    transition: 0.3s;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: color-mix(in oklab, var(--brand) 92%, #b91c1c);
    display: grid;
    place-items: center;
}

    .brand-mark:hover {
        outline: 8px solid color-mix(in oklab, var(--brand) 20%, transparent)
    }


nav .menu {
    display: none;
    gap: 24px
}

@media(min-width:860px) {
    nav .menu {
        display: flex
    }
}

section {
    padding: 96px 0
}

.section-border {
    border-top: 1px solid var(--line)
}

.hero {
    position: relative;
    overflow: hidden
}

    .hero::before {
        content: "";
        position: absolute;
        inset: -10% -20% auto auto;
        width: 1100px;
        height: 1100px;
        border-radius: 50%;
        /*background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 28%, transparent), transparent 70%);*/
        background: radial-gradient(closest-side, color-mix(in oklab, var(--brand) 18%, transparent), transparent 50% 10% );
        z-index: -1;
        transform: translate(25%,-14%);
        pointer-events: none
    }

.hero-grid {
    display: grid;
    gap: 48px;
    align-items: center
}

@media(min-width:940px) {
    .hero-grid {
        grid-template-columns: 1.1fr .9fr
    }
}

.kpis {
    display: flex;
    gap: 16px;
    color: var(--muted);
    font-size: .95rem;
    flex-wrap: wrap
}

.same-height {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3; 
    border-radius: inherit;
}


.grid {
    display: grid;
    gap: 24px
}

.cols-2 {
    grid-template-columns: repeat(2,1fr)
}

.cols-3 {
    grid-template-columns: repeat(3,1fr)
}

.cols-4 {
    grid-template-columns: repeat(4,1fr)
}

@media(max-width:1060px) {
    .cols-4 {
        grid-template-columns: repeat(2,1fr)
    }
}

@media(max-width:720px) {
    .cols-2, .cols-3, .cols-4 {
        grid-template-columns: 1fr
    }
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    padding: 20px;
    background: var(--bg)
}

    .card.tight {
        padding: 14px
    }

    .card.bleed {
        overflow: hidden
    }

.feature {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    flex-direction: column;
}

    .feature .icon {
        width: 46px;
        height: 46px;
        border-radius: 14px;
        background: color-mix(in oklab, var(--brand) 16%, transparent);
        display: grid;
        place-items: center;
        color: var(--brand);
        font-size: 20px
    }

.title {
    font-weight: 700;
    letter-spacing: -.02em
}

.subtitle {
    color: var(--muted)
}

.work {
    position: relative;
    border-radius: var(--radius-2xl);
    overflow: hidden
}

    .work img {
        height: 240px;
        width: 100%;
        object-fit: cover;
        transition: transform .45s ease
    }

    .work:hover img {
        transform: scale(1.035)
    }

    .work::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgb(255 96 0 / 78%), rgba(2, 6, 23, .1) 55%, transparent);
        opacity: 0;
        transition: .35s ease
    }

    .work:hover::after {
        opacity: 1
    }

a:hover {
    color: inherit;
}

.work-meta {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #fff
}

.step-num {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--brand);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800
}

.quote {
    font-size: 34px;
    line-height: 0;
    color: var(--brand)
}

footer {
    border-top: 1px solid var(--line);
    padding: 28px 0
}

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease
}

    .reveal.in {
        opacity: 1;
        transform: none
    }

.logo {
    display: flex;
    align-items: center;
    gap: 10px
}

.logo-text {
    display: flex;
    gap: .35ch;
    align-items: baseline
}

    .logo-text b {
        font-weight: 700
    }

    .logo-text .gold {
        color: var(--accent)
    }

    .logo-text .red {
        color: var(--brand)
    }

.brand-mark {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;  
}

.logo {
    display: block;
    width: 22px;
    height: 22px;
}

.logo-dark {
    display: none;
}

html.dark .logo-light {
    display: none;
}

html.dark .logo-dark {
    display: block;
}

@media (prefers-color-scheme: dark) {
    html:not(.dark):not(.light) .logo-light {
        display: none;
    }

    html:not(.dark):not(.light) .logo-dark {
        display: block;
    }
}

.contact-grid {
    display: grid;
    gap: 28px;
    align-items: center;
    grid-template-columns: 1.05fr .95fr;
}

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

    .contact-media {
        order: -1;
        max-width: 480px;
        margin: 0 auto;
    }
}

.contact-card {
    padding: 24px;
}

.contact-list {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
}

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

.indedx100 {
    z-index: 100;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 14px 16px;
    overflow-wrap: anywhere; 
    word-break: break-word;
}

.contact-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

@media (max-width: 560px) {
    .contact-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

.contact-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3; 
}

@media (min-width: 901px) {
    .contact-card {
        box-shadow: 0 28px 60px rgba(2,6,23,.14);
    }
}

figure{
    margin:0px;
}