/* Form ricerca aziende - DARK THEME */
.aziende-search-form {
    max-width: 600px;
    margin: 40px auto;
}

.aziende-search-form .search-wrapper {
    display: flex;
    gap: 10px;
}

.search-input-wrap {
    position: relative;
    flex: 1;
}

.aziende-search-form input[type="text"] {
    width: 100%;
    padding: 15px 44px 15px 20px;
    border: 2px solid rgba(142, 120, 97, 0.85);
    font-size: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: #e5e5e5;
    transition: all 0.3s ease;
}

.aziende-search-form input[type="text"]:focus {
    background: rgba(255, 255, 255, 0.07);
    border-color: transparent transparent #8e7861 transparent;
    padding: 15px 44px 15px 20px;
    outline: 2px solid #c4a788;
    outline-offset: 2px;
}

.aziende-search-form input[type="text"]::placeholder {
    color: rgba(200, 200, 200, 0.35);
}

/* Bottone submit "Cerca" */
.aziende-search-form button[type="submit"] {
    padding: 15px 30px;
    background: rgba(142, 120, 97, 0.2);
    color: #e5e5e5;
    border: 2px solid #8e7861;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.aziende-search-form button[type="submit"]:hover {
    background: #8e7861;
    border-color: #a89178;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(142, 120, 97, 0.4);
}

