/* Nuovo stile Oliveto Spiavento (palette scatola Bag in Box): oliva #9a994b, verde scuro #0a410e, oro #d8af00 */

/* Header verde scuro con logo giallo: quadrotti 2x2 agli angoli (desktop), due quadrotti ai lati del logo (mobile) */
@media (min-width: 981px) {
  #rec4802903603 .t-menu-base { position: relative; }
  #rec4802903603 .t-menu-base::before,
  #rec4802903603 .t-menu-base::after {
    content: ''; position: absolute; top: 0; width: 100px; height: 100px; pointer-events: none;
    background: url("https://static.tildacdn.com/tild6330-6666-4533-a637-373837313766/quadrotti_oliveto.png") no-repeat 0 0 / 100px 100px;
  }
  #rec4802903603 .t-menu-base::before { left: 0; }
  #rec4802903603 .t-menu-base::after { right: 0; transform: scaleX(-1); }
  #rec4802903603 .t-menu-base__rightwrapper { margin-right: 32px; }
}
@media (max-width: 980px) {
  #rec4802903603 .t-menu-base__mobile-menu { position: relative; }
  #rec4802903603 .t-menu-base__mobile-menu::before,
  #rec4802903603 .t-menu-base__mobile-menu::after {
    content: ''; position: absolute; top: 50%; width: 34px; height: 34px; margin-top: -17px; pointer-events: none; z-index: 1;
    background: url("https://static.tildacdn.com/tild6330-6666-4533-a637-373837313766/quadrotti_oliveto.png") no-repeat 0 0 / 68px 68px;
  }
  #rec4802903603 .t-menu-base__mobile-menu::before { left: calc(50% - 62px - 12px - 34px); background-position: 0 0; }
  #rec4802903603 .t-menu-base__mobile-menu::after { left: calc(50% + 62px + 12px); background-position: -34px -34px; }
  #rec4802903603 .tmenu-mobile__container .t-menuwidgeticons__wrapper { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); margin: 0; }
  #rec4802903603 .tmenu-mobile__container .t-menu-burger { margin-left: auto; }
}

/* Footer: link leggibili su sfondo oliva */
#rec288649445 .t977__text a { color: #0a410e !important; text-decoration: underline; }

/* Fascia olive e foglie sopra footer e recensioni */
#rec288649445,
.t-rec[data-record-type="528"] {
  border-top: 48px solid transparent;
  background-image: url("https://static.tildacdn.com/tild3632-3866-4464-b966-613363663065/fascia_olive_foglie.png");
  background-repeat: repeat-x;
  background-size: auto 48px;
  background-position: left top;
  background-origin: border-box;
}
.t-rec[data-record-type="528"] { padding-top: 45px !important; }
.t-rec[data-record-type="528"] .t-section__title { color: #0a410e !important; }

/* Pulsanti principali (carrello, finestra prodotto, moduli, ricette): verde scuro */
.t778 .t-btnflex_type_button,
.t706 .t-btnflex_type_button,
.t-popup .t-btnflex_type_button,
.t774 .t-btnflex_type_button,
.t-form .t-submit {
  background-color: #0a410e !important;
  color: #ffffff !important;
  border-color: #0a410e !important;
}
.t778 .t-btnflex_type_button:hover,
.t706 .t-btnflex_type_button:hover,
.t-popup .t-btnflex_type_button:hover,
.t774 .t-btnflex_type_button:hover,
.t-form .t-submit:hover {
  background-color: #d8af00 !important;
  color: #0a410e !important;
  border-color: #d8af00 !important;
}

/* Schede prodotto (solo nella griglia): quantita' + "Aggiungi al carrello" pieno, sotto il link "Dettagli" che apre la scheda */
#allrecords .t778__col .t-store__card__btns-wrapper--quantity { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
#allrecords .t778__col .t778__btn:not(.t778__btn_second) {
  order: 3; width: 100%; margin: 2px 0 0 !important;
  background-color: transparent !important; color: #0a410e !important; border: 0 !important; box-shadow: none !important;
  text-decoration: underline; text-underline-offset: 3px; min-height: 28px !important;
}
#allrecords .t778__col .t778__btn:not(.t778__btn_second):hover { color: #9a994b !important; background-color: transparent !important; }
#allrecords .t778__col .t778__btn_second {
  background-color: #0a410e !important; color: #ffffff !important; border: 1px solid #0a410e !important;
}
#allrecords .t778__col .t778__btn_second:hover { background-color: #d8af00 !important; color: #0a410e !important; border-color: #d8af00 !important; }
.t778 .t778__imgwrapper, .t778 .t778__title { cursor: pointer; }

