/* ===============================================
   BRESCA RESTAURANT - CSS MODERN
   Mantenint l'essència i colors originals
   =============================================== */

/* Variables CSS - Colors originals de Bresca */
:root {
    --color-primary: #FF9900;
    --color-primary-dark: #de7d11;
    --color-primary-light: #fd9922;
    --color-secondary: #CC6633;
    --color-accent: #990000;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-muted: #999999;
    --color-white: #FFFFFF;
    --color-background: #FFFFFF;
    --color-footer-bg: #f8f8f8;

    /* Tipografia */
    --font-heading: 'Josefin Sans', 'Neutra Text', sans-serif;
    --font-body: 'Open Sans', 'Calibri', sans-serif;

    /* Espaciat */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Transicions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Ombres */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

/* Reset i base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===============================================
   HEADER MODERN
   =============================================== */

header {
    background: linear-gradient(180deg, #fef9f3 0%, #fff5eb 100%);
    border-bottom: 2px solid rgba(255, 153, 0, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo img {
    height: 60px;
    width: auto;
}

.idiomes {
    display: flex;
    gap: 8px;
}

.idiomes a {
    padding: 5px 10px;
    font-size: 0.85rem;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text-muted);
    border-radius: 4px;
    transition: all 0.2s ease;
}

.idiomes a:hover {
    color: var(--color-primary);
    background: rgba(255, 153, 0, 0.1);
}

.idiomes a.active {
    color: var(--color-secondary);
    font-weight: 600;
}

/* ===============================================
   NAVEGACIO HORITZONTAL
   =============================================== */

nav {
    background: var(--color-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav .menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 20px;
    max-width: 1200px;
    margin: 0 auto;
    list-style: none;
}

nav .menu a {
    display: block;
    padding: 8px 15px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--color-text);
    border-radius: 4px;
    transition: all 0.2s ease;
}

nav .menu a:hover {
    color: var(--color-primary);
    background: rgba(255, 153, 0, 0.1);
}

nav .menu a.active {
    color: var(--color-primary);
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 8px 12px;
    font-size: 1.2rem;
    border-radius: 4px;
    cursor: pointer;
}

/* ===============================================
   MAIN CONTENT
   =============================================== */

main {
    flex: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

main h1 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: 30px;
}

/* ===============================================
   FOOTER MODERN
   =============================================== */

footer {
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    border-top: 2px solid var(--color-primary);
    padding: 30px 20px 20px;
    margin-top: auto;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-contact {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-light);
}

.footer-contact a {
    color: var(--color-primary);
    text-decoration: none;
}

.footer-contact a:hover {
    color: var(--color-primary-dark);
}

.footer-legal {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-legal a {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-funding {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.1);
}

.footer-funding img {
    height: 50px;
    width: auto;
}

/* ===============================================
   MENU ITEMS (Carta, Plats)
   =============================================== */

.menu-section {
    margin-bottom: 40px;
}

.menu-section h2 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

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

.menu-item-name {
    flex: 1;
    font-family: var(--font-heading);
    color: var(--color-text);
}

.menu-item-price {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-secondary);
    min-width: 60px;
    text-align: right;
}

.menu-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 30px;
    font-style: italic;
}

/* Classes alternatives per plats */
.plat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #ddd;
}

.plat-nom {
    flex: 1;
    font-family: var(--font-heading);
    color: var(--color-text);
}

.plat-preu {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-secondary);
    min-width: 60px;
    text-align: right;
}

.iva-note {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 30px;
    font-style: italic;
}

/* Tipografia */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 2rem;
    color: var(--color-primary);
}

h2 {
    font-size: 1.5rem;
    color: var(--color-accent);
}

h3 {
    font-size: 1.25rem;
    color: var(--color-secondary);
}

p {
    margin-bottom: var(--spacing-sm);
}

/* Links */
a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* ===============================================
   LAYOUT PRINCIPAL
   =============================================== */

