/* ── Custom properties ─────────────────────────────────────── */
:root {
    --primary:      #bb1632;
    --primary-dark: #bb1632;
    --text:         #3C3C3B;
    --black:        #221F20;
    --white:        #ffffff;
    --light-bg:     #f5f5f5;
    --border:       #e0e0e0;
    --radius:       28px;
    --radius-sm:    12px;
    --transition:   0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.3;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    font-size: 1.2rem;
}

.section { padding: 50px 0; }

/* ── Typography helpers ─────────────────────────────────────── */
.section-label {
    display: block;
    --font-size: 1.rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: none;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.section-label--center { text-align: center; font-size: 2rem; margin-bottom: 18px; }

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 800;
    color: var(--black);
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-desc {
    --font-size: 1.2rem;
    line-height: 1.3rem;
    color: var(--text);
    margin-bottom: 32px;
    /*max-width: 520px;*/
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    padding: 14px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: opacity var(--transition), transform var(--transition);
    border: none;
    white-space: nowrap;
}

.btn:hover { opacity: 0.88; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-cta {
    background: linear-gradient(-35deg,var(--primary) 0%, #000 85%);
    color: var(--white);
}

.btn-outline-white {
    background: var(--white);
    border: 1.5px solid var(--white);
    font-size: 0.8rem;
    font-weight: bold;
}
.btn-outline-white strong { color: var(--primary); }


.btn-outline-white2 {
    background: transparent;
    color: var(--white);
    border: 1.5px solid var(--white);
    font-size: 0.8rem;
}

.btn-outline-white2 strong {
    color: var(--white);
}


.btn-submit {
    align-self: flex-end;
    flex-shrink: 0;
    white-space: nowrap;
}

/* ── HEADER ─────────────────────────────────────────────────── */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: var(--primary-dark);
    background: linear-gradient(90deg, #000 5%, var(--primary-dark) 40%);
    height: 100px;
}

.header-inner {
    display: flex;
    align-items: center;
    height: 100%;
    gap: 32px;
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    flex-shrink: 0;
}
.logo-name {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.05em;
}
.logo-sub {
    font-size: 1rem;
    font-weight: 600;
    color: rgb(255,255,255);
    letter-spacing: 0.06em;
    
}
.logo--dark .logo-name { color: var(--primary-dark); }
.logo--dark .logo-sub  { color: var(--text); }

/* Nav links */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    color: white;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    transition: background var(--transition);
    position: relative;
}

.nav-link:hover { background: rgba(255,255,255,0.08); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    max-height: 1000px;
    margin-top: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
}
.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    width: 100%;
}

.hero-sub {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
}
.hero-title {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: 32px;
}

/* ── CHI SIAMO ──────────────────────────────────────────────── */
.chisiamo-inner {
    display: grid;
    grid-template-columns: 2fr 5fr;
    gap: 64px;
    align-items: center;
}

.chisiamo-img img {
    width: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
    aspect-ratio: 4/3;
}

/* ── SERVIZI ────────────────────────────────────────────────── */
.servizi { background: var(--white); }
.servizi .container { max-width: 1200px; }

.services-accordion {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
     
}

/* Tab header */
.service-tab {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 36px;
    background: linear-gradient(90deg, #000 5%, var(--primary-dark) 40%);
    color: var(--white);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    border: none;
     text-align: left;
    
    transition: background var(--transition);
}
.service-tab {
    border-radius: 12px; overflow: hidden;}
.box_service-panel{ margin-bottom: 50px;}
.box_service-panel.active .service-tab {
    background: linear-gradient(90deg, #1a1a1a 0%, var(--primary) 100%);
    
}

 
.tab-arrow {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--white);
}
.box_service-panel.active .tab-arrow { transform: rotate(180deg); }

/* Content panel */
.service-content {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s ease;
    overflow: hidden;
    background: var(--white);
}
.box_service-panel.active .service-content { grid-template-rows: 1fr; }

.service-inner {
    overflow: hidden;
    display: grid;
    grid-template-columns: 2fr 5fr;
    gap: 0;
    min-height: 0;
}

.service-img {
    overflow: hidden;
    padding-top: 20px;
    
}
.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 140px;
    border-radius: 12px;
}

.service-text {
    padding: 48px 48px 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.service-desc {
    --font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 28px;
}

.vantaggi-title {
    --font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    margin: 20px auto ;
}

.text-center { text-align: center!important;}

.vantaggi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 30px;
    margin-top: 20px;
    width: 100%;
    margin-bottom: 32px;
}

.vantaggio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.check-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.vantaggio-item p {
    font-size: 1.25rem;
    color: var(--text);
    font-style: italic;
}
.vantaggio-item strong {
    font-style: normal;
    font-weight: 700;
}

/* ── PERCHÉ SCEGLIERE PUXA ──────────────────────────────────── */
.perche { background: var(--white); padding-top: 0; }

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

.why-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.why-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
}
.why-icon svg { width: 100%; height: 100%; }

