/* ============================================================
   PLATEAITALIANA — Main CSS v2.3
   Verde: #29b088 | Font: Raleway
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;500;600;700;800&display=swap');

:root {
    --verde:        #29b088;
    --verde-dark:   #1d8a6b;
    --verde-light:  #a8ddd0;
    --verde-bg:     #edf7f4;
    --bianco:       #FFFFFF;
    --grigio-bg:    #F7F8F7;
    --grigio-mid:   #E5E5E5;
    --grigio:       #888;
    --testo:        #2C2C2C;
    --nero:         #1A1A1A;
    --radius:       6px;
    --shadow:       0 2px 16px rgba(0,0,0,.07);
    --shadow-lg:    0 8px 32px rgba(0,0,0,.13);
    --trans:        all .28s ease;
    --navbar-h:     64px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 15px; }
body { font-family: 'Raleway', sans-serif; color: var(--testo); background: var(--bianco); line-height: 1.7; overflow-x: hidden; }
a { color: var(--verde-dark); text-decoration: none; transition: var(--trans); }
a:hover { color: var(--verde); }
img { max-width: 100%; display: block; }
ul { list-style: none; padding: 0; margin: 0; }

/* ============================================================ NAVBAR ============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--navbar-h);
    background: var(--verde);
    border-bottom: 2px solid var(--verde-dark);
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
    z-index: 1000;
    display: flex; align-items: center;
}
.navbar-inner {
    width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.navbar-brand {
    font-size: 1.2rem; font-weight: 800; color: #fff;
    white-space: nowrap; display: flex; align-items: center; gap: .6rem;
}
.navbar-brand img { width: 50px; height: 50px; object-fit: contain; display: block; flex-shrink: 0; }
.navbar-brand em { color: rgba(255,255,255,.8); font-style: normal; }

.navbar-menu { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; }
.navbar-menu a {
    font-size: .75rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: .09em;
    color: #fff; padding: .35rem .7rem; border-radius: 20px;
    transition: var(--trans); white-space: nowrap; border: 1.5px solid transparent;
}
.navbar-menu a:hover, .navbar-menu a.active {
    background: #fff; color: var(--verde-dark) !important; border-color: #fff;
}
.navbar-toggle {
    display: none; background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.4); border-radius: var(--radius);
    padding: .4rem .6rem; cursor: pointer; flex-direction: column; gap: 4px;
}
.navbar-toggle span { display: block; width: 20px; height: 2px; background: #fff; border-radius: 2px; }

/* ============================================================ HERO SLIDER ============================================================ */
.hero-wrap { margin-top: var(--navbar-h); position: relative; overflow: hidden; }
.hero-carousel { display: block !important; visibility: visible !important; opacity: 1 !important; }
.hero-slide {
    height: 520px; background-size: cover; background-position: center; position: relative;
}
.hero-slide::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.75) 0%, rgba(0,0,0,.15) 55%, transparent 100%);
}
.hero-slide-body {
    position: absolute; bottom: 3rem;
    left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 1200px; padding: 0 1.5rem; z-index: 2; color: #fff;
}
.hero-badge {
    display: inline-block; background: var(--verde); color: #fff;
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em;
    padding: .28rem .85rem; border-radius: 20px; margin-bottom: .75rem;
}
.hero-slide-body h1 {
    font-size: 2.1rem; font-weight: 800; color: #fff; margin-bottom: .5rem;
    text-shadow: 0 2px 8px rgba(0,0,0,.4); max-width: 700px;
}
.hero-meta { font-size: .9rem; color: rgba(255,255,255,.82); margin-bottom: 1.2rem; }
.hero-meta i { margin-right: .4rem; color: var(--verde-light); }
.btn-hero {
    display: inline-block; background: var(--verde); color: #fff !important;
    padding: .6rem 1.8rem; border-radius: 30px; font-size: .82rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; border: 2px solid var(--verde); transition: var(--trans);
}
.btn-hero:hover { background: transparent; border-color: #fff; color: #fff !important; }

/* Owl nav hero */
.hero-carousel .owl-nav button {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.35) !important; color: #fff !important;
    width: 44px; height: 44px; border-radius: 50% !important;
    font-size: 1rem !important; line-height: 44px !important; text-align: center;
    border: none !important; transition: var(--trans); z-index: 10;
}
.hero-carousel .owl-nav button:hover { background: var(--verde) !important; }
.hero-carousel .owl-prev { left: 1.5rem; }
.hero-carousel .owl-next { right: 1.5rem; }
.hero-carousel .owl-dots { position: absolute; bottom: 1.2rem; width: 100%; text-align: center; z-index: 3; }
.hero-carousel .owl-dot span { background: rgba(255,255,255,.5) !important; width: 8px !important; height: 8px !important; }
.hero-carousel .owl-dot.active span { background: var(--verde) !important; }