#contenedor {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

#contenido {
    display: flex;
    flex-wrap: wrap;
    min-height: calc(100vh - 80px);
}

/* Sidebar esquerra */
#esquerra {
    width: 260px;
    min-height: 100vh;
    padding: var(--spacing-md);
    background: linear-gradient(180deg, #fef9f3 0%, #fff5eb 100%);
    border-right: 1px solid rgba(204, 102, 51, 0.1);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100;
    transition: transform var(--transition-normal);
}

#esquerra img {
    max-width: 100%;
    height: auto;
    margin-bottom: var(--spacing-md);
}

/* Area de contingut dreta */
#dreta {
    flex: 1;
    margin-left: 260px;
    padding: var(--spacing-lg);
    min-height: calc(100vh - 80px);
    background: var(--color-background);
}

/* ===============================================
   SELECTOR D'IDIOMES
   =============================================== */

#idiomes {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    padding: var(--spacing-xs) 0;
}

#idiomes a {
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

#idiomes a:hover {
    background-color: rgba(255, 153, 0, 0.1);
}

#idiomes a#seleccionat,
#idiomes a.active {
    color: var(--color-secondary);
    font-weight: 700;
    background-color: rgba(255, 153, 0, 0.15);
}

/* ===============================================
   NAVEGACIO / BOTONERA
   =============================================== */

#botonera {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.boto {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.boto a {
    display: block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.boto a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform var(--transition-fast);
}

.boto a:hover {
    background-color: rgba(255, 153, 0, 0.1);
    transform: translateX(5px);
}

.boto a:hover::before {
    transform: scaleY(1);
}

.boto a img {
    max-width: 100%;
    height: auto;
    transition: transform var(--transition-fast);
}

/* ===============================================
   FOOTER / PEU
   =============================================== */

#peu {
    background: linear-gradient(180deg, #f5f5f5 0%, #e8e8e8 100%);
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-light);
    padding: var(--spacing-md) var(--spacing-lg);
    text-align: center;
    border-top: 2px solid var(--color-primary);
    margin-left: 260px;
}

#peu a {
    color: var(--color-primary);
}

#peu a:hover {
    color: var(--color-primary-dark);
}

/* ===============================================
   CARTA / MENU
   =============================================== */

#carta {
    min-height: 650px;
    position: relative;
}

#llistatPlats {
    padding: var(--spacing-md);
    background: var(--color-white);
    max-height: 70vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* Scrollbar personalitzat */
#llistatPlats::-webkit-scrollbar {
    width: 8px;
}

#llistatPlats::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: var(--radius-sm);
}

#llistatPlats::-webkit-scrollbar-thumb {
    background: var(--color-primary);
    border-radius: var(--radius-sm);
}

#llistatPlats::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-dark);
}

/* Plats individuals */
#plat {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
    padding: var(--spacing-sm) var(--spacing-md);
    margin-bottom: var(--spacing-xs);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
}

#plat:hover {
    background-color: rgba(255, 153, 0, 0.05);
    transform: translateX(5px);
}

#preu {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-primary-dark);
    font-weight: 600;
    white-space: nowrap;
}

/* Tipus de plats (tabs) */
.tipusVi {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-primary);
    padding: var(--spacing-sm) var(--spacing-md);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-bottom: 3px solid transparent;
}

.tipusVi:hover,
.tipusVi.active {
    color: var(--color-primary-dark);
    border-bottom-color: var(--color-primary);
}

/* Denominacio d'origen vins */
.doT {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-secondary);
    padding: var(--spacing-md) 0;
    text-align: center;
    border-bottom: 2px solid rgba(204, 102, 51, 0.2);
    margin-bottom: var(--spacing-sm);
}

/* ===============================================
   MENU DEL DIA
   =============================================== */

#Menu {
    padding-top: var(--spacing-xl);
}

#diaMenu {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-text);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