.why-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 12px;
}

.why-text {
    font-size: 1.2rem;
    color: var(--text);
}

/* ── FORM ───────────────────────────────────────────────────── */
.preventivo { background: var(--light-bg); }

.form-card {
    background: var(--white);
    border-radius: 20px;
    border: 2px solid var(--border);
    padding: 56px 60px;
    max-width: 1000px;
    margin: 0 auto;
}

.form-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    margin-bottom: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
    margin-bottom: 24px;
}

.form-field { display: flex; flex-direction: column; gap: 8px; }

.field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.form-field input,
.form-field select {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    border: 1.5px solid #ccc;
    border-radius: var(--radius);
    padding: 14px 22px;
    outline: none;
    appearance: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    width: 100%;
}
.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.form-field input:focus,
.form-field select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(204,18,55,0.12);
}

/* Checkbox row */
.form-footer-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
}

.form-field--checkbox { flex: 1; min-width: 280px; }

.checkbox-wrap {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: var(--primary);
    margin-top: 2px;
    border-radius: 4px;
    padding: 3px;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.78rem;
    color: var(--text);
    cursor: pointer;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.site-footer { background: var(--primary-dark); }

.footer-main { padding: 60px 0; }

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 48px;
    align-items: start;
}

.footer-info { color: rgba(255,255,255,0.85); }
.footer-info p { font-size: 0.9rem; line-height: 1.8; }
.footer-info strong { color: var(--white); font-weight: 700; }
.footer-company strong { font-size: 1rem; }

.footer-map img {
    width: 100%;
    border-radius: var(--radius-sm);
    object-fit: cover;
    aspect-ratio: 16/9;
    max-height: 210px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: var(--white);
    transition: background var(--transition), border-color var(--transition);
}
.social-link svg { width: 18px; height: 18px; }
.social-link:hover { background: rgba(255,255,255,0.15); border-color: var(--white); }

/* Footer bottom bar */
.footer-bottom {
    background: var(--white);
    padding: 20px 0;
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-bottom-nav {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

.footer-bottom-link {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary-dark);
    padding: 4px 12px;
    position: relative;
}
.footer-bottom-link::after {
    content: '|';
    position: absolute;
    right: -4px;
    color: rgba(0,0,0,0.2);
}
.footer-bottom-link:last-child::after { display: none; }
.footer-bottom-link:hover { color: var(--primary); }

/* Form error state */
.form-field input.error,
.form-field select.error {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(204,18,55,0.18);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .container { padding: 0 28px; }
    .vantaggi-grid { grid-template-columns: 1fr; }
    .service-inner { grid-template-columns: 1fr; }
    .service-img { display: none; }
    .service-text { padding: 36px 32px; }
}

@media (max-width: 768px) {
    .section { padding: 56px 0; }

    /* Nav */
    .main-nav {
        display: none;
        position: fixed;
        top: 80px; left: 0; right: 0;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 24px;
        gap: 4px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    }
    .main-nav.open { display: flex; }
    .nav-link::after { display: none; }
    .header-inner > .btn-outline-white { display: none; }
    .hamburger { display: flex; }

    .chisiamo-inner { grid-template-columns: 1fr; gap: 32px; }
    .chisiamo-img { order: -1; }

    .why-grid { grid-template-columns: 1fr; gap: 36px; }

    .form-card { padding: 36px 24px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-footer-row { flex-direction: column; align-items: stretch; }
    .btn-submit { width: 100%; justify-content: center; }

    .footer-inner { grid-template-columns: 1fr; }
    .footer-social { flex-direction: row; }
    .footer-bottom-inner { flex-direction: column; gap: 16px; }
    .footer-bottom-nav { justify-content: center; }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-content { max-width: 100%; margin:0!important; }
    .service-tab { padding: 18px 20px; font-size: 0.875rem; }
    .btn  { font-size: 0.75rem; }
    .desktop  { display: none; }
}