/* ============================================================ SEZIONI ============================================================ */
.section { padding: 3rem 0; }
.section-alt { background: var(--grigio-bg); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.sec-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--verde-light);
}
.sec-head h2 { font-size: 1rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--nero); }
.sec-head h2 span { color: var(--verde); }
.sec-head a { font-size: .72rem; font-weight: 700; color: var(--verde-dark); text-transform: uppercase; }

.cat-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.cat-pill {
    display: inline-block; padding: .3rem 1rem;
    border: 1.5px solid var(--verde-light); border-radius: 20px;
    font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em;
    color: var(--testo); transition: var(--trans);
}
.cat-pill:hover, .cat-pill.active { background: var(--verde); border-color: var(--verde); color: #fff !important; }

/* ============================================================ CARD EVENTO STANDARD ============================================================ */
.ev-card {
    background: var(--bianco); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--trans); display: flex; flex-direction: column; height: 100%;
}
.ev-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ev-card-img { position: relative; height: 200px; overflow: hidden; background: var(--grigio-mid); }
.ev-card-img-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s ease; }
.ev-card:hover .ev-card-img-bg { transform: scale(1.06); }
.ev-card-cat {
    position: absolute; top: .7rem; left: .7rem; background: var(--verde); color: #fff;
    font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
    padding: .22rem .7rem; border-radius: 20px; z-index: 2;
}
.ev-card-overlay {
    position: absolute; inset: 0; background: rgba(41,176,136,0);
    display: flex; align-items: center; justify-content: center; transition: var(--trans); z-index: 3;
}
.ev-card:hover .ev-card-overlay { background: rgba(29,138,107,.35); }
.ev-card-overlay .btn-view {
    background: #fff; color: var(--verde-dark) !important;
    padding: .38rem 1.1rem; border-radius: 20px; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; opacity: 0; transform: translateY(8px); transition: var(--trans);
}
.ev-card:hover .ev-card-overlay .btn-view { opacity: 1; transform: translateY(0); }
.ev-card-body { padding: 1rem 1.1rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.ev-card-title { font-size: .92rem; font-weight: 700; color: var(--nero); margin-bottom: .6rem; line-height: 1.35; }
.ev-card-title a { color: var(--nero); }
.ev-card-title a:hover { color: var(--verde-dark); }
.ev-card-meta { font-size: .75rem; color: var(--grigio); margin-top: auto; display: flex; flex-direction: column; gap: .2rem; }
.ev-card-meta span { display: flex; align-items: center; gap: .4rem; }
.ev-card-meta i { color: var(--verde); width: 13px; font-size: .72rem; }

/* ============================================================ CARD FEATURED ============================================================ */
.ev-featured {
    position: relative; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--trans); height: 100%; min-height: 360px; display: block;
}
.ev-featured:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ev-featured-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s ease; }
.ev-featured:hover .ev-featured-bg { transform: scale(1.04); }
.ev-featured::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82) 0%, rgba(0,0,0,.1) 55%, transparent 100%); z-index: 1; }
.ev-featured-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1.4rem; z-index: 2; color: #fff; }
.ev-featured-body .ev-card-cat { position: static; display: inline-block; margin-bottom: .5rem; }
.ev-featured-body h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: .35rem; line-height: 1.35; }
.ev-featured-body .meta { font-size: .77rem; color: rgba(255,255,255,.78); margin-bottom: .8rem; }
.ev-featured-body .meta i { color: var(--verde-light); margin-right: .3rem; }
.btn-sm-verde {
    display: inline-block; background: var(--verde); color: #fff !important;
    padding: .35rem 1.1rem; border-radius: 20px; font-size: .72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .09em; transition: var(--trans);
}
.btn-sm-verde:hover { background: var(--verde-dark); }