/* Inviti all'azione (ricettario): oro */
.t580 .t-btnflex_type_button { background-color: #d8af00 !important; color: #0a410e !important; }

/* Bollini sulle schede prodotto */
.t778__mark { background-color: #d8af00 !important; color: #0a410e !important; }

/* Icona del carrello */
.t706__carticon-imgwrap { background-color: #0a410e !important; }

/* Vecchio verde e vecchio oro nei testi: nuova palette */
#allrecords [style*="color:#688f3f"],
#allrecords [style*="color: #688f3f"],
#allrecords [style*="color: rgb(104, 143, 63)"],
#allrecords [style*="color:rgb(104,143,63)"] { color: #0a410e !important; }
#allrecords [style*="color: rgb(220, 188, 52)"],
#allrecords [style*="color: rgb(218, 185, 48)"],
#allrecords [style*="color:#dcbc34"] { color: #d8af00 !important; }

/* Link nei testi su sfondo chiaro */
#rec304823319 a, #rec313205967 a,
.t1119 .t-descr a, .t1053__descr a, .t1053__title a { color: #0a410e !important; text-decoration: underline; }
.t1053__title a { text-decoration: none; }
#rec4802925103 .t1053__title a[href^="mailto"] { font-size: 0.68em; overflow-wrap: anywhere; }

/* Schede prodotto: nome in minuscolo leggibile, prezzo in evidenza, descrizione breve solo nella griglia */
.t778__title { text-transform: lowercase !important; }
.t778__title::first-letter { text-transform: uppercase; }
.t778 .t-store__card__price, .t778 .t-store__card__price-currency, .t778__price-value, .t778__price-currency { color: #0a410e !important; font-weight: 700 !important; }
.t778__col .t778__descr { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) {
  .t778 .t-btnflex_type_button, .t778 .t-btnflex_type_button2 { font-size: 12px !important; }
  .t778__title { font-size: 14px !important; }
}

/* Prodotti in homepage su cellulare: foto a sinistra e testo a destra, come una lista negozio */
@media (max-width: 640px) {
  .t1073__col { display: flex !important; align-items: flex-start; gap: 14px; margin-bottom: 28px !important; }
  .t1073__bgimg { width: 120px !important; min-width: 120px; height: 160px !important; padding-bottom: 0 !important; margin: 0 !important; border-radius: 8px; background-size: cover; background-position: center; }
  .t1073__textwrapper { flex: 1; padding-top: 0 !important; margin-top: 0 !important; }
  .t1073 .t-card__descr { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px !important; }
  .t1073 .t-card__btn { margin-top: 10px !important; }
}

/* Elenchi puntati nei testi centrati */
.t795 ul { display: inline-block; text-align: left; margin: 8px auto 0; padding-left: 20px; }

/* Premi in homepage: riquadri bianchi della stessa altezza */
#rec4802906203 .t853__imgwrapper { height: 240px; display: flex; align-items: center; justify-content: center; background: #ffffff; border-radius: 10px; padding: 16px !important; box-sizing: border-box; box-shadow: 0 6px 20px -10px rgba(10,65,14,0.25); }
#rec4802906203 .t853__img { max-height: 100%; max-width: 100%; width: auto !important; height: auto !important; object-fit: contain; border-radius: 4px; }

/* Recensioni: schede con virgolette, nomi in verde scuro */
.t528__col { background: #ffffff; border-radius: 10px; padding: 22px 20px; box-sizing: border-box; box-shadow: 0 6px 20px -12px rgba(10,65,14,0.3); margin-bottom: 24px; }
.t528__title { color: #0a410e !important; font-weight: 700 !important; }
.t528__title::before { content: '\201C'; display: block; color: #d8af00; font-size: 44px; line-height: 0.8; font-family: Georgia, serif; margin-bottom: 4px; }
.t528__text { font-style: italic; }

/* ===== Stile compatto e-commerce: tipografia e spaziature ridotte ===== */
.t-rec[style*="padding-top:75px"], .t-rec[style*="padding-top:90px"], .t-rec[style*="padding-top:105px"], .t-rec[style*="padding-top:120px"], .t-rec[style*="padding-top:135px"], .t-rec[style*="padding-top:150px"], .t-rec[style*="padding-top:165px"], .t-rec[style*="padding-top:180px"], .t-rec[style*="padding-top:195px"], .t-rec[style*="padding-top:210px"] { padding-top: 56px !important; }
.t-rec[style*="padding-bottom:75px"], .t-rec[style*="padding-bottom:90px"], .t-rec[style*="padding-bottom:105px"], .t-rec[style*="padding-bottom:120px"], .t-rec[style*="padding-bottom:135px"], .t-rec[style*="padding-bottom:150px"], .t-rec[style*="padding-bottom:165px"], .t-rec[style*="padding-bottom:180px"], .t-rec[style*="padding-bottom:195px"], .t-rec[style*="padding-bottom:210px"] { padding-bottom: 56px !important; }
.t-rec[style*="padding-top:60px"] { padding-top: 48px !important; }
.t-rec[style*="padding-bottom:60px"] { padding-bottom: 48px !important; }
.t-section__topwrapper { margin-bottom: 36px !important; }
.t-section__title { margin-bottom: 14px !important; }
.t-section__descr { max-width: 640px; margin-bottom: 36px !important; }
.t-section__container:not(:has(.t-section__descr)) .t-section__title { margin-bottom: 36px !important; }
.t-section__title, .t-title_xxs, .t-title_xs, .t-title_sm, .t-title_md, .t-title_lg, .t-title_xl, .t-title_xxl { font-size: 32px !important; line-height: 1.2 !important; }
.t-descr_xxl, .t-descr_xl, .t-descr_lg { font-size: 18px !important; line-height: 1.55 !important; }
.t-descr_md { font-size: 17px !important; line-height: 1.55 !important; }
.t-name_xl, .t-name_lg, .t-heading_lg, .t-heading_md, .t-heading_sm, .t-heading_xs { font-size: 19px !important; line-height: 1.3 !important; }
.t-text_md, .t-text_sm { font-size: 16px !important; line-height: 1.6 !important; }
.t528 .t-text_xs { font-size: 16px !important; line-height: 1.55 !important; }
.t528 .t-name_xs { font-size: 17px !important; }
/* Copertine e slider: titolo piu' grande delle sezioni ma senza esagerare */
.t-rec[data-record-type="734"] .t-title, .t-rec[data-record-type="18"] .t-title, .t-rec[data-record-type="60"] .t-title { font-size: 40px !important; }
.t-rec[data-record-type="734"] .t-descr, .t-rec[data-record-type="18"] .t-descr { font-size: 18px !important; }

@media (max-width: 640px) {
  .t-rec[style*="padding-top:45px"], .t-rec[style*="padding-top:60px"], .t-rec[style*="padding-top:75px"], .t-rec[style*="padding-top:90px"], .t-rec[style*="padding-top:105px"], .t-rec[style*="padding-top:120px"], .t-rec[style*="padding-top:135px"], .t-rec[style*="padding-top:150px"], .t-rec[style*="padding-top:165px"], .t-rec[style*="padding-top:180px"] { padding-top: 32px !important; }
  .t-rec[style*="padding-bottom:45px"], .t-rec[style*="padding-bottom:60px"], .t-rec[style*="padding-bottom:75px"], .t-rec[style*="padding-bottom:90px"], .t-rec[style*="padding-bottom:105px"], .t-rec[style*="padding-bottom:120px"], .t-rec[style*="padding-bottom:135px"], .t-rec[style*="padding-bottom:150px"], .t-rec[style*="padding-bottom:165px"], .t-rec[style*="padding-bottom:180px"] { padding-bottom: 32px !important; }
  .t-section__topwrapper { margin-bottom: 24px !important; }
  .t-section__title { margin-bottom: 10px !important; }
  .t-section__descr { margin-bottom: 24px !important; }
  .t-section__container:not(:has(.t-section__descr)) .t-section__title { margin-bottom: 24px !important; }
  .t-section__title, .t-title_xxs, .t-title_xs, .t-title_sm, .t-title_md, .t-title_lg, .t-title_xl, .t-title_xxl { font-size: 24px !important; }
  .t-rec[data-record-type="734"] .t-title, .t-rec[data-record-type="18"] .t-title, .t-rec[data-record-type="60"] .t-title { font-size: 28px !important; }
  .t-descr_xxl, .t-descr_xl, .t-descr_lg, .t-descr_md { font-size: 16px !important; }
  .t-rec[data-record-type="734"] .t-descr, .t-rec[data-record-type="18"] .t-descr { font-size: 16px !important; }
  .t-name_xl, .t-name_lg, .t-heading_lg, .t-heading_md, .t-heading_sm, .t-heading_xs { font-size: 17px !important; }
}

/* ===== Carrello e modulo d'ordine (nov 2026) ===== */
/* Niente "effettua l'accesso o iscriviti": la pagina di accesso clienti di Tilda esiste solo in inglese */
.t706__auth { display: none !important; }
/* Campi piu' compatti e leggibili */
.t706 .t-input-title { font-size: 14px !important; line-height: 1.3 !important; padding-bottom: 6px !important; color: #0a410e !important; }
.t706 .t-input { height: 50px !important; font-size: 16px !important; }
.t706 .t-input:focus { border-color: #0a410e !important; }
.t706 .t-input-group { margin-bottom: 16px !important; }
/* Su telefono: Nome e Cognome affiancati, Citta' / Provincia / CAP sulla stessa riga */
@media (max-width: 640px) {
  .t706 .t-form__inputsbox { display: flex !important; flex-wrap: wrap; column-gap: 12px !important; }
  .t706 .t-form__inputsbox > * { width: 100% !important; flex: 0 0 100%; }
  .t706 .t-form__inputsbox > .t-input-group_width50 { width: calc(50% - 10px) !important; flex: 0 0 calc(50% - 10px); }
  .t706 .t-form__inputsbox > .t-input-group_width25 { width: calc(25% - 9px) !important; flex: 0 0 calc(25% - 9px); }
  .t706 .t-input-group_width25 .t-input { padding-left: 10px !important; padding-right: 6px !important; }
}
/* Pulsante WhatsApp: nascosto mentre il carrello e' aperto; su telefono piu' piccolo e senza etichetta */
body.t706__body_cartpageshowed .t825, body.t706__body_cartwinshowed .t825 { display: none !important; }
@media (max-width: 640px) {
  .t825__btn-text { display: none !important; }
  .t825__btn { transform: scale(0.8); transform-origin: right bottom; }
}

/* ===== Pagine piu' corte su telefono (nov 2026) ===== */
@media (max-width: 640px) {
  /* Schede prodotto: nome completo (con il formato) ma piu' piccolo, descrizione ridotta alla nota di gusto (2 righe) */
  #allrecords .t-store__card__title { font-size: 14px !important; line-height: 1.3 !important; }
  #allrecords .t-store__card__descr { font-size: 13px !important; line-height: 1.4 !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px !important; }
  #allrecords .t-store__card__price-wrapper { margin-top: 6px !important; }
  #allrecords .t-store__card__wrap_txt-and-btns { padding-top: 10px !important; padding-bottom: 12px !important; }
  #allrecords .t-store__card { margin-bottom: 20px !important; }
  /* Pulsanti: quantita' e "Aggiungi al carrello" compatti, "Dettagli" come semplice link sotto */
  #allrecords .t-store__card__btns-wrapper--quantity { display: flex !important; flex-direction: column; align-items: stretch; gap: 6px !important; }
  #allrecords .t-store__card__btns-wrapper--quantity .t-btnflex_type_button2 { order: 2; min-height: 40px !important; height: auto !important; padding: 6px 8px !important; }
  #allrecords .t-store__card__btns-wrapper--quantity .t-btnflex_type_button2 .t-btnflex__text { white-space: normal !important; overflow: visible !important; text-overflow: clip !important; font-size: 13px !important; line-height: 1.2 !important; letter-spacing: 0 !important; }
  #allrecords .t-store__card__btns-wrapper--quantity .t-store__prod__quantity { order: 1; height: 36px !important; margin: 0 !important; }
  #allrecords .t-store__card__btns-wrapper--quantity .t-btnflex_type_button { order: 3; min-height: 24px !important; height: 24px !important; background: transparent !important; color: #0a410e !important; border: 0 !important; box-shadow: none !important; text-decoration: underline; text-underline-offset: 3px; }
  #allrecords .t-store__card__btns-wrapper--quantity .t-btnflex_type_button .t-btnflex__text { font-size: 13px !important; }
  /* Recensioni: su telefono le prime 3, piu' vicine tra loro */
  .t528__col { margin-bottom: 16px !important; padding: 18px 16px !important; }
  .t528__col:nth-child(n+4) { display: none !important; }
  /* Premi (home e pagine internazionali): riquadri in fila che si scorrono di lato */
  .t853 .t853__container { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 20px; gap: 12px; padding: 0 20px 12px !important; margin: 0 !important; box-sizing: border-box; -webkit-overflow-scrolling: touch; }
  .t853 .t853__col { flex: 0 0 72% !important; width: 72% !important; max-width: 72% !important; margin: 0 !important; padding: 0 !important; scroll-snap-align: start; }
  .t853 .t853__imgwrapper { height: 150px !important; }
  /* Ricette: due schede per riga */
  .t774 .t774__container { display: flex !important; flex-wrap: wrap; padding: 0 14px !important; box-sizing: border-box; }
  .t774 .t774__col { width: 50% !important; max-width: 50% !important; flex: 0 0 50%; padding: 0 6px !important; margin: 0 0 16px !important; box-sizing: border-box; }
  .t774 .t774__wrapper { width: 100% !important; }
  .t774 .t774__imgwrapper, .t774 .t774__bgimg { height: 130px !important; padding-bottom: 0 !important; }
  .t774 .t774__content { padding: 10px 8px 12px !important; }
  .t774 .t-card__title { font-size: 15px !important; line-height: 1.25 !important; }
  .t774 .t-card__descr { font-size: 13px !important; line-height: 1.35 !important; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .t774 .t-card__btn-wrapper { padding-top: 8px !important; }
  .t774 .t-card__btn-wrapper .t-btnflex { min-height: 36px !important; height: auto !important; padding: 6px 10px !important; font-size: 13px !important; width: 100%; white-space: normal; }
  /* Certificazioni e premi (pagina Certificazioni): due riquadri per riga */
  .t649 .t-card__container { display: flex !important; flex-wrap: wrap; padding: 0 14px !important; box-sizing: border-box; }
  .t649 .t649__col { width: 50% !important; max-width: 50% !important; flex: 0 0 50%; padding: 0 6px !important; margin: 0 0 20px !important; box-sizing: border-box; }
  .t649 .t649__blockimg { width: 100% !important; }
  .t649 .t649__textwrapper { padding-top: 10px !important; }
  .t649 .t-card__title { font-size: 14px !important; line-height: 1.3 !important; }
  .t649 .t-card__descr { font-size: 13px !important; line-height: 1.4 !important; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}
