/* Prefisso pop-up telefono */
.phone-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}
.btn-prefix {
    background: #ffd700;
    color: #3f2100;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    margin-right: 0;
    transition: background 0.2s;
}
.btn-prefix:hover {
    background: #ffed4e;
}
.selected-prefix {
    font-size: 1.1em;
    margin-right: 8px;
    min-width: 70px;
    display: inline-block;
}
.prefix-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0; top: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
    align-items: center;
    justify-content: center;
}
.prefix-popup-content {
    background: #fff;
    color: #222;
    border-radius: 12px;
    padding: 30px 24px 18px 24px;
    max-width: 350px;
    margin: 80px auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: relative;
    text-align: left;
}
.prefix-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 220px;
    overflow-y: auto;
}
.prefix-list li {
    padding: 10px 0;
    cursor: pointer;
    font-size: 1.1em;
    border-bottom: 1px solid #eee;
    transition: background 0.2s;
}
.prefix-list li:hover {
    background: #ffd70022;
}
.close-popup {
    position: absolute;
    top: 10px;
    right: 18px;
    font-size: 1.5em;
    color: #888;
    cursor: pointer;
}
/* styles.css - Habana Cafe Bar Website */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #44322d;
    color: #e0e0e0;
    line-height: 1.6;
    padding-bottom: 120px;
}

