/**
 * Main Stylesheet - Roma Dinners Theme
 * Design basato su _export/Schermate
 * 
 * @package RomaDinners
 */

/* Font Personalizzato */
@font-face {
    font-family: 'MillionDesign';
    src: url('../fonts/MillionDesign.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Variables CSS - Colori dal design originale
   NOTA: Questi valori vengono sovrascritti dal Customizer tramite wp_head */
:root {
    --roma-dinners-primary: #d4362b; /* Colore primario */
    --roma-dinners-secondary: #799b83; /* Colore secondario */
    --roma-dinners-accent: #f2b53b; /* Colore accento */
    --roma-dinners-yellow: #f2b53b;
    --roma-dinners-dark-green: #799b83;
    --roma-dinners-red-orange: #d4362b;
    --roma-dinners-white: #FFFFFF;
    --roma-dinners-light-gray: #F5F5F5;
    --roma-dinners-dark-gray: #333333;
    --roma-dinners-black: #000000;
}

/* Reset e Base */
* {
    box-sizing: border-box;
}

body {
    color: var(--roma-dinners-dark-gray);
    line-height: 1.6;
}

/* Container Max Width - Rimossi override, usando valori standard di Bootstrap */

/* Font standard di default - può essere sovrascritto dal Customizer */
/* Il font viene applicato dinamicamente tramite roma_dinners_customizer_css() */

body.menu-open,
body.modal-open {
    overflow: hidden;
    height: 100vh;
}

/* Header - Design originale */
.site-header {
    background-color: var(--roma-dinners-white);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.site-header .navbar {
    padding: 0;
}

.site-header .container.header-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.site-branding-left {
    justify-self: start;
}

.site-branding-center {
    justify-self: center;
    display: flex;
    justify-content: center;
}

.site-branding-right {
    justify-self: end;
}

/* Menu Hamburger */
.hamburger-menu-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger-line {
    width: 30px;
    height: 4px;
    background-color: var(--roma-dinners-accent);
    transition: all 0.3s;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

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

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

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

/* Menu Side Panel */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.menu-overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
}

.menu-overlay.active .menu-overlay-backdrop {
    opacity: 1;
}

.menu-overlay-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    max-width: 85vw;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.2);
    transform: translateX(-100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    z-index: 10000;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .menu-overlay-content {
        width: 320px;
        max-width: 90vw;
    }
}

.menu-overlay.active .menu-overlay-content {
    transform: translateX(0);
}

.menu-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e0e0e0;
    background-color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.menu-overlay-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #333333;
}

.menu-close-btn {
    background: none;
    border: none;
    color: #666666;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s, transform 0.3s;
    padding: 0;
    line-height: 1;
}

.menu-close-btn:hover {
    color: #000000;
    transform: rotate(90deg);
}

.menu-overlay-nav {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
}

.menu-overlay-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-overlay-list > .menu-item {
    margin-bottom: 0;
    border-bottom: 1px solid #f0f0f0;
}

.menu-overlay-list > .menu-item:last-child {
    border-bottom: none;
}

.menu-overlay-list .menu-link {
    color: #333333;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    display: block;
    padding: 1.25rem 2rem;
    transition: background-color 0.2s, color 0.2s;
    position: relative;
}

.menu-overlay-list .menu-link:hover {
    background-color: #f5f5f5;
    color: var(--roma-dinners-primary);
}

.menu-item.has-children .menu-link::after {
    content: '▼';
    position: absolute;
    right: 2rem;
    font-size: 0.8rem;
    transition: transform 0.3s;
    color: #999999;
}

.menu-item.has-children.active .menu-link::after {
    transform: rotate(180deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #f9f9f9;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.menu-item.has-children.active .submenu {
    max-height: 500px;
}

.submenu-item {
    border-bottom: 1px solid #e8e8e8;
}

.submenu-item:last-child {
    border-bottom: none;
}

.submenu-link {
    color: #666666;
    text-decoration: none;
    font-size: 0.95rem;
    display: block;
    padding: 0.875rem 2rem 0.875rem 3rem;
    transition: background-color 0.2s, color 0.2s;
}

.submenu-link:hover {
    background-color: #f0f0f0;
    color: var(--roma-dinners-primary);
}
}

.menu-item.active .submenu {
    max-height: 500px;
    transition: max-height 0.5s ease-in;
}

.submenu-item {
    margin-bottom: 0.75rem;
}

.submenu-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.3rem;
    display: block;
    padding: 0.5rem 0;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    padding-left: 1rem;
}

.submenu-link:hover {
    color: var(--roma-dinners-yellow);
    border-left-color: var(--roma-dinners-yellow);
    transform: translateX(10px);
}

