/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Segoe UI', 'Playfair Display', sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.8s ease-out;
    background-image: url('images/caffè.PNG');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    overflow-x: hidden;
}

.note-immagini {
    text-align: center;
    color: #ffbfa3;
    font-size: 1rem;
    margin: 35px 0 0 0;
    opacity: 0.8;
    font-style: italic;
    letter-spacing: 0.01em;
}

footer .powered {
    color: #d84315;
    font-size: 0.98rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    margin-top: 10px;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== HEADER MODIFICATO (LOGO CENTRATO) ===== */
header {
    background: linear-gradient(to bottom, #000000, #1a1a1a);
    border-bottom: 1px solid #d84315;
    box-shadow: 0 2px 15px rgba(216, 67, 21, 0.2);
    animation: slideDown 0.5s ease-out;
}

.header-container {
    display: flex;
    justify-content: center;
    padding: 1.5rem;
    width: 100%;
}

@keyframes slideDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.logo {
    height: 60px;
    filter: brightness(0) invert(1);
    transition: transform 0.3s ease;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

/* ===== HERO SECTION ===== */
.hero-drinks {
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), 
                url('images/coffee-bg.jpg') center/cover no-repeat;
    padding: 5rem 1.5rem 2rem;
    text-align: center;
    animation: bgZoom 20s infinite alternate ease-in-out;
}

@keyframes bgZoom {
    0% { background-size: 100%; }
    100% { background-size: 110%; }
}

.hero-drinks h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 0.8rem;
    animation: fadeInUp 0.8s ease-out;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-drinks p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    animation: fadeIn 1s ease-out 0.3s both;
}

/* ===== DRINK CONTAINER ===== */
.drink-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 1.5rem;
    flex: 1;
    animation: fadeIn 0.8s ease-out 0.2s both;
}

.drink-category {
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease-out var(--delay) both;
}

.drink-category:nth-child(1) { --delay: 0.3s; }
.drink-category:nth-child(2) { --delay: 0.5s; }
.drink-category:nth-child(3) { --delay: 0.7s; }

.drink-category h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #d84315;
    margin-bottom: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #d84315;
    position: relative;
}

.drink-category h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #e67e22;
}

.drink-items {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
}

@media (min-width: 400px) {
    .drink-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

.drink-item {
    background: rgba(30,30,30,0.7);
    border-radius: 8px;
    padding: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: 1px solid #333;
    animation: fadeIn 0.6s ease-out var(--delay) both;
}

.drink-item:nth-child(1) { --delay: 0.4s; }
.drink-item:nth-child(2) { --delay: 0.5s; }
.drink-item:nth-child(3) { --delay: 0.6s; }
/* ... aggiungi altri delay se necessario */

.drink-item:hover {
    transform: translateY(-3px);
    border-color: #d84315;
    box-shadow: 0 5px 15px rgba(216, 67, 21, 0.3);
}

.drink-name {
    font-size: 1.1rem;
    font-weight: 500;
}

.drink-price {
    font-size: 1.1rem;
    color: #d84315;
    font-weight: 600;
}

/* ===== NUOVO PULSANTE TORNA INDIETRO ===== */
.back-button-container {
    text-align: center;
    margin: 2rem 0;
    padding: 0 1.5rem;
    animation: fadeIn 0.8s ease-out;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 2rem;
    background: rgba(216, 67, 21, 0.8);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(216, 67, 21, 0.3);
}

.back-btn span {
    margin-right: 0.5rem;
}

.back-btn:hover {
    transform: translateY(-2px);
    background: rgba(216, 67, 21, 1);
    box-shadow: 0 4px 15px rgba(216, 67, 21, 0.4);
}

/* ===== FOOTER ===== */
footer {
    background: linear-gradient(to top, #000, #1a1a1a);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #333;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.footer-content p {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.8);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .hero-drinks h1 {
        font-size: 2.8rem;
    }
    
    .hero-drinks p {
        font-size: 1.3rem;
    }
    
    .drink-category h2 {
        font-size: 2rem;
    }
    
    .back-btn {
        padding: 1rem 2.5rem;
    }
}