/* ============================================================ GRIGLIA HOMEPAGE ============================================================ */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.home-grid-right { display: grid; grid-template-rows: 1fr 1fr; gap: 1.2rem; }
.home-grid .ev-featured { min-height: 440px; }
.home-grid-right .ev-featured { min-height: 210px; }
.four-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 2rem; }

/* ============================================================ IN PRIMO PIANO ============================================================ */
.primo-piano-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.primo-piano-left .pp-item { height: 500px; }
.primo-piano-right { display: grid; grid-template-rows: 1fr 1fr; gap: 1.2rem; height: 500px; }
.primo-piano-right .pp-item { height: 100%; }
.pp-item {
    position: relative; border-radius: var(--radius); overflow: hidden;
    transition: var(--trans); display: block; min-height: 200px;
}
.pp-item:hover { transform: scale(1.01); box-shadow: var(--shadow-lg); }
.pp-item-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .4s ease; }
.pp-item:hover .pp-item-bg { transform: scale(1.05); }
.pp-item::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 60%); z-index: 1; }
.pp-item-body { position: absolute; bottom: 0; left: 0; right: 0; padding: 1rem 1.1rem; z-index: 2; color: #fff; }
.pp-item-body .ev-card-cat { position: static; display: inline-block; margin-bottom: .3rem; }
.pp-item-body h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: .2rem; line-height: 1.3; }
.pp-item-body .meta { font-size: .75rem; color: rgba(255,255,255,.75); }

/* ============================================================ NEWS CAROUSEL ============================================================ */
/* Carousel owl con frecce sopra la foto */
.news-owl-carousel { position: relative; }
.news-owl-carousel .owl-nav button {
    position: absolute;
    top: 75px; /* centro della foto 150px */
    transform: translateY(-50%);
    background: rgba(0,0,0,.45) !important; color: #fff !important;
    width: 34px; height: 34px; border-radius: 50% !important;
    font-size: .82rem !important; line-height: 34px !important; text-align: center;
    border: none !important; transition: var(--trans); z-index: 10;
}
.news-owl-carousel .owl-nav button:hover { background: var(--verde) !important; }
.news-owl-carousel .owl-prev { left: 6px; }
.news-owl-carousel .owl-next { right: 6px; }
.news-owl-carousel .owl-dots { display: none !important; }

.news-card {
    background: var(--bianco); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow); transition: var(--trans); display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card-img { height: 150px; overflow: hidden; background: var(--grigio-mid); }
.news-card-img-bg { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .4s ease; }
.news-card:hover .news-card-img-bg { transform: scale(1.06); }
.news-card-body { padding: .9rem 1rem; flex: 1; display: flex; flex-direction: column; }
.news-label { font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--verde-dark); margin-bottom: .35rem; }
.news-title { font-size: .85rem; font-weight: 700; color: var(--nero); line-height: 1.4; }
.news-title a { color: var(--nero); }
.news-title a:hover { color: var(--verde-dark); }

/* ============================================================ PAGINE INTERNE ============================================================ */
.page-banner { margin-top: var(--navbar-h); background: var(--verde-bg); border-bottom: 2px solid var(--verde-light); padding: 2.5rem 0 2rem; }
.page-banner h1 { font-size: 1.6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--nero); }
.page-banner h1 span { color: var(--verde); }
.page-banner p { color: var(--grigio); font-size: .9rem; margin-top: .3rem; }

.cal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-bottom: 2rem; }