#titolGrupMenu {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-secondary);
    padding: var(--spacing-md) 0 var(--spacing-xs);
    text-align: center;
    position: relative;
}

#titolGrupMenu::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--color-primary);
    margin: var(--spacing-sm) auto 0;
}

#platMenu {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    text-align: center;
    padding: var(--spacing-xs) 0;
}

/* ===============================================
   RESERVES / FORMULARI
   =============================================== */

#reserva {
    padding: var(--spacing-xl) 0;
}

#camps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    align-items: center;
}

#campF {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--color-text-light);
    min-width: 120px;
}

#campT input,
#campT select,
#campT textarea {
    font-family: var(--font-body);
    font-size: 1rem;
    padding: var(--spacing-sm);
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    width: 100%;
    max-width: 300px;
}

#campT input:focus,
#campT select:focus,
#campT textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

.error {
    color: var(--color-accent);
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
}

#nota {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--color-text-light);
    text-align: center;
    padding: var(--spacing-md);
    background: linear-gradient(180deg, transparent 0%, rgba(255,153,0,0.05) 100%);
    border-radius: var(--radius-md);
}

#enviar,
#enviarEng {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-xl);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: var(--spacing-lg) auto;
    display: block;
}

#enviar:hover,
#enviarEng:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

/* ===============================================
   PRESENTACIO / HOME
   =============================================== */

#cosPresentacio {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    min-height: 500px;
}

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

#texteSituacio {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--color-secondary);
    line-height: 1.8;
    padding: var(--spacing-lg);
}

/* ===============================================
   HORT / GALERIA
   =============================================== */

#slideFotos,
#slideFotosPremsa {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.HortFoto,
.Noticia {
    background: var(--color-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.HortFoto:hover,
.Noticia:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.HortFoto img,
.Noticia img {
    max-width: 100%;
    height: auto;
}

#botoneraMessos {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.botoMes {
    padding: var(--spacing-xs) var(--spacing-sm);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.875rem;
}

.botoMes:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

#titolMessos {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--color-primary-dark);
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ===============================================
   PREMSA / NOTICIES
   =============================================== */

#titolPremsa,
#titolPremsaB {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: inline-block;
    margin: var(--spacing-xs);
}

#titolPremsa {
    background: var(--color-primary);
    color: var(--color-white);
}

#titolPremsaB {
    background: #e0e0e0;
    color: var(--color-text);
}

#titolPremsa:hover,
#titolPremsaB:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.titolNoticia {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary-dark);
    margin-bottom: var(--spacing-sm);
}

.dataNoticia {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.diari {
    font-size: 1rem;
    color: var(--color-secondary);
    font-style: italic;
}

.descripcioNoticia {
    color: var(--color-text-light);
    line-height: 1.7;
    text-align: justify;
    padding: var(--spacing-md);
}

/* ===============================================
   LLEGENDA ALERGIES
   =============================================== */

#llegendaAlergies {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-lg);
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-normal);
}

#llegendaAlergies.visible {
    visibility: visible;
    opacity: 1;
}

.titolLlegenda {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-primary);
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-sm);
    border-bottom: 2px solid var(--color-primary);
}

/* Overlay per la llegenda */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    transition: all var(--transition-normal);
}

.overlay.visible {
    visibility: visible;
    opacity: 1;
}

/* ===============================================
   SEPARADORS
   =============================================== */

.separador {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    margin: var(--spacing-lg) auto;
}

/* ===============================================
   ANIMACIO ABELLA
   =============================================== */

#animacio,
#animacio2,
#animacio3 {
    transition: all 0.1s linear;
}

#animacio img,
#animacio2 img,
#animacio3 img {
    max-width: 100%;
    height: auto;
}

/* ===============================================
   UTILITATS
   =============================================== */

.limpia {
    clear: both;
}

