/* Home Olio - template page-templates/template-home-olio.php */
.eo-home {
	--eo-ink: #1d1c18;
	--eo-ink-soft: #4a473f;
	--eo-cream: #f7f2e7;
	--eo-paper: #fffdf8;
	--eo-gold: #b8943d;
	--eo-gold-light: #dac071;
	--eo-olive: #5d6b2f;
	--eo-line: #e4dccb;
	--eo-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
	color: var(--eo-ink);
	background: var(--eo-paper);
	font-size: 17px;
	line-height: 1.65;
}
.eo-home *, .eo-home *::before, .eo-home *::after { box-sizing: border-box; }
.eo-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.eo-narrow { max-width: 760px; }
.eo-center { text-align: center; }
.eo-home section { padding: 72px 0; }
.eo-home h1, .eo-home h2, .eo-home h3 { font-family: var(--eo-serif); color: var(--eo-ink); font-weight: 600; letter-spacing: -0.01em; }
.eo-home h1 { font-size: clamp(32px, 4.6vw, 54.4px); line-height: 1.08; margin: 0 0 20px; }
.eo-title { font-size: clamp(27.2px, 3.2vw, 38.4px); line-height: 1.15; text-align: center; margin: 0 0 40px; }
.eo-title--left { text-align: left; margin-bottom: 24px; }
.eo-eyebrow, .eo-tag { font-size: 12.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--eo-gold); margin: 0 0 14px; }
.eo-lead { font-size: 18.4px; color: var(--eo-ink-soft); max-width: 36em; }
.eo-link { color: var(--eo-gold); font-weight: 600; text-decoration: none; }
.eo-link:hover { text-decoration: underline; }