.pagination { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 2rem 0; flex-wrap: wrap; }
.pag-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 38px; height: 38px; padding: 0 .8rem; gap: .35rem;
    border-radius: var(--radius); font-size: .82rem; font-weight: 700;
    border: 1.5px solid var(--verde-light); color: var(--testo); transition: var(--trans); background: #fff;
}
.pag-btn:hover, .pag-btn.active { background: var(--verde); border-color: var(--verde); color: #fff !important; }
.pag-btn.disabled { opacity: .4; pointer-events: none; }

/* ============================================================ DETTAGLIO EVENTO ============================================================ */
.event-detail-hero { margin-top: var(--navbar-h); height: 520px; background-size: cover; background-position: center; position: relative; }
.event-detail-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.2) 55%, transparent 100%); }
.event-detail-header {
    position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 1200px; padding: 0 1.5rem; z-index: 2; color: #fff;
}
.event-detail-header h1 { font-size: 1.8rem; font-weight: 800; color: #fff; margin-bottom: .4rem; }
.event-detail-header .meta { font-size: .9rem; color: rgba(255,255,255,.8); }
.event-detail-header .meta i { color: var(--verde-light); margin-right: .4rem; }

/* Attributi — sfondo verde testo bianco */
.event-attrs {
    display: flex; flex-wrap: wrap; gap: 1.5rem;
    background: var(--verde); padding: 1.2rem 1.5rem; border-radius: var(--radius); margin-bottom: 2rem;
}
.event-attr { display: flex; flex-direction: column; }
.event-attr .key { font-size: .65rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.7); margin-bottom: .2rem; }
.event-attr .val { font-size: .92rem; font-weight: 600; color: #fff; }

/* Slider foto evento */
.event-photos-slider { margin-bottom: 2rem; position: relative; }
.event-photos-slider .owl-item img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius); display: block; }
.event-photos-slider .owl-nav button {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,.4) !important; color: #fff !important;
    width: 40px; height: 40px; border-radius: 50% !important;
    font-size: .9rem !important; line-height: 40px !important; text-align: center;
    border: none !important; transition: var(--trans); z-index: 10;
}
.event-photos-slider .owl-nav button:hover { background: var(--verde) !important; }
.event-photos-slider .owl-prev { left: 1rem; }
.event-photos-slider .owl-next { right: 1rem; }
.event-photos-slider .owl-dots { display: none !important; }