.margeBaix {
    padding: var(--spacing-lg);
    text-align: center;
    color: var(--color-text-muted);
    font-style: italic;
}

.iva {
    padding: var(--spacing-md);
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-style: italic;
}

/* ===============================================
   RESPONSIVE - TABLET
   =============================================== */

@media (max-width: 1024px) {
    #esquerra {
        width: 220px;
    }

    #dreta,
    #peu {
        margin-left: 220px;
    }
}

/* ===============================================
   RESPONSIVE - MOBIL (HEADER HORITZONTAL)
   =============================================== */

@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    /* Header responsive */
    .header-top {
        flex-wrap: wrap;
        gap: 10px;
    }

    .logo img {
        height: 50px;
    }

    .menu-toggle {
        display: block;
    }

    nav {
        display: none;
    }

    nav.open {
        display: block;
    }

    nav .menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    nav .menu a {
        text-align: center;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    /* Footer responsive */
    .footer-main {
        flex-direction: column;
        text-align: center;
    }

    /* Menu items responsive */
    .menu-item,
    .plat {
        flex-direction: column;
        text-align: center;
        gap: 5px;
    }

    .menu-item-price,
    .plat-preu {
        text-align: center;
    }

    .plat-nom {
        text-align: center;
    }

    /* Legacy layout responsive */
    #esquerra {
        position: fixed;
        width: 280px;
        transform: translateX(-100%);
        z-index: 1000;
        height: 100vh;
        overflow-y: auto;
    }

    #esquerra.open {
        transform: translateX(0);
        box-shadow: var(--shadow-lg);
    }

    #dreta,
    #peu {
        margin-left: 0;
        padding: var(--spacing-md);
    }

    #carta {
        min-height: auto;
    }

    #llistatPlats {
        max-height: none;
    }

    #plat {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-xs);
    }

    #camps {
        flex-direction: column;
    }

    #campT input,
    #campT select,
    #campT textarea {
        max-width: 100%;
    }

    #cosPresentacio {
        min-height: 300px;
    }

    .HortFoto,
    .Noticia {
        width: 100%;
    }

    .detallNoticia,
    .fotoNoticia {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
    }
}

/* ===============================================
   RESPONSIVE - MOBIL PETIT
   =============================================== */

@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }

    .idiomes a {
        padding: 4px 6px;
        font-size: 0.75rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    #peu {
        font-size: 0.8rem;
        padding: var(--spacing-sm);
    }

    .tipusVi {
        font-size: 1rem;
    }
}

/* ===============================================
   EFECTES ESPECIALS
   =============================================== */

/* Efecte hover suau per imatges */
.boto a img,
.HortFoto img,
.fotoNoticia img {
    transition: transform var(--transition-normal), filter var(--transition-normal);
}

.boto a:hover img {
    transform: scale(1.02);
}

.HortFoto:hover img,
.fotoNoticia:hover img {
    transform: scale(1.05);
}

/* Animacio d'entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.5s ease forwards;
}

/* Pulsacio suau pel logo */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

#esquerra > img:first-child {
    animation: pulse 4s ease-in-out infinite;
}

/* ===============================================
   MODE FOSC (opcional, per a futures versions)
   =============================================== */

@media (prefers-color-scheme: dark) {
    /* Desactivat per defecte, descomentar per activar
    :root {
        --color-background: #1a1a1a;
        --color-text: #e0e0e0;
        --color-text-light: #b0b0b0;
        --color-text-muted: #808080;
    }

    #esquerra {
        background: linear-gradient(180deg, #2a2015 0%, #1f1810 100%);
    }

    #llistatPlats {
        background: #1a1a1a;
    }
    */
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
    #esquerra,
    #peu,
    .menu-toggle,
    #animacio,
    #animacio2,
    #animacio3 {
        display: none;
    }

    #dreta {
        margin-left: 0;
        width: 100%;
    }

    body {
        font-size: 12pt;
        color: #000;
    }
}
