/* ===========================
   MERCATINO ITALIANCLICK – PALETTE RILASSANTE PREMIUM
   Grafite – Oro Satinato – Verde Soft – Crema
   =========================== */

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #111111; /* nero grafite morbido */
    color: #D4C27A; /* oro satinato */
}

/* HEADER */
.header {
    background: linear-gradient(90deg, #111111 0%, #1E1E1E 60%, #7CFFB2 100%);
    color: #D4C27A;
    padding: 25px;
    text-align: center;
    border-bottom: 1px solid #D4C27A;
    box-shadow: 0 4px 12px rgba(124, 255, 178, 0.25);
}

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

.header p {
    color: #F5F5F0;
    margin-top: 8px;
}

/* MENU */
.menu {
    display: flex;
    justify-content: space-around;
    background: #1E1E1E;
    padding: 14px;
    border-bottom: 1px solid #D4C27A;
}

.menu a {
    text-decoration: none;
    color: #D4C27A;
    font-weight: 600;
    transition: 0.3s ease;
}

.menu a:hover {
    color: #7CFFB2;
    text-shadow: 0 0 8px #7CFFB2;
}

/* CATEGORIE */
.categorie {
    padding: 30px;
    text-align: center;
}

.categorie h2 {
    color: #D4C27A;
    margin-bottom: 20px;
    font-size: 24px;
}

.grid-categorie {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.cat-card {
    background: #1E1E1E;
    color: #D4C27A;
    padding: 22px;
    border-radius: 10px;
    border: 1px solid #2A2A2A;
    box-shadow: 0 0 10px rgba(124, 255, 178, 0.15);
    transition: 0.3s ease;
    font-weight: 600;
}

.cat-card:hover {
    background: #7CFFB2;
    color: #111111;
    box-shadow: 0 0 20px rgba(124, 255, 178, 0.4);
    transform: scale(1.05);
}

/* CTA */
.cta {
    text-align: center;
    margin: 40px 0;
}

.cta-btn {
    background: linear-gradient(90deg, #D4C27A 0%, #7CFFB2 100%);
    color: #111111;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    transition: 0.3s ease;
    display: inline-block;
}

.cta-btn:hover {
    background: linear-gradient(90deg, #7CFFB2 0%, #D4C27A 100%);
    box-shadow: 0 0 20px #7CFFB2;
    transform: scale(1.08);
}

/* ===========================
   ULTIMI ANNUNCI – CARD PREMIUM
   =========================== */

.ultimi-annunci {
    padding: 40px 20px;
    text-align: center;
}

.ultimi-annunci h2 {
    color: #D4C27A;
    font-size: 26px;
    margin-bottom: 25px;
    font-weight: 700;
}

/* Griglia responsive */
.ultimi-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}

/* Card singola */
.ultimo-card {
    background: #1E1E1E;
    border: 1px solid #2A2A2A;
    border-radius: 12px;
    padding: 15px;
    color: #D4C27A;
    box-shadow: 0 0 12px rgba(124, 255, 178, 0.15);
    transition: 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ultimo-card:hover {
    background: #7CFFB2;
    color: #111111;
    transform: translateY(-6px);
    box-shadow: 0 0 22px rgba(124, 255, 178, 0.45);
}

/* IMMAGINI INTERE (VERTICALI E ORIZZONTALI) SENZA TAGLI */
.ultimo-card img {
    width: 100%;
    height: auto; /* Mantiene le proporzioni naturali dell'immagine */
    max-height: 320px; /* Evita che foto verticali troppo lunghe deformino la card */
    object-fit: contain; /* Mostra l'intera foto senza tagliare nulla */
    background: #141414; /* Sfondo scuro per riempire eventuali spazi vuoti laterali */
    border-radius: 10px;
    border: 1px solid #2A2A2A;
    margin-bottom: 12px;
    display: block;
}

/* Titolo */
.ultimo-card h3 {
    font-size: 18px;
    margin-bottom: 6px;
    font-weight: 600;
}

/* Prezzo */
.ultimo-card .prezzo {
    color: #7CFFB2;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Pulsante */
.ultimo-card a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 999px;
    background: #2E2E2E;
    color: #D4C27A;
    border: 1px solid #D4C27A;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s ease;
}

.ultimo-card a:hover {
    background: #D4C27A;
    color: #111111;
    box-shadow: 0 0 18px rgba(124, 255, 178, 0.45);
}

/* ADMIN ACCESS BUTTON */
.admin-access {
    text-align: center;
    margin-top: 40px;
}

.btn-admin {
    background: linear-gradient(135deg, var(--gold, #D4C27A) 0, var(--gold-soft, #F5D76E) 60%);
    color: #050608;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.45);
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-admin:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 22px rgba(212, 175, 55, 0.65);
}

.btn-admin:active {
    transform: scale(0.97);
    box-shadow: 0 0 18px rgba(53, 255, 138, 0.45);
}

/* CARD INFO SPEDIZIONI */
.card-info-spedizioni {
    background: #111;
    border: 2px solid #d4af37;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    width: 260px;
    margin: 20px auto;
    box-shadow: 0 0 12px rgba(0,0,0,0.4);
    transition: transform 0.2s ease;
}

.card-info-spedizioni:hover {
    transform: scale(1.03);
}

.card-info-icon {
    width: 60px;
    margin-bottom: 10px;
}

.card-info-spedizioni h3 {
    color: #d4af37;
    margin-bottom: 8px;
}

.card-info-spedizioni p {
    color: #ccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.btn-info {
    display: inline-block;
    padding: 8px 16px;
    background: #d4af37;
    color: #000;
    font-weight: bold;
    border-radius: 6px;
    text-decoration: none;
}

.btn-info:hover {
    background: #f5d76e;
}

/* SLOGAN BUBBLE */
.slogan-bubble {
    max-width: 380px;
    margin: 25px auto;
    background: #111217;
    border: 2px solid #d4af37;
    border-radius: 18px;
    padding: 18px 22px;
    color: #d4af37;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    position: relative;
    box-shadow: 0 0 18px rgba(212,175,55,0.25);
    line-height: 1.4;
}

/* Codina della nuvoletta */
.slogan-bubble::after {
    content: "";
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-top: 18px solid #111217;
    filter: drop-shadow(0 -2px 3px rgba(212,175,55,0.3));
}

.slogan-bubble span {
    color: #ccc;
    font-size: 15px;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 768px) {
    .grid-categorie {
        grid-template-columns: 1fr;
        max-width: 90%;
    }

    .header h1 {
        font-size: 26px;
    }

    .cta-btn {
        width: 90%;
    }

    .ultimi-container {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .ultimi-container {
        grid-template-columns: 1fr;
    }
}