.event-desc { font-size: .97rem; line-height: 1.9; color: #444; }

/* Sidebar verde */
.sidebar-widget { background: var(--verde); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.5rem; }
.sidebar-widget-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: rgba(255,255,255,.7); margin-bottom: 1rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.2); }
.sidebar-link { display: block; font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.85); padding: .35rem 0; border-bottom: 1px solid rgba(255,255,255,.12); transition: var(--trans); }
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: #fff; padding-left: .4rem; }
.sidebar-link.active { color: #fff; font-weight: 800; }

/* Correlati — stesso stile nav news */
.related-carousel { position: relative; }
.related-carousel .ev-card-img { height: 160px; }
.related-carousel .owl-nav button {
    position: absolute; top: 80px; transform: translateY(-50%);
    background: rgba(0,0,0,.45) !important; color: #fff !important;
    width: 34px; height: 34px; border-radius: 50% !important;
    font-size: .82rem !important; line-height: 34px !important; text-align: center;
    border: none !important; transition: var(--trans); z-index: 10;
}
.related-carousel .owl-nav button:hover { background: var(--verde) !important; }
.related-carousel .owl-prev { left: 6px; }
.related-carousel .owl-next { right: 6px; }
.related-carousel .owl-dots { display: none !important; }

/* ============================================================ FOOTER ============================================================ */
.footer { background: var(--nero); color: #aaa; padding: 3.5rem 0 0; margin-top: 4rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-brand { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: .6rem; }
.footer-brand em { color: var(--verde); font-style: normal; }
.footer-desc { font-size: .84rem; color: #888; line-height: 1.75; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: .7rem; }
.footer-social a { width: 34px; height: 34px; background: rgba(255,255,255,.07); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #aaa; font-size: .82rem; transition: var(--trans); }
.footer-social a:hover { background: var(--verde); color: #fff; }
.footer-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: #fff; margin-bottom: .9rem; padding-bottom: .5rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-links li { margin-bottom: .35rem; }
.footer-links a { font-size: .84rem; color: #888; transition: var(--trans); }
.footer-links a:hover { color: var(--verde); }
.newsletter-row { display: flex; gap: .5rem; margin-top: .7rem; }
.newsletter-row input { flex: 1; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 20px; padding: .48rem .9rem; color: #fff; font-family: inherit; font-size: .83rem; outline: none; }
.newsletter-row input::placeholder { color: #555; }
.newsletter-row button { background: var(--verde); color: #fff; border: none; border-radius: 20px; padding: .48rem 1.1rem; font-family: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; transition: var(--trans); }
.newsletter-row button:hover { background: var(--verde-dark); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 1.2rem 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .78rem; color: #555; }
.footer-bottom a { color: var(--verde); }

/* ============================================================ ADMIN ============================================================ */
.admin-login-page { min-height: 100vh; background: #1a1a2e; display: flex; align-items: center; justify-content: center; }
.admin-login-box { background: #fff; border-radius: var(--radius); padding: 2.5rem 2.8rem; width: 100%; max-width: 380px; box-shadow: 0 10px 50px rgba(0,0,0,.35); }
.admin-login-box h1 { font-size: 1.3rem; font-weight: 800; text-align: center; margin-bottom: .3rem; }
.admin-login-box .sub { text-align: center; color: var(--grigio); font-size: .83rem; margin-bottom: 2rem; }
.form-label { display: block; font-size: .73rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #555; margin-bottom: .35rem; }
.form-input { display: block; width: 100%; padding: .6rem .9rem; border: 1.5px solid var(--grigio-mid); border-radius: var(--radius); font-family: inherit; font-size: .93rem; outline: none; transition: var(--trans); box-sizing: border-box; }
.form-input:focus { border-color: var(--verde); }
.form-group { margin-bottom: 1.1rem; }
.btn-login { display: block; width: 100%; background: var(--verde); color: #fff; border: none; border-radius: var(--radius); padding: .72rem; font-family: inherit; font-size: .88rem; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: var(--trans); margin-top: .5rem; }
.btn-login:hover { background: var(--verde-dark); }
.alert-err { background: #fdecea; color: #c62828; padding: .65rem .9rem; border-radius: var(--radius); font-size: .85rem; margin-bottom: 1rem; }
.admin-wrap { font-family: 'Raleway', sans-serif; background: #f4f6f8; min-height: 100vh; }
.admin-bar { background: var(--verde); color: #fff; padding: .9rem 2rem; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; }
.admin-bar-brand { font-weight: 800; font-size: 1rem; color: #fff; }
.admin-bar-links { display: flex; gap: 1.2rem; }
.admin-bar-links a { color: rgba(255,255,255,.85); font-size: .82rem; text-decoration: none; }
.admin-bar-links a:hover { color: #fff; }
.admin-body { max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem 4rem; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2rem; }
.stat-box { background: #fff; border-radius: var(--radius); padding: 1.2rem 1.5rem; box-shadow: var(--shadow); }
.stat-box .num { font-size: 2rem; font-weight: 800; color: var(--verde); }
.stat-box .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--grigio); margin-top: .15rem; }
.admin-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.2rem; flex-wrap: wrap; gap: .8rem; }
.btn-admin { background: var(--verde); color: #fff; padding: .55rem 1.2rem; border-radius: var(--radius); font-size: .8rem; font-weight: 700; text-transform: uppercase; text-decoration: none; transition: var(--trans); display: inline-block; }
.btn-admin:hover { background: var(--verde-dark); color: #fff; }
.btn-admin.dark { background: #1a1a2e; }
.btn-admin.dark:hover { background: #2a2a4e; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.admin-table thead tr { background: var(--verde); color: #fff; }
.admin-table th { padding: .8rem 1rem; text-align: left; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.admin-table td { padding: .75rem 1rem; font-size: .85rem; border-bottom: 1px solid #f0f0f0; vertical-align: middle; }
.admin-table tbody tr:hover { background: #f0faf6; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.badge { display: inline-block; padding: .2rem .55rem; border-radius: 20px; font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.badge-prosa    { background: #e8f5e9; color: #2e7d32; }
.badge-opera    { background: #fce4ec; color: #ad1457; }
.badge-danza    { background: #e3f2fd; color: #1565c0; }
.badge-musica   { background: #fff3e0; color: #e65100; }
.badge-cinema   { background: #ede7f6; color: #4527a0; }
.badge-festival { background: #e0f7fa; color: #006064; }
.badge-mostre   { background: #f3e5f5; color: #6a1b9a; }
.badge-pub   { background: #e8f5e9; color: #2e7d32; }
.badge-bozza { background: #f5f5f5; color: #999; border: 1px solid #ddd; }
.action-link { font-size: .78rem; font-weight: 700; text-decoration: none; margin-right: .6rem; }
.action-link.edit { color: var(--verde-dark); }
.action-link.del { color: #e53935; }
.admin-flash-ok  { background: #e8f5e9; color: #2e7d32; padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .88rem; }
.admin-flash-err { background: #fdecea; color: #c62828; padding: .7rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: .88rem; }
.admin-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; box-shadow: var(--shadow); margin-bottom: 1.5rem; }
.admin-card-title { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--grigio); margin-bottom: 1.2rem; padding-bottom: .5rem; border-bottom: 1px solid #eee; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 180px; }
.check-row { display: flex; gap: 2rem; flex-wrap: wrap; padding: .4rem 0; }
.check-item { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .88rem; font-weight: 600; }
.check-item input { width: 15px; height: 15px; accent-color: var(--verde); cursor: pointer; }
.img-thumb { max-width: 180px; border-radius: var(--radius); margin-top: .4rem; }
.btn-save { background: var(--verde); color: #fff; border: none; border-radius: var(--radius); padding: .65rem 2rem; font-family: inherit; font-size: .88rem; font-weight: 700; text-transform: uppercase; cursor: pointer; transition: var(--trans); }
.btn-save:hover { background: var(--verde-dark); }
.btn-cancel { background: none; border: 1.5px solid var(--grigio-mid); color: var(--grigio); border-radius: var(--radius); padding: .65rem 1.3rem; font-family: inherit; font-size: .88rem; text-decoration: none; margin-right: .5rem; display: inline-block; }
.btn-cancel:hover { background: #f0f0f0; }
.form-select { display: block; width: 100%; padding: .55rem .8rem; border: 1.5px solid var(--grigio-mid); border-radius: var(--radius); font-family: inherit; font-size: .9rem; outline: none; background: #fff; cursor: pointer; }
textarea.form-input { min-height: 130px; resize: vertical; }

/* ============================================================ RESPONSIVE ============================================================ */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .primo-piano-wrap { grid-template-columns: 1fr; }
    .primo-piano-left .pp-item { height: 300px; }
    .primo-piano-right { height: auto; grid-template-rows: 200px 200px; }
}
@media (max-width: 768px) {
    :root { --navbar-h: 58px; }
    .navbar-menu {
        display: none; flex-direction: column; position: absolute;
        top: 100%; left: 0; right: 0; background: var(--verde);
        border-top: 1px solid var(--verde-dark); padding: 1rem;
        box-shadow: 0 8px 20px rgba(0,0,0,.15); gap: .3rem; z-index: 999;
    }
    .navbar-menu.open { display: flex; }
    .navbar-menu a { color: #fff; }
    .navbar-menu a:hover, .navbar-menu a.active { background: var(--verde-dark); color: #fff !important; }
    .navbar-toggle { display: flex; }
    .hero-slide { height: 320px; }
    .event-detail-hero { height: 300px; }
    .hero-slide-body h1 { font-size: 1.4rem; }
    .home-grid { grid-template-columns: 1fr; }
    .home-grid-right { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
    .home-grid-right .ev-featured { min-height: 200px; }
    .four-grid { grid-template-columns: repeat(2, 1fr); }
    .cal-grid { grid-template-columns: repeat(2, 1fr); }
    .primo-piano-wrap { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .event-detail-wrap { grid-template-columns: 1fr !important; }
    .event-attrs { gap: 1rem; }
    .event-photos-slider .owl-item img { height: 240px; }
}
@media (max-width: 480px) {
    .home-grid-right { grid-template-columns: 1fr; }
    .four-grid { grid-template-columns: 1fr; }
    .cal-grid { grid-template-columns: 1fr; }
}
