/* File: /assets/css/style.css */

/**
 * STILE FISSO STRUTTURALE
 * Layout, componenti, header/footer, griglie.
 * I COLORI E FONT SONO IN custom.css (variabili CSS).
 */

/* ===================================
   FONT SELF-HOSTED
   ===================================
   I font sono serviti dal nostro dominio invece che da fonts.gstatic.com.
   Prima il <head> conteneva due fogli di stile bloccanti verso un dominio
   esterno: due connessioni in piu' sul percorso critico, con il relativo
   ritardo su First Contentful Paint e Largest Contentful Paint.
   Non reintrodurre i <link> a fonts.googleapis.com in header.php. */

@font-face {
    font-family: 'Jockey One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/jockey-one-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: 'Jockey One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/jockey-one-latin-ext.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: 'Squada One';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/squada-one-latin.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ===================================
   RESET E BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Sfondo in marmo: livello fisso a tutta finestra. Se fosse sul body con
   background-size: cover, l'immagine si ridimensionerebbe a ogni cambio di altezza
   della pagina (es. apertura di una FAQ) e lo sfondo "salterebbe". Un pseudo-elemento
   fixed, a differenza di background-attachment: fixed, funziona anche su iOS. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(135deg, var(--bg-ov-1) 40%, var(--bg-ov-2) 45%, var(--bg-ov-3) 100%),
        url("../img/marblebg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Icone SVG inline (sostituiscono il font Material Icons di Google).
   Conservano la classe .material-icons, così tutte le regole esistenti che
   ne impostano font-size e color continuano a funzionare: la dimensione è
   espressa in em e il riempimento segue currentColor. */
svg.material-icons {
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -0.15em;
    fill: currentColor;
    flex-shrink: 0;
}

.header,
.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.service-card:hover {
    box-shadow: var(--shadow-md);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
    color: var(--color-accent);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ===================================
   LOADER OVERLAY
   =================================== */
/* .loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader-overlay img {
    width: 80px;
    height: 80px;
} */
/* ===================================
   PRELOADER (CUBE)
   =================================== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--color-bg);
    z-index: 9999;

    /* Visibile fin dal primo paint (style.css è bloccante nell'head) */
    display: grid;
    place-items: center;

    opacity: 1;
    transition: opacity 0.35s ease;
}

.preloader-logo {
    margin-top: 14px;
    margin-bottom: 10px;
    width: min(180px, 42vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.18));
}

.preloader.visible {
    display: grid;
    /* o flex, in base a come lo imposti */
    place-items: center;
    opacity: 1;
}

.preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.preloader .loading-text {
    margin-top: 18px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

/* --- Animazione cube (semplice) --- */
.cube-wrapper {
    width: 70px;
    height: 70px;
}

.cube-folding {
    width: 70px;
    height: 70px;
    position: relative;
    transform: rotate(45deg);
}

.cube-folding span {
    position: absolute;
    width: 35px;
    height: 35px;
    background: var(--color-accent);
    transform-origin: 100% 100%;
    animation: foldCube 2.4s infinite linear;
    opacity: 0.95;
}

/* 4 facce */
.cube-folding .leaf1 {
    top: 0;
    left: 0;
    animation-delay: 0.0s;
}

.cube-folding .leaf2 {
    top: 0;
    right: 0;
    animation-delay: 0.3s;
}

.cube-folding .leaf3 {
    bottom: 0;
    right: 0;
    animation-delay: 0.6s;
}

.cube-folding .leaf4 {
    bottom: 0;
    left: 0;
    animation-delay: 0.9s;
}

@keyframes foldCube {

    0%,
    10% {
        transform: perspective(140px) rotateX(-180deg);
        opacity: 0;
    }

    25%,
    75% {
        transform: perspective(140px) rotateX(0deg);
        opacity: 1;
    }

    90%,
    100% {
        transform: perspective(140px) rotateY(180deg);
        opacity: 0;
    }
}

/* Accessibilità: riduci animazioni se l’utente lo chiede */
@media (prefers-reduced-motion: reduce) {
    .cube-folding span {
        animation: none;
    }
}

/* ===================================
   CONTAINER
   =================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* ===================================
   HEADER STICKY
   =================================== */
.header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--color-bg-header-footer);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Logo */
.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

/* Navigazione Desktop */
.nav-desktop {
    display: none;
}

@media (min-width: 768px) {
    .nav-desktop {
        display: block;
    }
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-link {
    font-size: 1rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background 0.3s ease, color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    background: var(--color-accent);
    color: #fff;
}

/* Hamburger Menu Mobile */
.hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px;
    z-index: 1001;
}

@media (min-width: 768px) {
    .hamburger {
        display: none;
    }
}

.hamburger-line {
    width: 28px;
    height: 3px;
    background: var(--color-text);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

/* Menu Mobile Overlay */
.nav-mobile {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--color-bg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
    overflow-y: auto;
}

.nav-mobile.open {
    transform: translateX(0);
}

.nav-mobile-list {
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.nav-mobile-link {
    font-size: 1.25rem;
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 8px;
    transition: background 0.3s ease, color 0.3s ease;
    display: block;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
    background: var(--color-accent);
    color: #fff;
}

/* ===================================
   MAIN CONTENT
   =================================== */
.main-content {
    min-height: calc(100vh - 80px - 200px);
    /* Header + footer stimato */
    /* padding-top: 20px; */
}

/* ===================================
   HERO SECTION (HOME)
   =================================== */
.hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--color-bg) 0%, #e8e8ea 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: blur(2px);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--color-text);
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    color: var(--color-text);
    opacity: 0.9;
}

/* CTA Button */
.btn {
    display: inline-block;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    background: var(--color-accent);
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn:hover {
    background: var(--color-accent-dark);
    transform: translateY(-2px);
    color: #fff;
}

/* ===================================
   SEZIONI GENERICHE
   =================================== */
.section {
    padding: 60px 0;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-text);
}

.section-subtitle {
    font-size: 1.125rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    color: var(--color-text);
    opacity: 0.8;
}

/* ===================================
   SEZIONE CHI SIAMO (ANTEPRIMA HOME)
   =================================== */
.about-wrap {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 900px) {
    .about-wrap {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.about-wrap .kicker {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--color-text);
    opacity: 0.6;
    display: block;
    margin-bottom: 14px;
}

.about-wrap .section-title {
    text-align: left;
    margin-bottom: 24px;
}

.about-copy p {
    font-size: 1.08rem;
    line-height: 1.85;
    color: var(--color-text);
    opacity: 0.85;
    margin: 0 0 24px;
}

.about-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.about-card h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    margin: 0 0 8px;
    color: var(--color-text);
}

.about-card p {
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--color-text);
    opacity: 0.8;
    margin: 0;
}

