/*
Theme Name: Sighieri Auto
Description: Tema WordPress personalizzato per Sighieri Auto, ispirato al sito originale.
Version: 1.0.1
Author: Sighieri
*/

:root {
    --red: #c9141b;
    --dark: #111;
    --light: #f4f4f4;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    line-height: 1.6;
}

a {
    color: var(--red);
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: auto;
}

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

.site-header {
    background: #111;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo {
    font-size: 25px;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.logo span {
    color: var(--red);
}

.nav,
.nav ul {
    display: flex;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.nav a:hover {
    color: #e31b23;
}

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

.hero {
    background: linear-gradient(120deg, #111, #262626 65%, #450b0d);
    color: #fff;
    padding: 90px 0;
}

.hero h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.05;
    max-width: 850px;
    margin: 0 0 18px;
}

.hero p {
    font-size: 20px;
    max-width: 760px;
    color: #eee;
}

/* =========================
   BUTTONS
   ========================= */

.btn {
    display: inline-block;
    padding: 13px 22px;
    border-radius: 4px;
    font-weight: 800;
    text-decoration: none;
    margin: 8px 8px 0 0;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-light {
    background: #fff;
    color: #111;
}

/* =========================
   SECTIONS
   ========================= */

.section {
    padding: 64px 0;
}

.section.alt {
    background: var(--light);
}

.section h2 {
    font-size: 36px;
    margin-top: 0;
}

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

.card {
    padding: 28px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 5px 18px #0000000c;
}

.card h3 {
    margin-top: 0;
}

/* =========================
   CONTENUTO PAGINE
   ========================= */

/* Nessuno spazio sopra il contenuto */
.content {
    padding: 0 0 60px;
}

.content h1 {
    font-size: 44px;
    line-height: 1.15;
}

/* =========================
   CTA
   ========================= */

.cta {
    background: var(--red);
    color: #fff;
    padding: 48px 0;
}

.cta h2 {
    color: #fff;
}

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

.site-footer {
    background: #111;
    color: #ddd;
    padding: 42px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.site-footer h3 {
    color: #fff;
}

.site-footer a {
    color: #ddd;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 800px) {

    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 14px 0;
    }

    .nav,
    .nav ul {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cards,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 60px 0;
    }
}
/* =========================
   PULSANTI CONTATTO FLOTTANTI
   ========================= */

.floating-contact-buttons {
    position: fixed;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    pointer-events: none;
}

.floating-contact-btn {
    position: fixed;
    top: 50%;
    width: 145px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .3px;
    box-shadow: 0 4px 14px rgba(0,0,0,.25);
    transition: transform .2s ease, box-shadow .2s ease;
    pointer-events: auto;
}

.floating-icon {
    width: 21px;
    height: 21px;
    fill: currentColor;
    flex-shrink: 0;
}

.call-btn {
    left: 18px;
    background: #c9141b;
    transform: translateY(-50%);
}

.whatsapp-btn {
    right: 18px;
    background: #25d366;
    transform: translateY(-50%);
}

.call-btn:hover {
    transform: translate(5px, -50%);
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.whatsapp-btn:hover {
    transform: translate(-5px, -50%);
    box-shadow: 0 6px 18px rgba(0,0,0,.35);
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 800px) {

    .floating-contact-btn {
        width: 52px;
        height: 52px;
        min-height: 52px;
        border-radius: 50%;
        padding: 0;
    }

    .call-btn {
        left: 12px;
    }

    .whatsapp-btn {
        right: 12px;
    }

    .floating-text {
        display: none;
    }

    .floating-icon {
        width: 23px;
        height: 23px;
    }
}