/* Bottone clear × */
.aziende-search-form button[type="button"] {
    display: none;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    padding: 0;
    box-sizing: border-box;
    background: transparent;
    border: 1.5px solid rgba(142, 120, 97, 0.55);
    border-radius: 50%;
    color: rgba(200, 200, 200, 0.7);
    cursor: pointer;
    box-shadow: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Appare quando l'input ha un valore (placeholder non visibile) */
.aziende-search-form input[type="text"]:not(:placeholder-shown) + button[type="button"] {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.aziende-search-form button[type="button"]:hover {
    background: rgba(142, 120, 97, 0.15);
    border-color: rgba(142, 120, 97, 0.9);
    color: #e5e5e5;
    transform: translateY(-50%);
}

/* Archivio e Risultati ricerca Aziende - DARK THEME */
/* Hero Section per Archivio Aziende */
.aziende-archive-hero-section {
    position: relative;
    width: 100%;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -100px !important;
    z-index: 1;
}

.aziende-archive-hero-container-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-image: url('../images/aziende-archive-hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Sfondo di fallback se l'immagine non viene caricata */
.aziende-archive-hero-container-inner {
    background-color: #1a1a1a;
}

.aziende-archive-hero-section .hero-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(20, 20, 20, 0.75) 30%,
        rgba(142, 120, 97, 0.15) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

.aziende-search-results {
    padding: 60px 0;
    min-height: 60vh;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);
}

.aziende-archive .content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.aziende-search-results .content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.aziende-archive .content-area {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 40px;
    position: relative;
    z-index: 10;
    margin-top: 0 !important;
}

.aziende-search-results .content-area {
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 40px;
}

.aziende-archive .page-title,
.aziende-search-results .page-title {
    color: #e5e5e5;
    font-size: 2rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.aziende-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #8e7861;
}

.aziende-archive .no-results,
.aziende-search-results .no-results {
    color: #b5b5b5;
    font-size: 1.1rem;
    text-align: center;
    padding: 40px 20px;
}

/* Wrapper del form di ricerca nell'archivio - DARK THEME */
.aziende-search-wrapper {
    margin-bottom: 24px;
}

/* Separatore con link CTA tra form e filter bar */
.aziende-separator {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
}
.aziende-separator::before {
    content: '';
    flex: 1;
    height: 2px;
    background: rgba(142, 120, 97, 0.3);
}
.aziende-separator-link {
    font-size: 16px;
    color: #8e7861;
    text-decoration: none;
    margin-left: 14px;
    white-space: nowrap;
    line-height: 1;
}
.aziende-separator-link:hover {
    color: #a89178;
}

.aziende-search-wrapper .aziende-search-form {
    margin: 0;
    max-width: 100%;
}

.aziende-back-link a {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(142, 120, 97, 0.15);
    color: #a89178;
    text-decoration: none;
    border: 2px solid rgba(142, 120, 97, 0.4);
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.aziende-back-link a:hover {
    background: rgba(142, 120, 97, 0.25);
    border-color: #8e7861;
    color: #c4a788;
    transform: translateX(-4px);
}

.aziende-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.azienda-card {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.9));
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.azienda-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.azienda-logo {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-bottom: 2px solid rgba(142, 120, 97, 0.3);
}

.azienda-logo img {
    max-width: 100%;
    max-height: 160px;
    object-fit: contain;
    filter: brightness(1.1);
    transition: filter 0.3s ease;
}

.azienda-card:hover .azienda-logo img {
    filter: brightness(1.2);
}

.azienda-content {
    padding: 25px;
}

.azienda-content h2 {
    margin: 0 0 12px;
    font-size: 24px;
    color: #e5e5e5;
    font-weight: 600;
    transition: color 0.3s ease;
}

.azienda-card:hover .azienda-content h2 {
    color: #8e7861;
}

.azienda-content p {
    margin: 0;
    color: #b5b5b5;
    font-size: 14px;
    line-height: 1.7;
}

/* Card Solo Nome — non cliccabile, nessun hover interattivo */
.azienda-card--solo-nome {
    cursor: default;
    opacity: 0.85;
}

.azienda-card--solo-nome:hover {
    transform: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.azienda-card--solo-nome:hover .azienda-logo img {
    filter: brightness(1.1);
}

.azienda-card--solo-nome:hover .azienda-content h2 {
    color: #e5e5e5;
}

.azienda-card--solo-nome .azienda-placeholder {
    font-style: italic;
    color: #b5b5b5;
}

/* Paginazione risultati - DARK THEME */
.aziende-archive .pagination,
.aziende-search-results .pagination {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(142, 120, 97, 0.3);
}

.aziende-archive .pagination a,
.aziende-search-results .pagination a {
    color: #a89178;
    border: 2px solid rgba(142, 120, 97, 0.4);
    background: rgba(40, 40, 40, 0.6);
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.aziende-archive .pagination a:hover,
.aziende-search-results .pagination a:hover {
    background: rgba(142, 120, 97, 0.2);
    border-color: #8e7861;
    color: #c4a788;
}

.aziende-archive .pagination .current,
.aziende-search-results .pagination .current {
    background: #8e7861;
    color: #0a0a0a;
    border: 2px solid #8e7861;
    padding: 8px 16px;
}

/* Singola azienda */
.azienda-single {
    padding: 60px 0;
    color: #f0f0f0;
}

.azienda-single > .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

.azienda-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.azienda-header h1 {
    color: #ffffff;
    font-weight: 600;
}

.azienda-logo-large {
    max-width: 200px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.azienda-body {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
    margin-bottom: 40px;
}

.azienda-photo {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.azienda-photo:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}

.azienda-description {
    margin-bottom: 30px;
}

.azienda-description h2 {
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: 500;
}

.azienda-description p {
    color: #e0e0e0;
    line-height: 1.8;
}

.info-box {
    background: linear-gradient(145deg, rgba(30, 30, 30, 0.8), rgba(20, 20, 20, 0.9));
    padding: 25px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.info-box h3 {
    margin: 0 0 15px;
    font-size: 18px;
    color: #e5e5e5;
    font-weight: 600;
    border-bottom: 2px solid rgba(142, 120, 97, 0.3);
    padding-bottom: 10px;
}

.info-box p {
    margin: 8px 0;
    font-size: 18px;
    color: #b5b5b5;
}

.info-box p strong {
    color: #8e7861;
    font-weight: 600;
    font-size: 20px;
}

/* Ubicazione - layout prominente */
.info-box-ubicazione {
    border: 1px solid rgba(142, 120, 97, 0.4);
}

.ubicazione-grid {
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.ubicazione-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    text-align: center;
}

.ubicazione-label {
    font-size: 13px;
    color: #a89178;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 4px;
}

.ubicazione-value {
    font-size: 40px;
    font-weight: 700;
    color: #e5e5e5;
    line-height: 1.1;
}

.info-box a {
    color: #a89178;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-box a:hover {
    color: #c4a788;
    text-decoration: underline;
}

/* Contact List con Icone - DARK THEME */
.contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: rgba(40, 40, 40, 0.6);
    border: 2px solid rgba(142, 120, 97, 0.4);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(50, 50, 50, 0.8);
    border-color: #8e7861;
    transform: translateX(4px);
}

.contact-icon {
    width: 28px;
    height: 28px;
    color: #8e7861;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-icon {
    color: #a89178;
}

.contact-item a {
    color: #c5c5c5;
    font-size: 14px;
    word-break: break-all;
}

.contact-item a:hover {
    color: #e5e5e5;
}

.social-links {
    display: flex;
    flex-direction: row;
    gap: 15px;
    justify-content: flex-start;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(40, 40, 40, 0.6);
    border-radius: 50%;
    color: #8e7861;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 30px;
    height: 30px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #8e7861;
    color: #ffffff;
    transform: translateY(-4px);
}

.social-icon:hover svg {
    color: #ffffff;
    transform: scale(1.1);
}

.azienda-map {
    margin-top: 40px;
}

.azienda-map h2 {
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 500;
}

.acf-map {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ============================================
   Hero Header Style - Single Azienda
   ============================================ */

/* Override tema parent per permettere sovrapposizione */
body.single-aziende #primary.content-area,
.azienda-hero-section ~ #primary.content-area {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.single-aziende .content-container,
.azienda-hero-section ~ * .content-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.single-aziende .site-main,
.azienda-hero-section ~ * .site-main {
    padding-top: 0 !important;
}

.azienda-hero-section {
    position: relative;
    width: 100%;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -120px !important;
    z-index: 1;
}

.azienda-hero-container-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.azienda-hero-section .hero-section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.85) 0%,
        rgba(20, 20, 20, 0.75) 30%,
        rgba(142, 120, 97, 0.15) 70%,
        rgba(0, 0, 0, 0.7) 100%
    );
    z-index: 1;
}

/* ============================================
   Header nella Colonna Principale
   ============================================ */

.azienda-main-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid rgba(142, 120, 97, 0.5);
}

.azienda-logo-main-wrapper {
    margin: 0 auto 30px;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    display: inline-block;
    backdrop-filter: blur(10px);
}

.azienda-logo-main {
    width: 100%;
    height: auto;
    max-width: 350px;
    display: block;
    filter: brightness(1.1);
}

.azienda-main-title {
    color: #e5e5e5;
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Article Sovrapposto - DARK THEME
   ============================================ */

.azienda-single-article {
    position: relative;
    z-index: 10;
    background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
    padding: 40px;
    margin-top: 0 !important;
    margin-bottom: 60px;
}

.azienda-photo-wrapper {
    margin-bottom: 30px;
    overflow: hidden;
    border: 2px solid #8e7861;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.azienda-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.azienda-photo:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
}

.azienda-description h2,
.azienda-map-section h2 {
    color: #e5e5e5;
    font-size: 1.75rem;
    margin-bottom: 16px;
    font-weight: 600;
    border-bottom: 2px solid #8e7861;
    padding-bottom: 12px;
    display: inline-block;
}

.azienda-description p {
    color: #c5c5c5;
    line-height: 1.8;
    font-size: 24px;
}

.azienda-content {
    color: #c5c5c5;
    line-height: 1.8;
    margin-top: 30px;
}

.azienda-map-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(142, 120, 97, 0.3);
}

.azienda-location-info {
    color: #c5c5c5;
    margin-bottom: 20px;
    line-height: 1.7;
    font-size: 24px;
}

.azienda-location-info b {
    color: #8e7861;
    font-weight: 700;
    font-size: 32px;
}

/* Filtri Mappa — controllo nativo Google Maps (BOTTOM_CENTER) */
.map-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0;      /* margine superiore rispetto al bordo mappa */
    padding: 8px 12px;
    background: rgba(15, 15, 15, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 24px;
    border: 1px solid rgba(142, 120, 97, 0.45);
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(142, 120, 97, 0.5);
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.filter-btn:hover {
    background: rgba(142, 120, 97, 0.3);
    border-color: #8e7861;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(142, 120, 97, 0.3);
}

.filter-btn.active {
    background: linear-gradient(135deg, #8e7861, #a89078);
    border-color: #8e7861;
    color: #0a0a0a;
    box-shadow: 0 4px 15px rgba(142, 120, 97, 0.5);
}

.filter-btn svg {
    flex-shrink: 0;
}

.filter-btn span {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.azienda-google-map {
    overflow: hidden;
    border: 2px solid #8e7861;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

#google-map-azienda {
    width: 100%;
    height: 0;
    padding-bottom: 61.8%; /* Desktop: altezza = larghezza / 1.618 */
    position: relative;
}

#google-map-azienda > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
    .azienda-single > .container {
        padding-left: 30px !important;
        padding-right: 30px !important;
    }

    .aziende-archive .content-container,
    .aziende-search-results .content-container {
        padding-left: 30px;
        padding-right: 30px;
    }

    .aziende-archive .content-area,
    .aziende-search-results .content-area {
        padding: 30px;
    }

    .azienda-title {
        font-size: 2.5rem;
    }

    .azienda-single-article {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .azienda-body {
        grid-template-columns: 1fr;
    }

    .aziende-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .aziende-search-form .search-wrapper {
        flex-direction: column;
    }

    .aziende-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .aziende-back-link {
        width: 100%;
        text-align: center;
    }

    .aziende-back-link a {
        display: block;
        width: 100%;
    }

    .azienda-single {
        padding: 40px 0;
    }

    .azienda-single > .container {
        padding-left: 25px !important;
        padding-right: 25px !important;
    }

    .aziende-archive-hero-section {
        min-height: 350px;
        margin-bottom: -80px !important;
    }

    .aziende-archive-hero-container-inner {
        min-height: 350px;
    }

    .aziende-archive .content-container,
    .aziende-search-results .content-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .aziende-archive .content-area,
    .aziende-search-results .content-area {
        padding: 25px;
    }

    .aziende-archive .page-title,
    .aziende-search-results .page-title {
        font-size: 1.75rem;
    }

    .azienda-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .azienda-logo-large {
        max-width: 150px;
    }

    .info-box {
        padding: 20px;
    }

    .acf-map {
        height: 300px;
    }


    /* Hero responsive */
    .azienda-hero-section {
        min-height: 400px;
        margin-bottom: -80px;
    }

    .azienda-hero-container-inner {
        min-height: 400px;
    }

    .azienda-single-article {
        padding: 25px;
        margin-top: 0 !important;
        margin-bottom: 40px;
    }

    .azienda-main-title {
        font-size: 2rem;
    }

    .azienda-main-header {
        margin-bottom: 40px;
        padding-bottom: 25px;
        text-align: center;
    }

    .azienda-logo-main-wrapper {
        max-width: 300px;
        padding: 25px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .azienda-logo-main {
        max-width: 250px;
    }

    #google-map-azienda {
        padding-bottom: 161.8%; /* Mobile: altezza = larghezza × 1.618 */
    }

    /* Filtri mappa responsive */
    .map-filters {
        gap: 6px;
        padding: 6px 10px;
    }

    .filter-btn {
        font-size: 13px;
        padding: 8px 12px;
        gap: 6px;
    }

    .filter-btn svg {
        width: 18px;
        height: 18px;
    }

    .filter-btn span {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .azienda-single > .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .aziende-archive-hero-section {
        min-height: 300px;
        margin-bottom: -60px !important;
    }

    .aziende-archive-hero-container-inner {
        min-height: 300px;
    }

    .aziende-archive .content-container,
    .aziende-search-results .content-container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .aziende-archive .content-area,
    .aziende-search-results .content-area {
        padding: 20px;
    }

    .aziende-archive .page-title,
    .aziende-search-results .page-title {
        font-size: 1.5rem;
        margin-bottom: 30px;
    }

    .azienda-content {
        padding: 20px;
    }

    .info-box {
        padding: 18px;
    }

    .social-links a {
        padding: 8px 15px;
        font-size: 13px;
    }

    /* Hero mobile */
    .azienda-hero-section {
        min-height: 350px;
        margin-bottom: -60px;
    }

    .azienda-hero-container-inner {
        min-height: 350px;
    }

    .azienda-single-article {
        padding: 20px;
        margin-top: 0 !important;
        border-radius: 16px;
    }

    .azienda-main-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .azienda-main-title {
        font-size: 1.75rem;
    }

    .azienda-logo-main-wrapper {
        max-width: 250px;
        padding: 20px;
        margin-bottom: 20px;
        display: block;
        margin-left: auto;
        margin-right: auto;
    }

    .azienda-logo-main {
        max-width: 210px;
    }

    .azienda-description h2,
    .azienda-map-section h2 {
        font-size: 1.5rem;
    }

    #google-map-azienda {
        height: 250px;
    }
}

/* ============================================
   Orari Intelligenti - Status & Dropdown
   ============================================ */

.hours-status {
    margin-bottom: 15px;
}

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator.open {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.status-indicator.closed {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.status-indicator.open .status-dot {
    background: #22c55e;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}

.status-indicator.closed .status-dot {
    background: #ef4444;
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.6);
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.hours-dropdown {
    margin-top: 10px;
}

.hours-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(40, 40, 40, 0.6);
    border: 2px solid rgba(142, 120, 97, 0.4);
    color: #c5c5c5;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hours-toggle:hover {
    background: rgba(50, 50, 50, 0.8);
    border-color: #8e7861;
}

.current-day {
    font-weight: 500;
    color: #e5e5e5;
}

.toggle-icon {
    width: 20px;
    height: 20px;
    color: #8e7861;
    transition: transform 0.3s ease;
}

.hours-list {
    margin-top: 8px;
    padding: 8px;
    background: rgba(30, 30, 30, 0.8);
    border: 2px solid rgba(142, 120, 97, 0.3);
}

.hours-day {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-bottom: 1px solid rgba(142, 120, 97, 0.2);
    transition: background 0.2s ease;
}

.hours-day:last-child {
    border-bottom: none;
}

.hours-day:hover {
    background: rgba(50, 50, 50, 0.5);
}

.hours-day.today {
    background: rgba(142, 120, 97, 0.15);
    border-left: 3px solid #8e7861;
    padding-left: 9px;
}

.day-name {
    color: #b5b5b5;
    font-weight: 500;
    font-size: 13px;
    text-transform: capitalize;
}

.hours-day.today .day-name {
    color: #e5e5e5;
    font-weight: 600;
}

.day-hours {
    color: #b5b5b5;
    font-size: 13px;
}

.hours-day.today .day-hours {
    color: #8e7861;
    font-weight: 500;
}

/* ============================================
   Dark Theme - Additional Enhancements
   ============================================ */

/* Migliora la leggibilità del contenuto */
.azienda-content p,
.azienda-content li {
    color: #c5c5c5;
    line-height: 1.8;
}

.azienda-content h1,
.azienda-content h2,
.azienda-content h3,
.azienda-content h4 {
    color: #e5e5e5;
    border-bottom: 2px solid rgba(142, 120, 97, 0.3);
    padding-bottom: 8px;
    margin-top: 30px;
}

.azienda-content a {
    color: #a89178;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.azienda-content a:hover {
    color: #c4a788;
}

/* Stile per eventuali liste */
.azienda-content ul,
.azienda-content ol {
    padding-left: 24px;
    margin: 16px 0;
}

.azienda-content ul li::marker,
.azienda-content ol li::marker {
    color: #8e7861;
}

/* Stile per blockquote nel dark theme */
.azienda-content blockquote {
    border-left: 4px solid #8e7861;
    padding-left: 20px;
    margin: 20px 0;
    font-style: italic;
    color: #b5b5b5;
    background: rgba(142, 120, 97, 0.05);
    padding: 16px 20px;
    border-radius: 4px;
}

/* Tabelle nel dark theme */
.azienda-content table {
    border-collapse: collapse;
    width: 100%;
    margin: 20px 0;
}

.azienda-content table th {
    background: rgba(142, 120, 97, 0.2);
    color: #e5e5e5;
    padding: 12px;
    border: 1px solid rgba(142, 120, 97, 0.3);
    font-weight: 600;
}

.azienda-content table td {
    padding: 10px 12px;
    border: 1px solid rgba(142, 120, 97, 0.2);
    color: #c5c5c5;
}

.azienda-content table tr:hover {
    background: rgba(142, 120, 97, 0.08);
}

/* =====================================================
   FILTER BAR — Alfabetico
   ===================================================== */

.aziende-alpha-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.alpha-filter-btn {
    background: transparent;
    border: 1px solid rgba(142, 120, 97, 0.85);
    color: #b5b5b5;
    padding: 0.3rem 0.55rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.78rem;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.4;
    min-width: 2rem;
    text-align: center;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.alpha-filter-btn:hover {
    background: rgba(142, 120, 97, 0.15);
    border-color: #8e7861;
    color: #e5e5e5;
}

.alpha-filter-btn.active {
    background: rgba(142, 120, 97, 0.25);
    border-color: #8e7861;
    color: #e5e5e5;
}

/* "Tutte" più larga delle lettere singole */
.alpha-filter-btn[data-lettera=""] {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
}

/* =====================================================
   FILTER BAR — Settori
   ===================================================== */

.aziende-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.settore-filter-btn {
    background: transparent;
    border: 1px solid #8e7861;
    color: #e5e5e5;
    padding: 0.4rem 1.1rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: 0.82rem;
    font-family: inherit;
    line-height: 1.4;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.settore-filter-btn:hover,
.settore-filter-btn.active {
    background: #8e7861;
    color: #0a0a0a;
    border-color: #8e7861;
}

/* =====================================================
   LOADING OVERLAY (trasparente sul grid)
   ===================================================== */

.aziende-grid-wrapper {
    position: relative;
    min-height: 4rem;
}

#aziende-loading-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    z-index: 10;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

#aziende-loading-overlay.is-loading {
    display: flex;
}

.loading-spinner {
    width: 2.4rem;
    height: 2.4rem;
    border: 3px solid rgba(142, 120, 97, 0.25);
    border-top-color: #8e7861;
    border-radius: 50%;
    animation: az-spin 0.75s linear infinite;
}

@keyframes az-spin {
    to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
    .status-dot,
    .loading-spinner {
        animation: none;
    }
}

/* =====================================================
   BADGE SETTORE sulle card
   ===================================================== */

.azienda-settori {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-top: 0.6rem;
}

.settore-badge {
    background: rgba(142, 120, 97, 0.12);
    border: 1px solid rgba(142, 120, 97, 0.35);
    color: #a89178;
    font-size: 0.7rem;
    padding: 0.15rem 0.55rem;
    border-radius: 1rem;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

/* ============================================
   Google Maps InfoWindow — X come colonna laterale
   ============================================ */

/* La "chrome bar" (riga separata con solo il pulsante X) diventa assoluta:
   non occupa più spazio verticale ma si sovrappone in alto a destra */
.gm-style .gm-style-iw-chr {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    z-index: 2;
    line-height: 0;
    padding: 0 !important;
    margin: 0 !important;
}

/* Il content div guadagna lo spazio verticale recuperato;
   margine destro per non finire sotto il pulsante X */
.gm-style .gm-style-iw-d {
    margin-right: 26px !important;
    margin-top: 0 !important;
    padding-top: 12px !important;
}

/* Riduce il pulsante X del 20% e lo porta al bordo */
.gm-style .gm-ui-hover-effect {
    transform: scale(0.8) !important;
    transform-origin: top right !important;
    opacity: 0.65 !important;
    transition: opacity 0.2s !important;
    margin: 0 !important;
    padding: 2px !important;
}

.gm-style .gm-ui-hover-effect:hover {
    opacity: 1 !important;
}

/* ============================================================
   FORM CONTATTO "ENTRA NELL'ELENCO AZIENDE"
   Usato nella pagina /entra-nellelenco-delle-aziende/
   con Contact Form 7 e shortcode [aziende_contact_form]
   ============================================================ */

.az-entry-form-wrap {
    max-width: 680px;
    margin: 60px auto;
    padding: 0 20px;
    color: #e5e5e5;
}

.az-entry-form-wrap h1,
.az-entry-form-wrap .page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #e5e5e5;
    margin-bottom: 10px;
}

.az-entry-form-wrap .az-entry-intro {
    color: #aaa;
    font-size: 0.95rem;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Sezioni del form */
.az-entry-form-wrap .az-form-section {
    margin-bottom: 32px;
}

.az-entry-form-wrap .az-form-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8e7861;
    margin-bottom: 18px;
    padding-bottom: 6px;
    border-bottom: 1px solid #2a2a2a;
}

/* Labels */
.az-entry-form-wrap label,
.az-entry-form-wrap .wpcf7-form-control-wrap + label {
    display: block;
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 4px;
    margin-top: 16px;
}

.az-entry-form-wrap label:first-child,
.az-entry-form-wrap .az-form-section label:first-of-type {
    margin-top: 0;
}

/* Campi testo / email / tel */
.az-entry-form-wrap input[type="text"],
.az-entry-form-wrap input[type="email"],
.az-entry-form-wrap input[type="tel"],
.az-entry-form-wrap select,
.az-entry-form-wrap textarea {
    width: 100%;
    background: #111;
    border: 1px solid #2e2e2e;
    border-bottom-color: #8e7861;
    border-radius: 3px;
    color: #e5e5e5;
    font-size: 1rem;
    padding: 10px 12px;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
    appearance: none;
    -webkit-appearance: none;
}

.az-entry-form-wrap input[type="text"]:focus,
.az-entry-form-wrap input[type="email"]:focus,
.az-entry-form-wrap input[type="tel"]:focus,
.az-entry-form-wrap select:focus,
.az-entry-form-wrap textarea:focus {
    outline: 2px solid #c4a788;
    outline-offset: 2px;
    border-color: #8e7861;
    background: #161616;
}

.az-entry-form-wrap input::placeholder,
.az-entry-form-wrap textarea::placeholder {
    color: #555;
}

/* Select — freccia custom */
.az-entry-form-wrap .az-select-wrap {
    position: relative;
}

.az-entry-form-wrap .az-select-wrap::after {
    content: '▾';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #8e7861;
    pointer-events: none;
    font-size: 0.85rem;
}

.az-entry-form-wrap select {
    cursor: pointer;
}

.az-entry-form-wrap select option {
    background: #1a1a1a;
    color: #e5e5e5;
}

/* Riga a 2 colonne (fabbricato + scala/piano) */
.az-entry-form-wrap .az-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .az-entry-form-wrap .az-form-row {
        grid-template-columns: 1fr;
    }
}

/* Textarea */
.az-entry-form-wrap textarea {
    resize: vertical;
    min-height: 100px;
}

/* Checkbox privacy */
.az-entry-form-wrap .az-form-privacy {
    margin-top: 28px;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.5;
}

.az-entry-form-wrap .az-form-privacy input[type="checkbox"] {
    width: auto;
    margin-right: 8px;
    accent-color: #8e7861;
    cursor: pointer;
}

.az-entry-form-wrap .az-form-privacy a {
    color: #8e7861;
    text-decoration: underline;
}

/* Pulsante submit */
.az-entry-form-wrap input[type="submit"],
.az-entry-form-wrap .wpcf7-submit {
    display: inline-block;
    margin-top: 28px;
    background: transparent;
    border: 2px solid #8e7861;
    color: #8e7861;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 12px 36px;
    cursor: pointer;
    border-radius: 3px;
    transition: background 0.2s, color 0.2s;
    width: auto;
}

.az-entry-form-wrap input[type="submit"]:hover,
.az-entry-form-wrap .wpcf7-submit:hover {
    background: #8e7861;
    color: #0a0a0a;
}

/* Messaggi CF7 */
.az-entry-form-wrap .wpcf7-response-output {
    margin-top: 20px;
    padding: 12px 16px;
    border-radius: 3px;
    font-size: 0.9rem;
    border: none;
}

.az-entry-form-wrap .wpcf7-mail-sent-ok {
    background: #0d2b1a;
    color: #6fcf97;
    border-left: 3px solid #6fcf97;
}

.az-entry-form-wrap .wpcf7-validation-errors,
.az-entry-form-wrap .wpcf7-spam-blocked {
    background: #2b0d0d;
    color: #eb5757;
    border-left: 3px solid #eb5757;
}

/* Errori campo */
.az-entry-form-wrap .wpcf7-not-valid-tip {
    color: #eb5757;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

/* =====================================================
   WCAG 2.2 AA — Focus visibile (2.4.7)
   Outline su tutti gli elementi interattivi del plugin
   ===================================================== */

.alpha-filter-btn:focus-visible,
.settore-filter-btn:focus-visible,
.hours-toggle:focus-visible,
.filter-btn:focus-visible,
.aziende-search-form button[type="submit"]:focus-visible,
.aziende-search-form button[type="button"]:focus-visible,
.az-entry-form-wrap input[type="submit"]:focus-visible,
.az-entry-form-wrap .wpcf7-submit:focus-visible {
    outline: 2px solid #c4a788;
    outline-offset: 2px;
}

/* Screen reader only — live region AJAX */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