.stat-row {
    display: flex;
    gap: 32px;
    margin-top: 24px;
}

.stat b {
    font-family: var(--font-heading);
    font-size: 2rem;
    display: block;
    color: var(--color-accent);
    font-weight: normal;
}

.stat span {
    font-size: 0.85rem;
    color: var(--color-text);
    opacity: 0.7;
}

/* ===================================
   GRIGLIA SERVIZI
   =================================== */
.services-grid {
    display: grid;
    gap: 30px;

    /* Desktop: 4 colonne, una sola riga */
    grid-template-columns: repeat(4, 1fr);
}

/* Tablet e mobile: 2 colonne (2 righe da 2, con 4 servizi) */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid {
        gap: 15px;
    }
}

.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    /* aspect-ratio: 4 / 3; */
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.service-card:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* .service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.service-card:hover .service-card-overlay,
.service-card:focus .service-card-overlay {
    opacity: 1;
}

.service-card-overlay h3 {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 10px;
}

.service-card-overlay p {
    font-size: 0.95rem;
    color: #fff;
    opacity: 0.9;
} */
/* CARD SERVIZIO: immagine sopra + testo sotto (sempre visibile) */
.service-card {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;

    /* layout verticale */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
}

.service-card:focus {
    outline: 3px solid var(--color-accent);
    outline-offset: 2px;
}

/* Solo l'area immagine ha aspect-ratio */
.service-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #fff;
}

.service-card-gallery-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
}

.service-card-gallery-badge .material-icons {
    font-size: 18px;
    color: #fff;
}

.service-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 0.35s ease;
}

.service-card:hover .service-card-img {
    transform: scale(1.04);
}