/* Logo Design */
.site-branding {
    display: flex;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-link-small {
    gap: 0;
}

.logo-link-extended {
    gap: 0;
    justify-content: center;
}

/* Logo Piccolo (Circolare) */
.logo-small {
    width: 60px;
    height: 60px;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-circle-default {
    width: 60px;
    height: 60px;
    background-color: var(--roma-dinners-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--roma-dinners-primary);
    
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.logo-circle-default::after {
    content: '';
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 15px;
    height: 15px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

/* Logo Esteso */
.logo-extended {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-text-default {
    display: flex;
    flex-direction: column;
    
    line-height: 1.2;
}

.logo-text-default .roma-text {
    font-size: 2rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--roma-dinners-dark-gray);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 2px;
}

.logo-text-default .roma-text .o-icon {
    color: var(--roma-dinners-accent);
    display: inline-block;
    font-size: 1.2em;
    vertical-align: middle;
    margin: 0 2px;
}

.logo-text-default .roma-text .o-icon svg {
    width: 1em;
    height: 1em;
    vertical-align: middle;
}

.logo-text-default .dinner-text {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--roma-dinners-secondary);
    margin-top: -0.3rem;
    
}

/* Hero Section - Ristoranti in evidenza */
.hero-section-ristoranti {
    width: 100%;
    margin-bottom: 0;
    background-color: var(--roma-dinners-white);
    position: relative;
    z-index: 1;
}

.hero-section-ristoranti .row.g-0 {
    margin: 0;
}

.hero-section-ristoranti .row.g-0 > * {
    padding: 0;
}

.hero-ristorante-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.hero-ristorante-card {
    position: relative;
    height: 400px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

.hero-ristorante-card:hover {
    transform: translateY(-5px);
}

.hero-ristorante-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-ristorante-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-ristorante-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-ristorante-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    color: white;
    text-align: center;
    z-index: 2;
    transition: all 0.3s;
}

.hero-ristorante-card:hover .hero-ristorante-content {
    transform: translate(-50%, -52%);
}

.hero-ristorante-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-ristorante-meta {
    font-size: 0.9rem;
    opacity: 0.95;
    margin-bottom: 0;
    color: white;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

/* Main Content Section - Red-Orange Background */
.main-content-section {
    background-color: var(--roma-dinners-primary);
    padding: 2rem 0 0 0;
    color: white;
    border-radius: 100px 100px 0 0;
    margin-top: -100px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -8px 20px 2px rgba(0, 0, 0, 1);
}

.main-content-section .container {
    padding-bottom: 2rem;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 576px) {
    .main-content-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Search Bar - Design originale */
.search-bar-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

/* Versione Desktop - sempre visibile di default */
.search-bar-desktop {
    display: flex;
}

/* Versione Mobile - nascosta di default */
.search-bar-mobile {
    display: none;
}

.search-input {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 25px;
    background-color: white;
    font-size: 1rem;
    color: var(--roma-dinners-dark-gray);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 1), 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.btn-cerca {
    background-color: white;
    color: var(--roma-dinners-red-orange);
    border: none;
    padding: 1rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.2s;
}

.btn-cerca:hover {
    transform: scale(1.05);
}

/* Filters Container */
.filters-container {
    margin-bottom: 0;
    padding: 0;
}

/* Search Bar Container - nella sezione rossa */
.search-bar-container {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.search-input-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 600px;
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.filters-inline-form {
    margin-bottom: 1rem;
}

.filters-inline-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 4px; /* Spazio per il box-shadow dei bottoni */
    padding-right: 4px; /* Spazio per il box-shadow dei bottoni */
    overflow: visible; /* Permette al box-shadow di essere visibile */
}

.filters-single-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    -ms-overflow-style: none;
    padding-bottom: 4px; /* Spazio per il box-shadow dei bottoni */
    padding-right: 4px; /* Spazio per il box-shadow dei bottoni */
    overflow-y: visible; /* Permette al box-shadow di essere visibile verticalmente */
}

.filters-single-row::-webkit-scrollbar {
    height: 4px;
}

.filters-single-row::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

.filters-row-2 {
    margin-top: 0;
    margin-bottom: 0;
}

/* Filter Buttons - Yellow Rounded (Inline) */
.filter-buttons-inline {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
    overflow-x: auto;
    overflow-y: visible; /* Permette al box-shadow di essere visibile */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px; /* Spazio per il box-shadow dei bottoni */
    padding-right: 4px; /* Spazio per il box-shadow dei bottoni */
}

.filter-buttons-inline::-webkit-scrollbar {
    display: none;
}

.filter-btn-yellow,
.tag-filter-btn-white {
    background-color: #f2b53b !important;
    color: #000000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 2px 1px 2px black;
}

/* Assicura che gli span dentro i bottoni filtro ereditino il font-weight del bottone */
.filter-btn-yellow span,
.filter-btn-yellow .filter-label,
.filter-btn-yellow .filter-value,
.filter-btn-yellow .filter-arrow,
.filter-btn-other span,
.filter-btn-other .filter-label,
.tag-filter-btn-white span {
    font-weight: inherit !important;
}

.filter-btn-yellow:hover,
.tag-filter-btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: #e8a82a;
}

.filter-btn-yellow.active,
.tag-filter-btn-white.active {
    background-color: var(--roma-dinners-dark-green);
    color: white;
}

/* Filter Button Other - Stesso stile dei bottoni gialli */
.filter-btn-other {
    background-color: #f2b53b !important;
    color: #000000;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 2px 1px 2px black;
}

.filter-btn-other:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    background-color: #e8a82a;
}

.filter-btn-other.active {
    background-color: var(--roma-dinners-dark-green);
    color: white;
}

.filter-select-hidden {
    display: none !important;
}

/* Filter Dropdown Wrapper */
.filter-dropdown-wrapper {
    position: relative;
    display: inline-block;
    z-index: 10001 !important;
}

/* Assicura che i container non nascondano i dropdown */
.filters-container,
.filters-inline-form,
.filters-inline-row,
.main-content-section {
    overflow: visible !important;
}

.main-content-section .container {
    overflow: visible !important;
}

/* Filter Dropdown Menu */
.filter-dropdown-menu {
    position: fixed !important;
    background: white !important;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
    z-index: 99999 !important;
    min-width: 280px;
    max-width: 400px;
    max-height: 400px;
    overflow: hidden;
    display: none !important;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s, transform 0.3s;
    visibility: hidden;
    pointer-events: none;
}

.filter-dropdown-menu.active {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.filter-dropdown-large {
    min-width: 350px;
    max-width: 500px;
}

.filter-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
}

.filter-dropdown-header span {
    font-weight: bold;
    color: var(--roma-dinners-dark-gray);
    font-size: 0.95rem;
}

.filter-dropdown-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--roma-dinners-dark-gray);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.filter-dropdown-close:hover {
    background-color: #e0e0e0;
}

.filter-dropdown-content {
    padding: 0.5rem;
    max-height: 320px;
    overflow-y: auto;
}

.filter-dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.filter-dropdown-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.filter-dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Filter Options */
.filter-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
    background: white;
    border: none;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    color: var(--roma-dinners-dark-gray);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.filter-option:hover {
    background-color: #f8f9fa;
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}

.filter-option.active {
    background-color: var(--roma-dinners-accent);
    color: white;
    font-weight: bold;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}

.filter-options-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-options-grid .filter-option {
    text-align: center;
    margin-bottom: 0;
    flex: 0 0 auto;
    min-width: 60px;
    padding: 0.5rem 1rem;
}

/* Filter Group */
.filter-group {
    margin-bottom: 1.5rem;
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group-label {
    display: block;
    font-weight: bold;
    color: var(--roma-dinners-dark-gray);
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Filter Button with Value */
.filter-btn-yellow .filter-value,
.tag-filter-btn-white .filter-value {
    display: none;
    margin-left: 0.5rem;
    font-weight: inherit;
    font-size: 0.85rem;
    opacity: 0.9;
}

.filter-btn-yellow.active .filter-value,
.tag-filter-btn-white.active .filter-value {
    display: inline;
}

.filter-arrow {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.3s;
}

.filter-dropdown-wrapper.active .filter-arrow {
    transform: rotate(180deg);
}

/* Search Input Wrapper */
.search-input-wrapper {
    position: relative;
}

.search-input {
    border-radius: 25px;
    padding: 0.875rem 1.5rem;
    border: none;
    background-color: white;
    flex: 1;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
    color: var(--roma-dinners-dark-gray);
}

.search-input:focus {
    outline: none;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 1), 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-input::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.btn-cerca {
    background-color: white;
    color: #000000;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
}

.btn-cerca:hover {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 1);
}

.btn-cerca:active {
    transform: translate(3px, 3px);
    box-shadow: 0 0 0 rgba(0, 0, 0, 1);
}

/* Loading Indicator */
.filters-loading {
    text-align: center;
    padding: 2rem;
}

.filters-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3rem;
}

/* Tag Filters Inline */
.tag-filters-inline {
    display: flex;
    gap: 0.75rem;
    flex-wrap: nowrap;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

/* tag-filter-btn-white ora usa gli stessi stili di filter-btn-yellow (definito sopra) */

/* Map Toggle Inline */
.map-toggle-inline {
    margin-left: auto;
    flex-shrink: 0;
}

.map-toggle-btn {
    background-color: var(--roma-dinners-dark-green);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 140px;
    justify-content: space-between;
}

.map-toggle-btn:not(.active) {
    background-color: #ccc;
}

.map-toggle-label {
    font-size: 0.85rem;
    flex-shrink: 0;
    order: 1;
}

.map-toggle-switch {
    width: 50px;
    height: 25px;
    background-color: rgba(255,255,255,0.3);
    border-radius: 25px;
    position: relative;
    transition: background-color 0.3s;
    flex-shrink: 0;
    order: 2;
}

.map-toggle-btn.active .map-toggle-switch {
    background-color: rgba(255,255,255,0.5);
}

.map-toggle-slider {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 2.5px;
    right: 2.5px;
    transition: transform 0.3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.map-toggle-btn:not(.active) .map-toggle-slider {
    transform: translateX(-25px);
}

.map-toggle-status {
    font-size: 0.85rem;
    min-width: 35px;
    text-align: right;
    flex-shrink: 0;
    order: 3;
    font-weight: bold;
}

/* Promotional Buttons */
.promo-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.promo-btn {
    background-color: white;
    color: var(--roma-dinners-dark-gray);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.3s;
}

.promo-btn:hover {
    transform: translateY(-2px);
}

/* Mappa */
.mappa-wrapper {
    box-shadow: 8px -3px 15px black;
    border-radius: 12px;
    padding: 15px;
    background: transparent;
}

#mappa_ristoranti {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--roma-dinners-light-gray);
    position: relative;
    z-index: 1;
}

.map-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    z-index: 10;
    cursor: pointer;
}

/* Content Grid - 2x3 Grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.content-grid-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.content-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-grid-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 1.5rem;
    color: white;
}

.content-grid-overlay .initial {
    font-size: 3rem;
    font-weight: bold;
    
    display: inline-block;
    margin-right: 0.5rem;
}

.content-grid-overlay .text {
    font-size: 1.2rem;
    font-style: italic;
    
    display: inline-block;
}

/* Cards Ristoranti */
.card {
    border: none;
    border-radius: 12px;
    overflow: visible;
    transition: transform 0.3s, box-shadow 0.3s;
    background-color: white;
    box-shadow: 8px -3px 15px black;
}

/* Assicura che le immagini dentro le card mantengano overflow hidden */
.card-img-top {
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* Rimuove shadow-sm di Bootstrap per le card */
.card.shadow-sm {
    box-shadow: 8px -3px 15px black !important;
}

.shadow-sm {
    box-shadow: none !important;
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    color: var(--roma-dinners-dark-gray);
}

/* Badge e Tag */
.badge {
    font-weight: normal;
    padding: 0.35em 0.65em;
    border-radius: 20px;
}

.tag-link {
    color: white;
    border-radius: 13px 0px 8px;
    box-shadow: 1px 1px 1px white;
    text-decoration: none;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Voto e Costo */
.voto {
    color: var(--roma-dinners-yellow);
    font-size: 1.3em;
    letter-spacing: 2px;
}

.costo {
    color: var(--roma-dinners-dark-green);
    font-size: 1.3em;
    letter-spacing: 2px;
}

/* Footer - Design originale a due sezioni */
.site-footer {
    margin-top: 0;
    padding: 0;
}

.footer-top {
    background-color: var(--roma-dinners-primary);
    padding: 2rem 0;
    color: white;
}

.footer-top .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-contact-btn {
    background-color: white;
    color: #000000;
    border: 2px solid #000000;
    padding: 0.875rem 1.5rem;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-contact-btn .contact-icon {
    width: 24px;
    height: 24px;
    background-color: #799b83;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.footer-contact-btn .contact-icon::before {
    content: '';
    width: 3px;
    height: 3px;
    background-color: white;
    border-radius: 50%;
    box-shadow: -5px 0 0 white, 5px 0 0 white;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.footer-contact-btn:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.footer-social-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #e8b654;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.footer-social-icon:hover {
    background-color: #d4a045;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.footer-bottom {
    background-color: var(--roma-dinners-dark-green);
    background-image: repeating-radial-gradient(circle at 0 0, transparent 0, var(--roma-dinners-dark-green) 10px), repeating-linear-gradient(45deg, var(--roma-dinners-dark-green), var(--roma-dinners-dark-green) 10px, rgba(255,255,255,0.05) 10px, rgba(255,255,255,0.05) 20px);
    padding: 2rem 0;
    color: white;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom-text {
    font-size: 0.9rem;
    line-height: 1.8;
}

.footer-bottom-logo {
    width: 80px;
    height: 80px;
    background-color: var(--roma-dinners-red-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--roma-dinners-yellow);
    
    font-size: 2.5rem;
    font-weight: bold;
    overflow: hidden;
}

.footer-logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

/* Buttons Primary */
.btn-primary {
    background-color: var(--roma-dinners-red-orange);
    border-color: var(--roma-dinners-red-orange);
    color: white;
    border-radius: 25px;
    padding: 0.75rem 1.5rem;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    background-color: var(--roma-dinners-red-orange);
    border-color: var(--roma-dinners-red-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232, 90, 79, 0.4);
}

/* Responsive - Tablet e Mobile */
@media (max-width: 992px) {
    /* Header */
    .site-header .container.header-container {
        grid-template-columns: auto 1fr auto;
        gap: 0.5rem;
    }
    
    /* Logo: sottrai 10px dalle dimensioni desktop su mobile */
    .logo-small,
    .logo-circle-default {
        width: calc(var(--logo-small-width, 60px) - 10px) !important;
        height: calc(var(--logo-small-height, 60px) - 10px) !important;
    }
    
    .logo-small {
        max-width: calc(var(--logo-small-width, 60px) - 10px) !important;
        max-height: calc(var(--logo-small-height, 60px) - 10px) !important;
    }
    
    .logo-extended {
        height: calc(var(--logo-extended-height, 50px) - 10px) !important;
        max-height: calc(var(--logo-extended-height, 50px) - 10px) !important;
    }
    
    /* Se width non è auto, sottrai anche dalla larghezza */
    .logo-extended[style*="width"]:not([style*="auto"]) {
        width: calc(var(--logo-extended-width, 200px) - 10px) !important;
        max-width: calc(var(--logo-extended-width, 200px) - 10px) !important;
    }
    
    /* Hero Section - Tablet: 1 per riga come mobile, max 2 post */
    .hero-section-ristoranti .row {
        margin: 0;
    }
    
    .hero-section-ristoranti .col-md-3,
    .hero-section-ristoranti .col-12 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0;
        padding: 0;
    }
    
    /* Nascondi il 3° e 4° post su tablet */
    .hero-section-ristoranti .col-md-3:nth-child(n+3),
    .hero-section-ristoranti .col-12:nth-child(n+3) {
        display: none !important;
    }
    
    .hero-ristorante-card {
        border: none;
        height: 300px;
    }
    
    .hero-ristorante-content h3 {
        font-size: 1.5rem;
    }
    
    /* Main Content Section */
    .main-content-section {
        border-radius: 50px 50px 0 0;
        margin-top: -50px;
        padding: 1.5rem 0 0 0;
    }
    
    /* Search Bar */
    .search-bar-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-bar-container {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
    }
    
    .search-input-wrapper {
        flex: 1;
        min-width: 0;
        display: flex;
        gap: 0.5rem;
    }
    
    .search-input {
        min-width: 70%;
        flex: 1;
    }
    
    .btn-cerca {
        flex-shrink: 0;
    }
    
    .map-toggle-inline {
        flex-shrink: 0;
    }
    
    /* Filters */
    .filters-inline-row {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        padding-bottom: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .filters-inline-row::-webkit-scrollbar {
        height: 4px;
    }
    
    .filters-inline-row::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 2px;
    }
    
    .filter-buttons-inline {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
    }
    
    .filter-buttons-inline::-webkit-scrollbar {
        height: 4px;
    }
    
    .filter-buttons-inline::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.5);
        border-radius: 2px;
    }
    
    .filter-btn-yellow,
    .filter-btn-other {
        min-width: auto;
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        flex-shrink: 0;
    }
    
    .tag-filter-btn-white {
        flex-shrink: 0;
        min-width: auto;
    }
    
    .filter-dropdown-menu {
        max-width: calc(100vw - 2rem);
        min-width: 250px;
        left: 50% !important;
        transform: translateX(-50%) translateY(0) !important;
        right: auto !important;
    }
    
    .filter-dropdown-menu.active {
        transform: translateX(-50%) translateY(0) !important;
    }
    
    /* Blog Section */
    .blog-section {
        padding: 2rem 1.5rem;
    }
    
    .blog-section-title {
        font-size: 2rem;
    }
    
    /* Single Ristorante */
    .single-ristorante-header {
        height: 350px;
    }
    
    .single-ristorante-title {
        font-size: 2rem;
    }
    
    .single-ristorante-sidebar {
        position: static;
        margin-top: 2rem;
    }
}

/* Versione Mobile - Search Bar e Modal Filtri */
.search-bar-mobile {
    display: none;
}

@media (max-width: 768px) {
    /* Nascondi versione desktop, mostra mobile */
    .search-bar-desktop {
        display: none !important;
    }
    
    .search-bar-mobile {
        display: flex !important;
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1.5rem;
        padding: 0 0.75rem;
    }
    
    .filters-inline-form {
        display: none !important;
    }
    
    /* Search Bar Mobile */
    .search-input-wrapper-mobile {
        position: relative;
        display: flex;
        align-items: center;
        background-color: white;
        border-radius: 25px;
        padding: 0.75rem 1rem;
        box-shadow: 3px 3px 0 rgba(0, 0, 0, 1);
        gap: 0.75rem;
    }
    
    .search-icon-mobile {
        color: var(--roma-dinners-dark-gray);
        font-size: 1.1rem;
        flex-shrink: 0;
    }
    
    .search-input-mobile {
        flex: 1;
        border: none;
        background: transparent;
        font-size: 1rem;
        color: var(--roma-dinners-dark-gray);
        padding: 0;
        outline: none;
        
    }
    
    .search-input-mobile::placeholder {
        color: rgba(0, 0, 0, 0.5);
    }
    
    .filter-icon-btn-mobile {
        background: transparent;
        border: none;
        color: var(--roma-dinners-dark-gray);
        font-size: 1.2rem;
        cursor: pointer;
        padding: 0.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: transform 0.2s;
    }
    
    .filter-icon-btn-mobile:active {
        transform: scale(0.95);
    }
    
    .map-toggle-inline-mobile {
        width: 100%;
        display: flex;
        justify-content: center;
        padding: 0 0.75rem;
    }
    
    /* Modal Filtri Mobile */
    .filters-modal-mobile {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 999999;
        pointer-events: none;
    }
    
    .filters-modal-mobile.active {
        display: block;
        pointer-events: auto;
    }
    
    .filters-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .filters-modal-mobile.active .filters-modal-overlay {
        opacity: 1;
    }
    
    .filters-modal-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        background: white;
        border-radius: 30px 30px 0 0;
        max-height: 85vh;
        display: flex;
        flex-direction: column;
        transform: translateY(100%);
        transition: transform 0.3s ease;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
    }
    
    .filters-modal-mobile.active .filters-modal-content {
        transform: translateY(0);
    }
    
    .filters-modal-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1.5rem;
        border-bottom: 1px solid #e0e0e0;
        flex-shrink: 0;
    }
    
    .filters-modal-header h3 {
        margin: 0;
        font-size: 1.5rem;
        font-weight: bold;
        color: var(--roma-dinners-primary);
    }
    
    .filters-modal-close {
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--roma-dinners-dark-gray);
        cursor: pointer;
        padding: 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: transform 0.2s;
    }
    
    .filters-modal-close:active {
        transform: scale(0.9);
    }
    
    .filters-modal-body {
        flex: 1;
        overflow-y: auto;
        padding: 1.5rem;
        -webkit-overflow-scrolling: touch;
    }
    
    .filter-group-mobile {
        margin-bottom: 2rem;
    }
    
    .filter-group-mobile:last-child {
        margin-bottom: 0;
    }
    
    .filter-group-label-mobile {
        display: block;
        font-weight: bold;
        font-size: 1rem;
        color: var(--roma-dinners-dark-gray);
        margin-bottom: 0.75rem;
        text-transform: uppercase;
    }
    
    .filter-options-mobile {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .filter-option-mobile {
        background: var(--roma-dinners-accent, #f2b53b);
        color: #000000;
        border: none;
        padding: 0.75rem 1.25rem;
        border-radius: 25px;
        font-weight: bold;
        cursor: pointer;
        transition: all 0.2s;
        text-transform: uppercase;
        font-size: 0.9rem;
        white-space: nowrap;
        
    }
    
    .filter-option-mobile:hover {
        background: #e8a82a;
        transform: translateY(-2px);
    }
    
    .filter-option-mobile.active {
        background: var(--roma-dinners-primary);
        color: white;
    }
    
    .tag-option-mobile {
        background: white;
        color: #000000;
        border: 2px solid #000000;
    }
    
    .tag-option-mobile.active {
        background: #000000;
        color: white;
    }
    
    .filters-modal-footer {
        display: flex;
        gap: 1rem;
        padding: 1.5rem;
        border-top: 1px solid #e0e0e0;
        flex-shrink: 0;
    }
    
    .btn-apply-filters-mobile,
    .btn-reset-filters-mobile {
        flex: 1;
        padding: 1rem;
        border: none;
        border-radius: 25px;
        font-weight: bold;
        font-size: 1rem;
        cursor: pointer;
        transition: all 0.2s;
        text-transform: uppercase;
        
    }
    
    .btn-apply-filters-mobile {
        background: var(--roma-dinners-primary);
        color: white;
    }
    
    .btn-apply-filters-mobile:active {
        transform: scale(0.98);
        background: #b82e25;
    }
    
    .btn-reset-filters-mobile {
        background: #e0e0e0;
        color: var(--roma-dinners-dark-gray);
    }
    
    .btn-reset-filters-mobile:active {
        transform: scale(0.98);
        background: #d0d0d0;
    }
}

/* Responsive - Filters Desktop */
@media (min-width: 769px) {
    .search-bar-mobile {
        display: none !important;
    }
    
    .search-bar-desktop {
        display: flex !important;
    }
    
    .filters-inline-form {
        display: block !important;
    }
    
    .filters-modal-mobile {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Header */
    .site-header {
        padding: 0.75rem 0;
    }
    
    .site-header .container.header-container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .site-branding-left {
        justify-self: start;
        margin-left: 0;
    }
    
    .site-branding-center {
        justify-self: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        justify-content: center;
        width: auto;
    }
    
    .site-branding-right {
        justify-self: end;
        margin-right: 0;
    }
    
    .logo-text-default .roma-text {
        font-size: 1.5rem;
    }
    
    .logo-text-default .dinner-text {
        font-size: 1rem;
    }
    
    .logo-extended {
        height: 35px;
    }
    
    .logo-small,
    .logo-circle-default {
        width: 40px;
        height: 40px;
        font-size: 1.3rem;
    }
    
    /* Hero Section - Mobile: mostra solo 2 post */
    .hero-section-ristoranti .row {
        margin: 0;
    }
    
    .hero-section-ristoranti .col-md-3,
    .hero-section-ristoranti .col-12 {
        margin-bottom: 0;
    }
    
    /* Nascondi il 3° e 4° post su mobile */
    .hero-section-ristoranti .col-md-3:nth-child(n+3),
    .hero-section-ristoranti .col-12:nth-child(n+3) {
        display: none !important;
    }
    
    .hero-ristorante-card {
        height: 250px;
    }
    
    .hero-ristorante-content h3 {
        font-size: 1.3rem;
    }
    
    .hero-ristorante-meta {
        font-size: 0.8rem;
    }
    
    /* Main Content Section */
    .main-content-section {
        border-radius: 30px 30px 0 0;
        margin-top: -30px;
        padding: 1.5rem 0 0 0;
    }
    
    .main-content-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Search Bar */
    .search-bar-container {
        padding: 0 0.75rem;
    }
    
    .search-input-wrapper {
        flex: 1;
        min-width: 0;
    }
    
    .search-input {
        min-width: 70%;
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .btn-cerca {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    .filters-container {
        padding: 0 0.75rem;
    }
    
    /* Filters */
    .filters-inline-row {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .filter-buttons-inline {
        gap: 0.5rem;
    }
    
    .filter-btn-yellow,
    .filter-btn-other {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
        min-height: 44px; /* Touch target size */
        flex-shrink: 0;
    }
    
    .tag-filter-btn-white {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
        min-height: 44px; /* Touch target size */
        flex-shrink: 0;
    }
    
    .filter-dropdown-menu {
        max-width: calc(100vw - 1rem) !important;
        min-width: 200px !important;
        max-height: 60vh !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(0) !important;
        right: auto !important;
        top: auto !important;
        z-index: 99999 !important;
    }
    
    .filter-dropdown-menu.active {
        display: block !important;
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .filter-dropdown-content {
        max-height: 50vh;
    }
    
    .filter-option {
        padding: 1rem;
        min-height: 44px; /* Touch target size */
        font-size: 0.9rem;
    }
    
    /* Mappa */
    #mappa_ristoranti {
        height: 400px !important;
        border-radius: 8px;
    }
    
    /* Cards */
    .card-img-top {
        height: 200px;
    }
    
    /* Blog Section */
    .blog-section {
        padding: 1.5rem 1rem;
        margin-top: 2rem;
    }
    
    .blog-section-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    /* Single Ristorante */
    .single-ristorante-header {
        height: 300px;
    }
    
    .single-ristorante-title {
        font-size: 1.75rem;
    }
    
    .single-ristorante-content {
        padding: 1.5rem;
    }
    
    .ristorante-info-card {
        padding: 1.5rem;
    }
    
    .mini-map-container {
        height: 200px;
    }
    
    /* Footer */
    .footer-top .container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .footer-contact-btn {
        width: 100%;
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    /* Header */
    .site-header {
        padding: 0.5rem 0;
    }
    
    .logo-text-default .roma-text {
        font-size: 1.25rem;
    }
    
    .logo-text-default .dinner-text {
        font-size: 0.875rem;
    }
    
    /* Logo: sottrai 10px dalle dimensioni desktop su mobile */
    .logo-small,
    .logo-circle-default {
        width: calc(var(--logo-small-width, 60px) - 10px) !important;
        height: calc(var(--logo-small-height, 60px) - 10px) !important;
    }
    
    .logo-small {
        max-width: calc(var(--logo-small-width, 60px) - 10px) !important;
        max-height: calc(var(--logo-small-height, 60px) - 10px) !important;
    }
    
    .logo-extended {
        height: calc(var(--logo-extended-height, 50px) - 10px) !important;
        max-height: calc(var(--logo-extended-height, 50px) - 10px) !important;
    }
    
    /* Se width non è auto, sottrai anche dalla larghezza */
    .logo-extended[style*="width"]:not([style*="auto"]) {
        width: calc(var(--logo-extended-width, 200px) - 10px) !important;
        max-width: calc(var(--logo-extended-width, 200px) - 10px) !important;
    }
    
    .hamburger-line {
        width: 25px;
        height: 3px;
    }
    
    /* Hero Section */
    .hero-ristorante-card {
        height: 200px;
    }
    
    .hero-ristorante-content h3 {
        font-size: 1.1rem;
    }
    
    .hero-ristorante-meta {
        font-size: 0.75rem;
    }
    
    /* Main Content Section */
    .main-content-section {
        border-radius: 20px 20px 0 0;
        margin-top: -20px;
        padding: 1rem 0 0 0;
    }
    
    .main-content-section .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Search Bar */
    .search-bar-container {
        padding: 0 0.75rem;
    }
    
    .filters-container {
        padding: 0 0.75rem;
    }
    
    /* Search Bar */
    .search-input-wrapper {
        flex: 1;
        min-width: 0;
    }
    
    .search-input {
        min-width: 70%;
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .btn-cerca {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        flex-shrink: 0;
    }
    
    /* Filters */
    .filters-container {
        padding: 0;
    }
    
    .filters-inline-form {
        margin-bottom: 0.75rem;
    }
    
    .filters-inline-row {
        gap: 0.5rem;
        margin-bottom: 0.75rem;
    }
    
    .filter-buttons-inline {
        gap: 0.5rem;
    }
    
    .filter-btn-yellow,
    .filter-btn-other {
        padding: 0.75rem 0.875rem;
        font-size: 0.75rem;
        min-height: 44px; /* Touch target size */
        flex-shrink: 0;
    }
    
    .tag-filter-btn-white {
        padding: 0.75rem 0.875rem;
        font-size: 0.75rem;
        min-height: 44px; /* Touch target size */
        flex-shrink: 0;
    }
    
    .filter-dropdown-menu {
        max-width: calc(100vw - 0.5rem) !important;
        min-width: 180px !important;
        max-height: 70vh !important;
        left: 50% !important;
        transform: translateX(-50%) translateY(0) !important;
        right: auto !important;
        top: auto !important;
        z-index: 99999 !important;
    }
    
    .filter-dropdown-menu.active {
        display: block !important;
        opacity: 1 !important;
        transform: translateX(-50%) translateY(0) !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }
    
    .filter-dropdown-content {
        max-height: 60vh;
        padding: 0.5rem;
    }
    
    .filter-option {
        padding: 1rem 0.875rem;
        min-height: 48px; /* Touch target size */
        font-size: 0.875rem;
        margin-bottom: 0.5rem;
    }
    
    .filter-dropdown-header {
        padding: 0.875rem;
    }
    
    .filter-dropdown-close {
        width: 36px;
        height: 36px;
        font-size: 1.25rem;
    }
    
    .map-toggle-label {
        font-size: 0.75rem;
    }
    
    .map-toggle-status {
        font-size: 0.75rem;
        min-width: 30px;
    }
    
    /* Mappa */
    #mappa_ristoranti {
        height: 300px !important;
    }
    
    /* Cards */
    .card-img-top {
        height: 180px;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    .card-text {
        font-size: 0.9rem;
    }
    
    /* Blog Section */
    .blog-section {
        padding: 1rem 0.75rem;
        margin-top: 1.5rem;
    }
    
    .blog-section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .blog-card-title {
        font-size: 1.1rem;
    }
    
    .blog-card-excerpt {
        font-size: 0.875rem;
    }
    
    /* Single Ristorante */
    .single-ristorante-header {
        height: 250px;
    }
    
    .single-ristorante-title {
        font-size: 1.5rem;
    }
    
    .single-ristorante-location {
        font-size: 1rem;
    }
    
    .single-ristorante-content {
        padding: 1rem;
    }
    
    .ristorante-info-card {
        padding: 1rem;
    }
    
    .info-card-title {
        font-size: 1.25rem;
    }
    
    .mini-map-container {
        height: 180px;
    }
    
    /* Footer */
    .footer-top {
        padding: 1.5rem 0;
    }
    
    .footer-social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .footer-contact-btn {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .footer-bottom {
        padding: 1rem 0;
    }
    
    /* Hamburger Menu */
    .hamburger-menu-overlay {
        padding: 2rem 1rem;
    }
    
    .hamburger-menu-overlay .menu {
        font-size: 1.5rem;
    }
    
    .hamburger-menu-overlay .sub-menu {
        font-size: 1.25rem;
    }
}


/* View Container */
#view-container {
    background-color: transparent;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.view-content {
    display: none;
}

.view-content.active {
    display: block;
}

#mappa_ristoranti {
    border-radius: 12px;
    overflow: visible;
    box-shadow: 8px -3px 15px black;
}

/* Blog Cards */
.blog-section {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    margin-top: 3rem;
    box-shadow: 8px -3px 15px black;
}

.blog-section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: black;
    margin-bottom: 2rem;
    text-align: center;
    text-transform: uppercase;
    padding-bottom: 1rem;
    position: relative;
}

.blog-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background-color: #d4362a;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 2rem;
}

.blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.blog-card-image {
    overflow: hidden;
    height: 250px;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.1);
}

.blog-card-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    margin-bottom: 1rem;
}

.blog-card-date {
    font-size: 0.875rem;
    color: #666;
}

.blog-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
}

.blog-card-title a {
    color: var(--roma-dinners-dark-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.blog-card-title a:hover {
    color: var(--roma-dinners-red-orange);
}

.blog-card-excerpt {
    color: #666;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.blog-card-link {
    color: var(--roma-dinners-red-orange);
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
    display: inline-block;
}

.blog-card-link:hover {
    transform: translateX(5px);
    color: var(--roma-dinners-red-orange);
}

/* Single Ristorante */
.single-ristorante-container {
    background: white;
}

.single-ristorante-header {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.single-ristorante-featured-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-ristorante-header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 3rem 0;
}

.single-ristorante-header-no-image {
    background: var(--roma-dinners-red-orange);
    padding: 3rem 0;
    color: white;
}

.single-ristorante-title {
    font-size: 3rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
}

.single-ristorante-location {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-ristorante-content {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.single-ristorante-sidebar {
    position: sticky;
    top: 100px;
}

/* Mini Mappa nella Sidebar */
.ristorante-mini-map {
    margin-top: 2rem;
}

.ristorante-mini-map .info-card-title {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.mini-map-container {
    width: 100%;
    height: 250px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
}

.mini-map-address {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
    padding: 0.75rem;
    background: #f9f9f9;
    border-radius: 8px;
    text-align: center;
}

.ristorante-info-card {
    background: var(--roma-dinners-light-gray);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.info-card-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    color: var(--roma-dinners-dark-gray);
    border-bottom: 2px solid var(--roma-dinners-red-orange);
    padding-bottom: 0.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item-full {
    flex-direction: column;
}

.info-label {
    font-weight: bold;
    color: var(--roma-dinners-dark-gray);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    color: #666;
    font-size: 1.1rem;
}

.ristorante-tags {
    background: var(--roma-dinners-light-gray);
    padding: 1.5rem;
    border-radius: 12px;
}

.tags-section {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tags-title {
    font-weight: bold;
    margin-right: 0.5rem;
}

.tag-badge {
    background-color: var(--roma-dinners-red-orange);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    transition: transform 0.3s, background-color 0.3s;
}

.tag-badge:hover {
    background-color: var(--roma-dinners-dark-green);
    transform: translateY(-2px);
    color: white;
}

/* Google Maps InfoWindow Styles - Rimuove stili di default */
.gm-style .gm-style-iw-c {
    position: absolute;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    overflow: hidden;
    top: 0;
    left: 0;
    -webkit-transform: translate3d(-50%, -100%, 0);
    transform: translate3d(-50%, -100%, 0);
    background-color: transparent !important;
    border-radius: 0 !important;
    padding: 0 !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
}

.gm-style .gm-style-iw-d {
    overflow: auto !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.gm-style .gm-style-iw-t {
    padding: 0 !important;
}

.gm-style-iw-t::after {
    display: none !important;
}

/* Utility */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Responsive - Viewport Meta Fix */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

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

/* Responsive - Container Padding */
@media (max-width: 576px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}

/* ============================================
   PAGINA CONTATTI
   ============================================ */

.contact-page-wrapper {
    background-color: var(--roma-dinners-light-gray);
    min-height: 60vh;
}

.contact-page-header {
    text-align: center;
}

.contact-page-title {
    font-size: 3rem;
    font-weight: bold;
    color: var(--roma-dinners-dark-gray);
    margin-bottom: 1.5rem;
}

.contact-page-intro {
    font-size: 1.1rem;
    color: var(--roma-dinners-dark-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* Contact Info Card */
.contact-info-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.contact-info-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--roma-dinners-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--roma-dinners-accent);
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-item:last-of-type {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 40px;
    height: 40px;
    background: var(--roma-dinners-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.1rem;
}

.contact-info-content {
    flex: 1;
    color: var(--roma-dinners-dark-gray);
    line-height: 1.6;
}

.contact-info-content strong {
    color: var(--roma-dinners-primary);
    display: block;
    margin-bottom: 0.25rem;
}

.contact-info-content a {
    color: var(--roma-dinners-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-info-content a:hover {
    color: var(--roma-dinners-primary);
    text-decoration: underline;
}

/* Contact Social Links */
.contact-social-links {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.contact-social-title {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--roma-dinners-dark-gray);
    margin-bottom: 1rem;
}

.contact-social-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.contact-social-icon {
    width: 45px;
    height: 45px;
    background: var(--roma-dinners-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.3s;
}

.contact-social-icon:hover {
    background: var(--roma-dinners-primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Contact Form Card */
.contact-form-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-form-title {
    font-size: 1.75rem;
    font-weight: bold;
    color: var(--roma-dinners-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--roma-dinners-accent);
}

/* Contact Form Messages */
.contact-form-message {
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.contact-form-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.contact-form-success i {
    color: #28a745;
    font-size: 1.2rem;
}

.contact-form-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.contact-form-error i {
    color: #dc3545;
    font-size: 1.2rem;
}

/* Contact Form Styles */
.contact-form {
    margin-top: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--roma-dinners-dark-gray);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--roma-dinners-dark-gray);
    background-color: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    
}

.form-control:focus {
    outline: none;
    border-color: var(--roma-dinners-accent);
    box-shadow: 0 0 0 3px rgba(232, 182, 84, 0.1);
}

.form-control::placeholder {
    color: #999;
    opacity: 1;
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* Form Check (Privacy) */
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0;
}

.form-check-input {
    margin-top: 0.25rem;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: var(--roma-dinners-accent);
}

.form-check-label {
    font-size: 0.9rem;
    color: var(--roma-dinners-dark-gray);
    line-height: 1.5;
    cursor: pointer;
}

.form-check-label a {
    color: var(--roma-dinners-secondary);
    text-decoration: underline;
    transition: color 0.3s;
}

.form-check-label a:hover {
    color: var(--roma-dinners-primary);
}

/* Contact Submit Button */
.btn-contact-submit {
    background: var(--roma-dinners-primary);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    
    box-shadow: 0 4px 12px rgba(212, 54, 43, 0.3);
}

.btn-contact-submit:hover {
    background: #b82e25;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 54, 43, 0.4);
}

.btn-contact-submit:active {
    transform: translateY(0);
}

.btn-contact-submit i {
    font-size: 1rem;
}

/* Honeypot Field (Hidden) */
.contact-form input[name="contact_website"] {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* Responsive - Contact Page */
@media (max-width: 992px) {
    .contact-page-title {
        font-size: 2.5rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .contact-page-title {
        font-size: 2rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 1.5rem;
    }
    
    .contact-info-title,
    .contact-form-title {
        font-size: 1.5rem;
    }
    
    .btn-contact-submit {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact-page-title {
        font-size: 1.75rem;
    }
    
    .contact-info-card,
    .contact-form-card {
        padding: 1.25rem;
        border-radius: 15px;
    }
    
    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .contact-info-icon {
        margin-bottom: 0.5rem;
    }
}

/* ============================================
   SPLASH SCREEN
   ============================================ */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--roma-dinners-primary, #d4362b);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    cursor: pointer;
}

.splash-screen.active {
    opacity: 1;
    visibility: visible;
}

.splash-screen.fade-out {
    opacity: 0;
    visibility: hidden;
}

.splash-screen-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.splash-screen-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Animazione di ingresso */
@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.splash-screen.active .splash-screen-image {
    animation: splashFadeIn 0.8s ease-out;
}

/* Previeni scroll quando splash è attivo */
body.splash-active {
    overflow: hidden;
    height: 100vh;
}

/* Responsive - Splash Screen */
@media (max-width: 768px) {
    .splash-screen-image {
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 100%;
    }
}

@media (max-width: 480px) {
    .splash-screen-image {
        object-fit: cover;
        object-position: center;
        width: 100%;
        height: 100%;
    }
}