/* Pulsanti */
.eo-btn { display: inline-block; background: var(--eo-ink); color: #fff !important; border: 2px solid var(--eo-ink); border-radius: 999px; padding: 13px 26px; font-weight: 600; font-size: 15.7px; line-height: 1.2; text-decoration: none; transition: background .2s, color .2s, border-color .2s; text-align: center; }
.eo-btn:hover { background: var(--eo-gold); border-color: var(--eo-gold); }
.eo-btn--ghost { background: transparent; color: var(--eo-ink) !important; }
.eo-btn--ghost:hover { color: #fff !important; }
.eo-btn--small { padding: 8px 16px; font-size: 14.1px; }
.eo-btn:focus-visible, .eo-link:focus-visible, .eo-faq summary:focus-visible { outline: 3px solid var(--eo-gold-light); outline-offset: 3px; }

/* Avvisi WooCommerce (es. "aggiunto al carrello") */
.eo-notices:empty { display: none; }
.eo-notices { padding-top: 20px; }

/* Apertura */
.eo-hero { background: var(--eo-cream); padding: 56px 0 72px !important; }
.eo-hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.eo-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.eo-hero__award { margin: 24px 0 0; font-weight: 600; color: var(--eo-ink-soft); }
.eo-hero__img { margin: 0; }
.eo-hero__img img { width: 100%; height: 560px; object-fit: cover; border-radius: 18px; display: block; }

/* Offerte */
.eo-offerte__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.eo-offerta { background: var(--eo-cream); border: 1px solid var(--eo-line); border-radius: 18px; padding: 36px; display: flex; flex-direction: column; }
.eo-offerta h3 { font-size: 30.4px; margin: 0 0 12px; }
.eo-offerta > p { color: var(--eo-ink-soft); }
.eo-offerta .eo-link { margin-top: auto; padding-top: 12px; }
.eo-offerta--dark { background: var(--eo-ink); border-color: var(--eo-ink); color: #eee7d6; }
.eo-offerta--dark h3 { color: #fff; }
.eo-offerta--dark > p { color: #d9d1bd; }
.eo-offerta--dark .eo-tag, .eo-offerta--dark .eo-link { color: var(--eo-gold-light); }
.eo-offerta--dark .eo-formato { border-color: #3a3830; }
.eo-offerta--dark .eo-formato__prezzo, .eo-offerta--dark .eo-formato__nome { color: #fff; }
.eo-offerta--dark .eo-btn { background: var(--eo-gold-light); border-color: var(--eo-gold-light); color: var(--eo-ink) !important; }
.eo-offerta--dark .eo-btn:hover { background: #fff; border-color: #fff; }

.eo-formati { list-style: none; margin: 20px 0; padding: 0; }
.eo-formato { display: grid; grid-template-columns: 1fr auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--eo-line); }
.eo-formato:first-child { border-top: 1px solid var(--eo-line); }
.eo-formato__nome { font-weight: 600; }
.eo-formato__prezzo { white-space: nowrap; }
.eo-formato__prezzo del { opacity: .6; margin-right: 6px; }
.eo-formato__prezzo ins { text-decoration: none; font-weight: 700; }
.eo-formato__esaurito { font-size: 13.6px; color: #8a8579; }
.eo-formato.is-out .eo-formato__nome { opacity: .55; }

/* Formati singoli */
.eo-formati-sec { background: var(--eo-paper); }
.eo-prodotti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.eo-prodotto { background: #fff; border: 1px solid var(--eo-line); border-radius: 14px; padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.eo-prodotto__img img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 10px; }
.eo-prodotto h3 { font-size: 17.6px; margin: 14px 0 6px; line-height: 1.3; }
.eo-prodotto h3 a { color: inherit; text-decoration: none; }
.eo-prodotto__prezzo { margin: 0 0 14px; }
.eo-prodotto__prezzo ins { text-decoration: none; font-weight: 700; }
.eo-prodotto .eo-btn, .eo-prodotto .eo-formato__esaurito { margin-top: auto; }

/* Perche' il nostro olio */
.eo-motivi { background: var(--eo-cream); }
.eo-motivi__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.eo-motivi__img { margin: 0; }
.eo-motivi__img img { width: 100%; height: auto; border-radius: 18px; display: block; }
.eo-motivi__list { list-style: none; padding: 0; margin: 0; }
.eo-motivi__list li { padding: 12px 0 12px 30px; position: relative; border-bottom: 1px solid var(--eo-line); color: var(--eo-ink-soft); }
.eo-motivi__list li::before { content: ""; position: absolute; left: 0; top: 21px; width: 12px; height: 12px; border-radius: 50% 0; background: var(--eo-olive); transform: rotate(-45deg); }
.eo-motivi__list strong { color: var(--eo-ink); }
.eo-cultivar { font-size: 14.4px; color: var(--eo-ink-soft); margin-top: 18px; }

/* Chi siamo */
.eo-chi p { font-size: 17.9px; text-align: center; color: var(--eo-ink-soft); }

/* Come funziona */
.eo-plus { background: var(--eo-ink); color: #d9d1bd; }
.eo-plus__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.eo-plus h3 { color: var(--eo-gold-light); font-size: 19.2px; margin: 0 0 8px; }
.eo-plus p { margin: 0; font-size: 15.2px; }

/* FAQ */
.eo-faq details { border-bottom: 1px solid var(--eo-line); padding: 4px 0; }
.eo-faq summary { cursor: pointer; font-weight: 600; padding: 14px 32px 14px 0; list-style: none; position: relative; }
.eo-faq summary::-webkit-details-marker { display: none; }
.eo-faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 22.4px; color: var(--eo-gold); }
.eo-faq details[open] summary::after { content: "–"; }
.eo-faq details p { margin: 0 0 16px; color: var(--eo-ink-soft); }

/* Contatti */
.eo-contatti { background: var(--eo-cream); }
.eo-contatti__grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.eo-contatti address { font-style: normal; background: #fff; border: 1px solid var(--eo-line); border-radius: 14px; padding: 28px; }
.eo-contatti address a { color: var(--eo-gold); }

/* Blog */
.eo-blog__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.eo-post { display: block; color: var(--eo-ink); text-decoration: none; border-radius: 14px; overflow: hidden; background: var(--eo-cream); }
.eo-post img { width: 100%; height: 200px; object-fit: cover; display: block; }
.eo-post span { display: block; padding: 16px 18px; font-family: var(--eo-serif); font-weight: 600; font-size: 17.3px; line-height: 1.3; }
.eo-post:hover span { color: var(--eo-gold); }

/* Responsive */
@media (max-width: 960px) {
	.eo-hero__grid, .eo-offerte__grid, .eo-motivi__grid, .eo-contatti__grid { grid-template-columns: 1fr; gap: 32px; }
	.eo-hero__img img { height: 380px; }
	.eo-prodotti, .eo-blog__grid { grid-template-columns: repeat(2, 1fr); }
	.eo-plus__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.eo-home { font-size: 16px; }
	.eo-home section { padding: 52px 0; }
	.eo-wrap { padding: 0 16px; }
	.eo-offerta { padding: 24px 18px; }
	.eo-formato { grid-template-columns: 1fr auto; }
	.eo-formato .eo-btn, .eo-formato .eo-formato__esaurito { grid-column: 1 / -1; justify-self: stretch; }
	.eo-prodotti, .eo-blog__grid, .eo-plus__grid { grid-template-columns: 1fr; }
	.eo-hero__cta .eo-btn { width: 100%; }
	.eo-hero__img img { height: 300px; }
}

/* Il tema imposta dimensioni e colori propri su p, prezzi e titoli: li riallineo qui. */
.eo-home .amount, .eo-home .price, .eo-home ins .amount { color: inherit; }
.eo-offerta--dark .eo-formato__prezzo del { color: #bdb4a0; }
.eo-offerta__img { width: 100%; height: 260px; object-fit: cover; border-radius: 12px; margin: 8px 0 4px; display: block; }

/* Chi siamo / Contatti */
.eo-home section p + p { margin-top: 0; }
.eo-img--portrait { object-position: center 30%; }
.eo-galleria { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.eo-galleria img { width: 100%; height: 260px; object-fit: cover; border-radius: 14px; display: block; }
.eo-cta { text-align: center; max-width: 760px; }
.eo-cta h2 { color: #fff; font-size: clamp(27px, 3.2vw, 38px); margin: 0 0 12px; }
.eo-cta .eo-hero__cta, .eo-hero__cta--center { justify-content: center; }
.eo-lead--center { margin-left: auto; margin-right: auto; }
.eo-btn--gold { background: var(--eo-gold-light); border-color: var(--eo-gold-light); color: var(--eo-ink) !important; }
.eo-btn--gold:hover { background: #fff; border-color: #fff; }
.eo-btn--ghost-light { background: transparent; border-color: #d9d1bd; color: #fff !important; }
.eo-btn--ghost-light:hover { background: #fff; border-color: #fff; color: var(--eo-ink) !important; }
.eo-recapiti { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.eo-recapito { background: var(--eo-cream); border: 1px solid var(--eo-line); border-radius: 14px; padding: 24px; }
.eo-recapito h3 { font-size: 19px; margin: 0 0 8px; }
.eo-recapito p { margin: 0; overflow-wrap: anywhere; }
.eo-recapito a, .eo-note a { color: var(--eo-gold); font-weight: 600; text-decoration: none; }
.eo-note { font-size: 14px; color: var(--eo-ink-soft); margin-top: 6px !important; }
@media (max-width: 960px) {
	.eo-recapiti { grid-template-columns: repeat(2, 1fr); }
	.eo-galleria { grid-template-columns: 1fr 1fr; }
	.eo-galleria img:last-child { display: none; }
}
@media (max-width: 600px) {
	.eo-recapiti, .eo-galleria { grid-template-columns: 1fr; }
	.eo-galleria img { height: 220px; }
	.eo-galleria img:last-child { display: block; }
}
.eo-motivi__img .eo-img--olive { aspect-ratio: 4 / 3; object-fit: cover; }
.eo-hero__img .eo-img--ritratto { object-position: center 18%; }