.service-card-content {
    padding: 16px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-card-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.service-card-text {
    font-size: 0.98rem;
    color: var(--color-text);
    line-height: 1.55;
    opacity: 0.8;
}

/* ===================================
   TEAM (CHI SIAMO) — card semplici, non cliccabili
   =================================== */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

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

.team-card {
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.10);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-card .service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ===================================
   LIGHTBOX / MODAL (GALLERIA SERVIZI)
   =================================== */
.lightbox {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 10000;

    /* Overlay scuro ma coerente con la palette del sito (non nero piatto) */
    background:
        linear-gradient(135deg, rgba(26, 26, 26, 0.94) 0%, rgba(15, 15, 15, 0.97) 100%);
    backdrop-filter: blur(6px);

    justify-content: center;
    align-items: center;

    padding: calc(12px + env(safe-area-inset-top, 0px)) calc(12px + env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) calc(12px + env(safe-area-inset-left, 0px));

    opacity: 0;
    transition: opacity 0.25s ease;
}

.lightbox.open {
    display: flex;
    opacity: 1;
}

/* Contenitore: sempre centrato e mai più grande della viewport */
.lightbox-content {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;

    width: min(92vw, 1200px);
    max-height: 92vh;

    transform: scale(0.97);
    transition: transform 0.25s ease;
}

.lightbox.open .lightbox-content {
    transform: scale(1);
}

.lightbox-spinner {
    position: absolute;
    inset: 0;
    display: none;
    place-items: center;
    pointer-events: none;
}

.lightbox.is-loading .lightbox-spinner {
    display: grid;
}

.lightbox-spinner::before {
    content: "";
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.9);
    animation: lb-spin 0.9s linear infinite;
}

@keyframes lb-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Immagine: NON deve mai uscire dalla viewport */
.lightbox-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 92vw;
    max-height: 78vh;
    object-fit: contain;

    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    background: var(--color-surface);

    opacity: 1;
    transform: scale(1);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.lightbox-img.is-loading {
    opacity: 0;
    transform: scale(0.98);
}

/* Striscia di miniature: mostra che ci sono altre immagini e permette di saltarci */
.lightbox-thumbs {
    display: none;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    max-width: 92vw;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px;
    scrollbar-width: thin;
}