/* Header & Navigation */
header {
    background: linear-gradient(135deg, #44322d 0%, #44322d 100%);
    color: #ffc108;
    padding: 30px 20px;
    text-align: center;
    border-bottom: 3px solid #ffc108;
    box-shadow: 0 4px 6px rgba(255, 215, 0, 0.2);
}

header h1 {
    font-size: 2.5em;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px #ffffff;
    margin-bottom: 10px;
}

header p {
    font-size: 1.1em;
    color: #b0b0b0;
    font-style: italic;
}

/* Main Content - Layout a 2 colonne */
main {
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.layout-sides {
    display: grid;
    grid-template-columns: 1fr minmax(180px, 220px) 1.2fr;
    gap: 40px;
    align-items: start;
}

.left-side,
.right-side {
    display: grid;
    gap: 30px;
}

.center-space {
    min-height: 420px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.center-image {
    max-width: 260px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease, filter 0.3s ease;
}

.center-image:hover {
    transform: translateY(-4px);
    filter: brightness(1.05) contrast(1.05);
}


/* Sezioni su colonna intera (header e footer) */
main > section:first-child,
main > section:nth-child(2) {
    grid-column: 1 / -1;
}

main h2 {
    color: #ffd700;
    font-size: 2em;
    margin-bottom: 20px;
    border-left: 5px solid #ffd700;
    padding-left: 15px;
}

main h3 {
    color: #ffd700;
    font-size: 1.5em;
    margin-top: 30px;
    margin-bottom: 15px;
}

p {
    font-size: 1.05em;
    margin-bottom: 15px;
    line-height: 1.8;
    color: #d0d0d0;
}

/* Keyframe Animation for Fade-in */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade-in Effect on Page Load */
.fade-in {
    animation: fadeInUp 4.5s ease-out backwards;
}

/* Card/Section Styling */
section {
    background-color: #2a020c;
    border: 1px solid #000000;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.15);
}

section:hover .fade-in {
    opacity: 1;
}

/* Lists */
ul, ol {
    margin-left: 30px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
    color: #d0d0d0;
}

/* Links */
a {
    color: #ffd700;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffed4e;
    text-decoration: underline;
}

/* Buttons */
button, .btn {
    background-color: #ffd700;
    color: #000;
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover, .btn:hover {
    background-color: #ffed4e;
    transform: scale(1.05);
}

button:active, .btn:active {
    transform: scale(0.98);
}

/* Button Container - Distribuiti ai lati */
.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.button-container .btn {
    flex: 1;
    max-width: 300px;
}

/* Layout a due colonne per sezioni con bottoni */
.section-with-buttons {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
}

.section-with-buttons .content {
    flex: 1;
}

.section-with-buttons .button-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    justify-content: center;
}

/* Footer */
footer {
    background-color: #0a0a0a;
    color: #ffc108;
    padding: 30px 20px;
    text-align: center;
    position: fixed;
    width: 100%;
    bottom: 0;
    border-top: 3px solid #ffc108;
    box-shadow: 0 -4px 6px rgba(255, 215, 0, 0.1);
}

footer p {
    margin: 0;
    font-size: 0.95em;
    color: #ffc108;
}

footer a {
    color: #ffd700;
    margin: 0 10px;
}

/* Responsive Design */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8em;
    }

    main {
        padding: 20px 10px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    main > section:first-child,
    main > section:nth-child(2) {
        grid-column: 1;
    }

    section {
        padding: 15px;
    }

    button, .btn {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    /* Su mobile, i bottoni tornano centrati e impilati */
    .section-with-buttons {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .button-container {
        justify-content: center;
        flex-direction: column;
    }

    .button-container .btn {
        max-width: 100%;
    }

    .layout-sides {
        grid-template-columns: 1fr;
    }

    .center-space {
        display: none;
    }
}

.menu-container {
    max-width: 1200px;
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 40px 32px;
    background: linear-gradient(135deg, #44322d 0%, #2c1e1a 100%);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.menu-container h1 {
    color: #ffc108;
    text-align: center;
    font-size: 3.2em;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9), 0 0 20px rgba(255, 193, 8, 0.4);
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 2px;
}

.menu-container h2 {
    color: white;
    text-align: center;
    font-size: 2em;
    margin-bottom: 10px;
}

.flyer-header {
    text-align: center;
    margin-bottom: 30px;
    background-image: url('Habana.JPG');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 20px;
    border-radius: 15px;
    position: relative;
    min-height: 300px;
}

.flyer-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 15px;
}

.flyer-header > * {
    position: relative;
    z-index: 1;
}

.flyer-badge {
    display: inline-block;
    background-color: #ffc108;
    color: #3f2100;
    font-size: 0.95em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 10px 20px;
    border-radius: 999px;
    margin-bottom: 20px;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(255, 193, 8, 0.4);
}

.flyer-subtitle {
    color: #ffffff;
    max-width: 680px;
    margin: 10px auto 0;
    font-size: 1.1rem;
    line-height: 1.7;
    font-weight: 500;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 30px;
    justify-content: center;
}

.section {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 193, 8, 0.45);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.section:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(255, 193, 8, 0.12);
}

.section h3 {
    color: #ffd700;
    font-size: 1.45em;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid rgba(255, 193, 8, 0.35);
    padding-bottom: 8px;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-item {
    color: #f8f4e8;
    font-size: 1.1em;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: space-between;
}

.menu-item::before {
    content: "•";
    color: #ffc108;
    font-size: 1.2em;
    line-height: 1;
}

.menu-item:hover {
    color: #ffd700;
    transform: translateX(4px);
}

.price {
    color: #ffc108;
    font-weight: bold;
    font-size: 1em;
}


/* Responsive for Menu */
@media (max-width: 768px) {
    .menu-container {
        padding: 20px 16px;
        margin: 10px;
    }

    .flyer-header {
        margin-bottom: 20px;
    }

    .menu-container h1 {
        font-size: 2em;
    }

    .menu-container h2 {
        font-size: 1.5em;
    }

    .section {
        padding: 15px;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .section h3 {
        font-size: 1.5em;
    }

    .menu-item {
        font-size: 1.1em;
    }
}

/* Booking Form Styles */
.booking-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    color: #ffc108;
    font-size: 1.1em;
    margin-bottom: 8px;
    font-weight: bold;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(255, 193, 8, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1em;
    box-sizing: border-box;
}

input::placeholder, textarea::placeholder {
    color: #ccc;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #ffc108;
    box-shadow: 0 0 8px rgba(255, 193, 8, 0.5);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.btn {
    background-color: #ffc108;
    color: #3f2100;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    display: block;
}

.btn:hover {
    background-color: #ffed4e;
    transform: scale(1.05);
}

.btn:active {
    transform: scale(0.98);
}

/* Responsive for Booking */
@media (max-width: 768px) {
    .booking-form {
        padding: 10px;
    }

    .btn {
        width: 100%;
    }
}

/* Events Page Styles */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.event-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px dashed rgba(255, 193, 8, 0.45);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(255, 193, 8, 0.12);
}

.event-card h3 {
    color: #ffd700;
    font-size: 1.5em;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-date {
    color: #ffc108;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 15px;
}

.event-description {
    color: #f8f4e8;
    font-size: 1em;
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 20px;
    background: rgba(255, 193, 8, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(255, 193, 8, 0.3);
}

.cta-section p {
    color: white;
    font-size: 1.1em;
    margin: 0;
}

.cta-section a {
    color: #ffc108;
    text-decoration: underline;
    font-weight: bold;
}

.cta-section a:hover {
    color: #ffed4e;
}

/* Responsive for Events */
@media (max-width: 768px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .event-card {
        padding: 20px;
    }

    .cta-section {
        padding: 15px;
    }
}

.center-space {
    min-height: 420px;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
}

