/*
Theme Name: IdealCaffè Child
Template: hello-elementor
Version: 1.0.0
Text Domain: idealcaffe-child
*/







/* --- RESET BASE --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500&family=Montserrat:wght@600;700;800&display=swap');
:root { --c-main: #3b2f22; --c-gold: #b59b5e; --c-bg: #fbfbf9; }

body.single-product { background-color: var(--c-bg) !important; font-family: 'Inter', sans-serif; }
.ic-main-wrapper { padding: 60px 0; }
.ic-container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* --- LAYOUT COLONNE (Sticky) --- */
.ic-product-layout { display: flex; flex-direction: column; gap: 40px; }
@media (min-width: 1024px) {
    .ic-product-layout { flex-direction: row; align-items: flex-start; gap: 60px; }
    .ic-gallery-side { width: 50%; position: sticky; top: 120px; z-index: 10; }
    .ic-info-side { width: 50%; }
}

/* --- IMMAGINE & ZOOM --- */
.ic-zoom-wrapper { position: relative; overflow: hidden; border-radius: 4px; background: #fff; cursor: crosshair; }
.ic-main-img { width: 100%; display: block; transition: transform 0.1s; }

/* --- TESTI & INFO --- */
.ic-sku-meta { font-size: 11px; text-transform: uppercase; color: #999; display: block; margin-bottom: 10px; letter-spacing: 1px; }
.ic-main-title { font-family: 'Montserrat', sans-serif; font-size: 36px; text-transform: uppercase; color: var(--c-main); margin: 0 0 15px 0; line-height: 1.1; }
.ic-price-tag { font-family: 'Montserrat', sans-serif; font-size: 26px; font-weight: 700; color: var(--c-gold); margin-bottom: 20px; }
.ic-excerpt { font-size: 15px; color: #555; line-height: 1.6; margin-bottom: 30px; border-bottom: 1px solid #eee; padding-bottom: 30px; }

/* ==================================================
   FIX TOTALE PULSANTE (CSS GRID SYSTEM)
   ================================================== */
.ic-cart-fix-wrapper { margin-bottom: 40px; }

/* Forziamo il form a diventare una griglia a 2 colonne */
.ic-cart-fix-wrapper form.cart {
    display: grid !important;
    grid-template-columns: 80px 1fr !important; /* 80px fisso per numero, resto per bottone */
    gap: 15px !important;
    align-items: end !important; /* Allinea in basso */
    width: 100% !important;
    max-width: 450px !important;
}

/* Gestione "Disponibili" - Forziamolo sopra */
.ic-cart-fix-wrapper .stock { grid-column: 1 / -1; margin-bottom: 10px !important; font-size: 14px; color: #55555; font-weight: 500; text-transform: uppercase; }

/* Campo Quantità */
.ic-cart-fix-wrapper .quantity { width: 100% !important; margin: 0 !important; }
.ic-cart-fix-wrapper .quantity input.qty {
    width: 100% !important; height: 54px !important;
    border: 1px solid #ccc !important; border-radius: 4px !important;
    font-family: 'Montserrat', sans-serif; font-weight: 700; color: var(--c-main);
    padding: 0 !important; text-align: center;
}

/* Bottone */
.ic-cart-fix-wrapper button[type="submit"] {
    width: 100% !important; height: 54px !important;
    background: var(--c-main) !important; color: #fff !important;
    font-family: 'Montserrat', sans-serif !important; font-weight: 700; text-transform: uppercase;
    border-radius: 4px !important; border: 1px solid var(--c-main) !important;
    transition: 0.3s;
}
.ic-cart-fix-wrapper button[type="submit"]:hover { background: var(--c-gold) !important; border-color: var(--c-gold) !important; transform: translateY(-2px); }

/* --- BADGES & ACCORDION --- */
.ic-badges-section { display: flex; gap: 15px; margin-bottom: 40px; padding-top: 20px; border-top: 1px solid #eee; }
.ic-badge-item { flex: 1; text-align: center; }
.ic-badge-icon { width: 30px; fill: var(--c-gold); margin-bottom: 8px; }
.ic-badge-item h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--c-main); margin: 0; }
.ic-badge-item span { font-size: 13px; color: #999; }

/* Accordion */
.ic-accordion-section { border-top: 1px solid #eee; }
.ic-acc-item { border-bottom: 1px solid #eee; }
.ic-acc-item summary { padding: 18px 0; font-weight: 700; text-transform: uppercase; color: var(--c-main); cursor: pointer; display: flex; justify-content: space-between; font-size: 13px; list-style: none; }
.ic-acc-item summary::-webkit-details-marker { display: none; }
.ic-acc-item summary::after { content: '+'; font-size: 20px; color: var(--c-gold); }
.ic-acc-item[open] summary::after { content: '-'; }
.ic-acc-content { padding-bottom: 20px; font-size: 16px; color: #666; line-height: 1.6; }

/* Barre */
.ic-bar { display: flex; align-items: center; margin-bottom: 10px; }
.ic-bar label { width: 90px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.ic-tr { flex-grow: 1; height: 4px; background: #eee; margin: 0 15px; }
.ic-fi { height: 100%; background: var(--c-gold); }
.ic-bar span { font-size: 12px; font-weight: 700; color: var(--c-gold); }


/* ==================================================
   FIX TOTALE CORRELATI (CUSTOM GRID)
   ================================================== */
.ic-related-wrapper { margin-top: 80px; padding-top: 50px; border-top: 1px solid #e5e5e5; }
.ic-rel-title { font-family: 'Montserrat', sans-serif; font-size: 24px; text-transform: uppercase; color: var(--c-main); margin-bottom: 30px; }

/* La Griglia (Indistruttibile) */
.ic-custom-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Colonne Obbligatorie */
    gap: 30px;
}
@media (max-width: 900px) { .ic-custom-grid { grid-template-columns: repeat(2, 1fr); gap: 15px; } }

/* La Card Custom */
.ic-card {
    background: #fff; border: 1px solid #f0f0f0; border-radius: 12px;
    padding: 20px; text-align: center;
    display: flex; flex-direction: column; justify-content: space-between;
    transition: 0.3s;
}
.ic-card:hover { border-color: var(--c-gold); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.08); }

.ic-card-link { text-decoration: none !important; color: inherit; display: block; }
.ic-card-img-wrap { padding: 20px; margin-bottom: 15px; }
.ic-card-img-wrap img { width: 100%; height: auto; object-fit: contain; mix-blend-mode: multiply; display: block; }

.ic-card-title { font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--c-main); margin: 0 0 10px 0; line-height: 1.4; min-height: 38px; }
.ic-card-price { display: block; font-size: 15px; font-weight: 700; color: var(--c-gold); margin-bottom: 20px; }
.ic-card-price del { font-size: 12px; color: #ccc; margin-right: 5px; }

/* Bottone Card */
.ic-card-btn {
    display: block; width: 100%; padding: 12px 0;
    background: var(--c-main); color: #fff;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    border-radius: 50px; text-decoration: none; transition: 0.3s;
}
.ic-card-btn:hover { background: var(--c-gold); color: #fff; }


@media(max-width:800px){
	.titolo-hero-gold{font-size:50px;}
}



input#ideal-email {
    border: none;
}