.lightbox-thumb {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: var(--color-surface);
    box-shadow: var(--shadow-sm);
    opacity: 0.65;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lightbox-thumb:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.lightbox-thumb.active {
    opacity: 1;
    border-color: var(--color-accent-dark);
}

@media (max-width: 600px) {
    .lightbox-thumb {
        width: 44px;
        height: 44px;
    }
}

/* Caption: pillola coerente con lo stile delle card, non testo nudo su nero */
.lightbox-caption {
    margin-top: 16px;
    padding: 8px 22px;
    border-radius: 30px;
    text-align: center;
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    font-family: var(--font-heading);
    letter-spacing: 0.02em;
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    max-width: 92vw;
}

.lightbox-caption:empty {
    display: none;
}

/* Bottoni: cerchi coerenti con la palette chiara del sito, ancorati alla viewport
   (non al contenuto) così restano centrati indipendentemente dalla lunghezza della caption */
.lightbox-close,
.lightbox-nav {
    position: fixed;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;

    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    cursor: pointer;

    background: var(--color-surface);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(4px);

    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    transition: transform 0.2s ease, background 0.2s ease;
}

.lightbox-close .material-icons,
.lightbox-nav .material-icons {
    color: var(--color-accent-dark);
}

.lightbox-close .material-icons {
    font-size: 22px;
}

.lightbox-nav .material-icons {
    font-size: 26px;
}

.lightbox-close {
    top: clamp(10px, 3vw, 24px);
    right: clamp(10px, 3vw, 24px);
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: #fff;
    transform: scale(1.08);
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-nav:hover {
    transform: translateY(-50%) scale(1.08);
}

.lightbox-prev {
    left: clamp(10px, 3vw, 32px);
}

.lightbox-next {
    right: clamp(10px, 3vw, 32px);
}

@media (max-width: 600px) {
    .lightbox-nav,
    .lightbox-close {
        width: 40px;
        height: 40px;
    }

    .lightbox-img {
        max-height: 68vh;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* ===================================
   PAGINA CHI SIAMO
   =================================== */
.content-block {
    max-width: 800px;
    margin: 0 auto 60px;
    text-align: center;
}

/* "La Nostra Storia": testo a sinistra, illustrazione della sede a destra */
.storia-wrap {
    max-width: 1100px;
    margin: 0 auto 60px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: center;
    text-align: center;
}

@media (min-width: 900px) {
    .storia-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        text-align: left;
    }
}

.storia-img {
    width: 100%;
    height: auto;
    filter: drop-shadow(2px 4px 6px black);
}

.content-narrow {
    max-width: 800px;
    margin: 0 auto;
}

.content-heading {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: var(--color-accent);
    text-align: center;
}

.content-text {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.content-list {
    font-size: 1.125rem;
    line-height: 1.8;
    list-style-position: inside;
    padding-left: 0;
}

.content-list li {
    margin-bottom: 15px;
}

.cta-lead {
    font-size: 1.25rem;
    margin-bottom: 20px;
}

/* ===================================
   PAGINA CONTATTI
   =================================== */
.contact-info {
    max-width: 700px;
    margin: 0 auto 40px;
    text-align: center;
}

.contact-info p {
    font-size: 1.125rem;
    margin-bottom: 20px;
}

.contact-info a {
    color: var(--color-accent);
    font-weight: 600;
}

.contact-info p.contact-intro {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

.info-note {
    font-size: 0.85rem;
}

.contact-cta {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-top: 30px;
}

.phone-card {
    max-width: 700px;
    margin: 0 auto 50px;
    padding: 40px 30px;
    text-align: center;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.phone-card .material-icons {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.phone-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-text);
    margin-bottom: 25px;
}

.phone-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.phone-block {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.phone-block .phone-role {
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.7;
}

.phone-block .phone-who {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 4px;
}

.phone-block .phone-num {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--color-accent);
}

.phone-card-note {
    margin-top: 25px;
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.7;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto 50px;
}

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

.info-item {
    text-align: center;
    padding: 30px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.info-item .material-icons {
    font-size: 2.25rem;
    color: var(--color-accent);
    margin-bottom: 10px;
}

.info-item h2 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--color-text);
    margin-bottom: 10px;
}

.info-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    opacity: 0.85;
}

.contact-map {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 450px;
    border: none;
}

.contact-map iframe[hidden] {
    display: none;
}

.contact-map.map-embed-active .contact-map-link {
    display: none;
}

.contact-map-note {
    max-width: 1000px;
    margin: 12px auto 0;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--color-text);
    opacity: 0.85;
}

.contact-map-note a {
    text-decoration: underline;
}

.contact-map.map-embed-active + .contact-map-note {
    display: none;
}

.contact-map-link {
    position: relative;
    display: block;
    line-height: 0;
}

.contact-map-link img {
    display: block;
    width: 100%;
    height: 450px;
    object-fit: cover;
}

.contact-map-cta {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #fff;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.contact-map-link:hover .contact-map-cta,
.contact-map-link:focus-visible .contact-map-cta {
    transform: translateY(-2px);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background: var(--color-bg-header-footer);
    color: var(--color-text);
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 15px;
}

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

.footer-link {
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--color-accent);
}

.footer-text {
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.footer-icon {
    font-size: 1.25rem;
}

/* Orari in tabella, stile Google */
.footer-hours {
    border-collapse: collapse;
    width: auto;
    font-size: 0.85rem;
    line-height: 1.3;
}

.footer-hours th,
.footer-hours td {
    padding: 2px 0;
    vertical-align: top;
    text-align: left;
    font-weight: normal;
    white-space: nowrap;
}

.footer-hours th {
    padding-right: 16px;
}

.footer-hours .is-today th,
.footer-hours .is-today td {
    font-weight: 700;
}

/* Mobile: tutto il testo del footer centrato */
@media (max-width: 600px) {
    .footer-content {
        text-align: center;
    }

    .footer-col,
    .footer-links {
        align-items: center;
    }

    .footer-text {
        justify-content: center;
        text-align: center;
    }
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===================================
   UTILITIES
   =================================== */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.hidden {
    display: none !important;
}

/* ===================================
   NAP, NOTE LEGALI E TITOLI
   ===================================
   Il blocco <address> tiene nome, indirizzo, telefono ed email contigui:
   è la forma che i motori di ricerca associano a un'attività locale. */

.footer-address,
.info-address {
    font-style: normal;
    /* <address> è corsivo per default nei browser */
}

.footer-company,
.info-company {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.02rem;
    margin-bottom: 8px;
}

.footer-legal {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
}

/* Sottotitolo dentro l'h1 della home: resta nello stesso heading (un solo h1
   per pagina) ma con peso visivo minore. */
.h1-sub {
    display: block;
    font-size: 0.62em;
    opacity: 0.92;
    line-height: 1.25;
    margin-top: 0.25em;
}

/* Elenco comuni serviti (pagina servizi) */
.zone-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.zone-list li {
    padding: 6px 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    background: var(--color-surface);
    font-family: var(--font-heading);
}

/* Titolo di sezione della pagina servizi: colma il salto da h1 a h3 */
.section-subtitle-heading {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: 25px;
    opacity: 0.9;
}

