/* Parti del sito nello stile del checkout (tema child dimavis), caricato da inc/sito.php in tutte le pagine. Documento
   modifiche-checkout-dimavis-2026-09-26.md, parte V. Stesse misure del checkout: testo 14 px, titoli 20 px, piccoli 12 px;
   principali #000, secondari #707070; verde #2d8185; campi 48 px con angoli 12 e bordo #dedede; pulsanti con angoli 12 e
   l'ombra di "Conferma ordine". */

/* ---------- Mini-carrello (tendina dell'header e carrello laterale su mobile) ---------- */
/* Nella tendina Flatsome rende l'elenco scorrevole (overflow:auto, max 450 px), che tagliava bordo e ombra della miniatura:
   6 px di margine interno ai lati, compensati da un margine negativo (allineamento invariato). */
html body .widget_shopping_cart_content ul.product_list_widget{margin:0 -6px!important;padding:0 6px!important;border:0}
html body .widget_shopping_cart_content ul.product_list_widget li.mini_cart_item{overflow:visible!important;position:relative;display:flex;flex-direction:column;align-items:flex-start;min-height:88px;margin:0;padding:12px 0 12px 80px;border:0;border-bottom:1px solid #dedede;list-style:none;text-align:left;font-size:14px;line-height:1.35;color:#000;box-sizing:border-box}
html body .widget_shopping_cart_content ul.product_list_widget li.mini_cart_item>a:not(.remove){overflow:visible!important;order:1;display:block;width:auto;margin:0 88px 0 0;padding:0;font-size:14px;font-weight:700;line-height:1.35;color:#000;text-decoration:none}
html body .widget_shopping_cart_content ul.product_list_widget li.mini_cart_item>a:not(.remove):hover{color:#2d8185}
html body .widget_shopping_cart_content li.mini_cart_item img{position:absolute;left:0;top:12px;box-sizing:border-box;width:64px!important;height:64px;max-width:none;margin:0!important;border:2px solid #fff;border-radius:16px;background:#fff;object-fit:contain;box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 1px 3px rgba(0,0,0,.04),0 2px 8px rgba(0,0,0,.06)}
html body .widget_shopping_cart_content li.mini_cart_item dl.variation{display:none}
html body .widget_shopping_cart_content li.mini_cart_item .ux-mini-cart-qty{order:2;margin:0;padding:0}
html body .widget_shopping_cart_content .dmv-mc-riga{display:block;margin:0;padding:0;font-size:14px;color:#000;opacity:1}
html body .widget_shopping_cart_content .dmv-mc-qty{position:absolute;left:52px;top:6px;z-index:1;box-sizing:border-box;min-width:20px;height:20px;padding:0 4px;border-radius:8px;background:#000;color:#fff;font-size:12px;font-weight:700;line-height:20px;text-align:center}
html body .widget_shopping_cart_content .dmv-mc-info{display:flex;flex-direction:column;align-items:flex-start;margin-top:2px}
html body .widget_shopping_cart_content .dmv-mc-n{font-size:12px;color:#707070}
html body .widget_shopping_cart_content .dmv-riga-risp{display:inline-flex;align-items:center;gap:4px;font-size:12px;font-weight:400;color:#707070;text-transform:uppercase;white-space:nowrap}
html body .widget_shopping_cart_content .dmv-riga-risp svg{flex:none}
html body .widget_shopping_cart_content .dmv-riga-risp .amount,html body .widget_shopping_cart_content .dmv-barrato .amount{font-weight:400;color:inherit}
html body .widget_shopping_cart_content .dmv-riga-tag{display:block;margin-top:2px;font-size:12px;font-weight:400;line-height:1.4;color:#707070}
html body .widget_shopping_cart_content .dmv-riga-tag strong{font-weight:700;color:#2d8185}
html body .widget_shopping_cart_content .dmv-mc-prezzo{position:absolute;right:0;top:12px;text-align:right;white-space:nowrap}
html body .widget_shopping_cart_content .dmv-mc-prezzo .amount{font-weight:400;color:#000}
html body .widget_shopping_cart_content .dmv-barrato{display:block;font-size:12px;font-weight:400;color:#707070;text-decoration:line-through}
html body .widget_shopping_cart_content li.mini_cart_item a.remove{order:3;position:static!important;display:inline-block;width:auto;height:auto;min-width:0;margin:6px 0 0;padding:0;border:0!important;border-radius:0;background:transparent!important;font-size:12px!important;font-weight:400;line-height:1.35;color:#707070!important;text-decoration:underline;text-underline-offset:2px;opacity:1}
html body .widget_shopping_cart_content li.mini_cart_item a.remove:hover{color:#2d8185!important}
html body .widget_shopping_cart_content .ux-mini-cart-footer{margin:0;padding:0;border:0;background:#fff}
html body .widget_shopping_cart_content p.woocommerce-mini-cart__total{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0;padding:12px 0 0;border:0;font-size:14px;line-height:1.35;color:#000;text-transform:none}
html body .widget_shopping_cart_content p.woocommerce-mini-cart__total strong{font-weight:400;color:#000}
html body .widget_shopping_cart_content p.woocommerce-mini-cart__total .amount{font-size:14px;font-weight:700;color:#000}
html body .widget_shopping_cart_content p.dmv-mc-risp{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 0;padding:0;font-size:14px;font-weight:700;line-height:1.35;color:#2d8185}
html body .widget_shopping_cart_content p.dmv-mc-risp .amount{font-weight:700;color:#2d8185}
html body .widget_shopping_cart_content .dmv-risp{display:inline-flex;align-items:center;gap:6px}
html body .widget_shopping_cart_content p.woocommerce-mini-cart__buttons{display:flex;flex-direction:column;gap:8px;margin:16px 0 0;padding:0}
html body .widget_shopping_cart_content p.woocommerce-mini-cart__buttons>*{order:3;margin:0!important}
html body .widget_shopping_cart_content p.woocommerce-mini-cart__buttons>a.button{display:flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;width:100%;min-height:48px;margin:0!important;padding:10px 16px;border-radius:12px;font-size:16px;font-weight:700;line-height:1.2;letter-spacing:.03em;text-transform:uppercase;text-shadow:none}
html body .widget_shopping_cart_content p.woocommerce-mini-cart__buttons>a.button.checkout{order:1;border:0;background-color:#2d8185!important;color:#fff!important;box-shadow:0 3px 6px -4px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23)}
html body .widget_shopping_cart_content p.woocommerce-mini-cart__buttons>a.button.checkout:hover{background-color:#256b6e!important}
html body .widget_shopping_cart_content p.woocommerce-mini-cart__buttons>a.button.checkout::before{content:"";flex:none;width:16px;height:16px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat}
html body .widget_shopping_cart_content p.woocommerce-mini-cart__buttons>a.button:not(.checkout){order:2;border:1px solid #dedede!important;background-color:#fff!important;color:#000!important;box-shadow:0 3px 6px -4px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23)}
html body .widget_shopping_cart_content p.woocommerce-mini-cart__buttons>a.button:not(.checkout):hover{border-color:#2d8185!important;color:#2d8185!important}
html body .widget_shopping_cart_content .woocommerce-mini-cart__empty-message{font-size:14px;color:#707070}
/* Tendina su desktop */
html body .cart-item .nav-dropdown{width:380px;min-width:380px;border:0;border-radius:12px;box-shadow:0 12px 28px rgba(0,0,0,.18),0 2px 6px rgba(0,0,0,.08)}
/* Carrello laterale su mobile: pannello bianco pieno (Flatsome lo fa trasparente al 95%: si vedeva la pagina sotto),
   titolo come le sezioni del checkout, piè con subtotale e pulsanti bianco con una riga sopra */
html body .mfp-content:has(>#cart-popup){width:min(460px,100vw)!important;max-width:100vw;background:#fff}
html body #cart-popup .cart-popup-inner{padding-left:20px;padding-right:20px}
html body #cart-popup .cart-popup-title{margin:0 0 8px;padding-right:40px;text-align:left}
html body #cart-popup .cart-popup-title>span{font-size:20px;font-weight:700;line-height:1.2;color:#000;text-transform:none;letter-spacing:normal}
html body #cart-popup .cart-popup-title .is-divider{display:none}
html body #cart-popup .ux-mini-cart-footer{border-top:1px solid #dedede}
html body #cart-popup .payment-icons{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:16px}
html body #cart-popup .payment-icons .payment-icon{margin:0}

/* ---------- Campi e pulsanti: pagina "Il mio account" (accesso, registrazione e moduli) e Contact Form 7 (anche il modulo
   di "Traccia ordine", form.shipping7-form, che il suo plugin mette fuori dal contenitore .wpcf7) ---------- */
html body.woocommerce-account .woocommerce form .input-text,html body.woocommerce-account .woocommerce form select,html body.woocommerce-account .woocommerce form textarea,html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio):not(.wpcf7-acceptance){box-sizing:border-box;width:100%;height:48px;min-height:48px;margin:0!important;padding:0 13.2px;border:1px solid #dedede!important;border-radius:12px!important;background-color:#fff!important;box-shadow:none!important;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-size:14px;line-height:1.35;color:#000}
html body.woocommerce-account .woocommerce form textarea,html body :is(.wpcf7 form,form.shipping7-form) textarea.wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio):not(.wpcf7-acceptance){height:auto;min-height:140px;padding:13px 13.2px;resize:vertical}
html body.woocommerce-account .woocommerce form .input-text::placeholder,html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-form-control::placeholder{font-family:Lato,sans-serif;color:#707070;opacity:1}
html body.woocommerce-account .woocommerce form .input-text:focus,html body.woocommerce-account .woocommerce form select:focus,html body.woocommerce-account .woocommerce form textarea:focus,html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-form-control:not(.wpcf7-submit):focus{border-color:#2d8185!important;box-shadow:0 0 0 .5px #2d8185,0 0 0 4px rgba(45,129,133,.3)!important;outline:0}
html body.woocommerce-account .woocommerce form .input-text:-webkit-autofill,html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-form-control:-webkit-autofill{-webkit-box-shadow:inset 0 0 0 100px #fff!important;-webkit-text-fill-color:#000}
/* Etichette sopra i campi: 14 px in grassetto, 8 px dal campo; 16 px tra un campo e l'altro */
html body.woocommerce-account .woocommerce form .form-row{margin:0 0 16px;padding:0}
html body.woocommerce-account .woocommerce form .form-row>label:not(.woocommerce-form__label-for-checkbox){display:block;margin:0 0 8px;font-size:14px;font-weight:700;line-height:1.35;color:#000}
html body.woocommerce-account .woocommerce form .form-row .required{color:#ff6465;text-decoration:none}
html body :is(.wpcf7 form,form.shipping7-form)>p{margin:0 0 16px}
html body :is(.wpcf7 form,form.shipping7-form) label{display:block;margin:0;font-size:14px;font-weight:700;line-height:1.35;color:#000}
html body :is(.wpcf7 form,form.shipping7-form) label>br{display:none}
html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-form-control-wrap{display:block;margin-top:8px}
/* Titoli "Accedi" e "Registrati" come le sezioni del checkout */
html body.woocommerce-account .woocommerce h2{margin:0 0 16px;font-size:20px;font-weight:700;line-height:1.2;color:#000;text-transform:none;letter-spacing:normal}
/* Casella "Ricordami", link, testo sulla privacy */
html body.woocommerce-account .woocommerce input[type=checkbox]{width:18px;height:18px;margin:0 8px 0 0;accent-color:#2d8185;vertical-align:-4px}
html body.woocommerce-account .woocommerce .woocommerce-form__label-for-checkbox{display:inline-flex;align-items:center;margin:0 0 16px;font-size:14px;font-weight:400;color:#000}
html body.woocommerce-account .woocommerce .lost_password{margin:16px 0 0;font-size:14px}
html body.woocommerce-account .woocommerce .lost_password a,html body.woocommerce-account .woocommerce .woocommerce-privacy-policy-text a{color:#2d8185;text-decoration:underline;text-underline-offset:2px}
html body.woocommerce-account .woocommerce .woocommerce-privacy-policy-text p{margin:0 0 16px;font-size:12px;line-height:1.4;color:#707070}
/* Pulsante per mostrare la password dentro il campo alto 48 px */
html body.woocommerce-account .woocommerce .password-input{display:block;position:relative}
html body.woocommerce-account .woocommerce .password-input .input-text{padding-right:44px}
html body.woocommerce-account .woocommerce .show-password-input{top:50%;right:12px;transform:translateY(-50%)}
/* Pulsanti come "Conferma ordine": #2d8185, angoli 12, maiuscolo, ombra; a tutta larghezza nei moduli */
html body.woocommerce-account .woocommerce form button[type=submit].button,html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-submit{display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;min-height:50px;margin:0!important;padding:10px 16px;border:0!important;border-radius:12px!important;background-color:#2d8185!important;box-shadow:0 3px 6px -4px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23)!important;color:#fff!important;font-size:20px;font-weight:700;line-height:24px;letter-spacing:.03em;text-transform:uppercase;text-shadow:none}
html body.woocommerce-account .woocommerce form button[type=submit].button:hover,html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-submit:hover{background-color:#256b6e!important}
html body.woocommerce-account .woocommerce form.login .form-row:has(button[type=submit]){margin-bottom:0}
/* "Password dimenticata" e "Nuova password": modulo in un riquadro centrato, campi e pulsante della stessa larghezza
   (WooCommerce mette i campi a metà larghezza con .form-row-first / .form-row-last), testo introduttivo grigio */
html body.woocommerce-account .woocommerce form.woocommerce-ResetPassword{box-sizing:border-box;max-width:480px;margin:0 auto;padding:24px;border:1px solid #dedede;border-radius:12px;background:#fff;box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 1px 3px rgba(0,0,0,.04),0 2px 8px rgba(0,0,0,.06)}
html body.woocommerce-account .woocommerce form.woocommerce-ResetPassword>p:first-child{margin:0 0 16px;font-size:14px;line-height:1.35;color:#707070}
html body.woocommerce-account .woocommerce form.woocommerce-ResetPassword .form-row-first,html body.woocommerce-account .woocommerce form.woocommerce-ResetPassword .form-row-last{float:none;width:100%}
html body.woocommerce-account .woocommerce form.woocommerce-ResetPassword .form-row:last-of-type{margin-bottom:0}
html body.woocommerce-account .woocommerce form.woocommerce-ResetPassword .clear{display:none}
/* Contact Form 7: errori sotto i campi e messaggio finale come nel checkout */
html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-form-control.wpcf7-not-valid:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio):not(.wpcf7-acceptance){border-color:#ff6465!important}
html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-form-control.wpcf7-not-valid:not(.wpcf7-submit):not(.wpcf7-checkbox):not(.wpcf7-radio):not(.wpcf7-acceptance):focus{box-shadow:0 0 0 .5px #ff6465,0 0 0 4px rgba(255,100,101,.3)!important}
html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-not-valid-tip{position:static!important;display:block;width:auto;margin:6px 0 0;padding:0!important;border:0!important;border-radius:0;background:transparent!important;box-shadow:none!important;font-size:12px!important;font-weight:700;line-height:1.4;color:#ff6465!important;opacity:1;transform:none}
html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-not-valid-tip::before,html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-not-valid-tip::after{display:none!important;content:none!important}
html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-response-output{margin:16px 0 0;padding:12px 16px;border:1px solid #dedede;border-radius:12px;font-size:14px;line-height:1.35;color:#000}
html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-response-output:empty,html body :is(.wpcf7 form,form.shipping7-form):is(.init,.resetting,.submitting) .wpcf7-response-output{display:none}
html body :is(.wpcf7 form,form.shipping7-form).sent .wpcf7-response-output{border-color:#2d8185;background:#f0f8f9}
html body :is(.wpcf7 form,form.shipping7-form).invalid .wpcf7-response-output,html body :is(.wpcf7 form,form.shipping7-form).unaccepted .wpcf7-response-output,html body :is(.wpcf7 form,form.shipping7-form).failed .wpcf7-response-output,html body :is(.wpcf7 form,form.shipping7-form).aborted .wpcf7-response-output,html body :is(.wpcf7 form,form.shipping7-form).spam .wpcf7-response-output{border-color:#ff6465;background:#fff5f5}

/* ---------- Banner dei cookie (Pressidium): pulsanti con angoli 12 e l'ombra dei nostri pulsanti ---------- */
html body #cc--main .c-bn:not(#s-c-bn){border-radius:12px!important;box-shadow:0 3px 6px -4px rgba(0,0,0,.16),0 3px 6px rgba(0,0,0,.23)!important}

/* ---------- Visualizzatori di Google Drive (pagina "Foglio illustrativo", voce di menu "Ingredienti") ----------
   Cornice come i riquadri del checkout al posto del bordo incassato del browser; lo sfondo scuro è dentro il
   visualizzatore di Google e non si può cambiare da qui. */
html body #content iframe[src*="drive.google.com"]{display:block;box-sizing:border-box;width:100%;max-width:100%;border:1px solid #dedede;border-radius:12px;background:#f5f5f5;box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 1px 3px rgba(0,0,0,.04),0 2px 8px rgba(0,0,0,.06);overflow:hidden}

/* ---------- Blog: schede degli articoli (elemento "Blog posts" di Flatsome, pagina Blog e altre) come i riquadri del
   checkout; immagini degli articoli con gli angoli arrotondati ---------- */
html body .post-item>.col-inner{overflow:hidden;border:1px solid #dedede;border-radius:12px!important;background:#fff;box-shadow:0 0 0 .5px rgba(0,0,0,.05),0 1px 3px rgba(0,0,0,.04),0 2px 8px rgba(0,0,0,.06)!important;transition:box-shadow .2s ease}
html body .post-item>.col-inner:hover{box-shadow:0 12px 28px rgba(0,0,0,.12),0 2px 6px rgba(0,0,0,.06)!important}
html body .post-item .box-blog-post{box-shadow:none!important;background:transparent}
html body .post-item .box-blog-post .box-text{padding:16px 20px 20px}
html body .post-item .post-title,html body .post-item .post-title a{font-weight:700;line-height:1.3;color:#000}
html body .post-item .post-title a:hover{color:#2d8185}
html body .post-item .box-blog-post .is-divider{display:none}
html body .post-item .from_the_blog_excerpt{margin:8px 0 0;font-size:14px;line-height:1.5;color:#707070}
/* Niente "Leggi tutto" (richiesta di Toti): tutta la scheda porta all'articolo (il link del titolo la copre). */
html body .post-item .box-blog-post a.button{display:none!important}
html body .post-item>.col-inner{position:relative}
html body .post-item .post-title a::after{content:"";position:absolute;inset:0;z-index:1}
/* Schede tutte alla stessa altezza: Flatsome le mette a mosaico (posizioni assolute calcolate dallo script); qui si
   dispongono su righe normali, con le schede di una riga alte uguali. Solo per le righe di articoli del blog. */
html body .row.row-masonry:has(>.post-item){display:flex!important;flex-wrap:wrap;height:auto!important;align-items:stretch}
html body .row.row-masonry:has(>.post-item)>.post-item{position:relative!important;left:auto!important;top:auto!important;display:flex}
html body .row.row-masonry:has(>.post-item)>.post-item>.col-inner{flex:1;display:flex;flex-direction:column}
html body .row.row-masonry:has(>.post-item)>.post-item .box-blog-post{flex:1;display:flex;flex-direction:column}
html body .row.row-masonry:has(>.post-item)>.post-item .box-blog-post .box-text{flex:1}
html body .row.row-masonry:has(>.post-item)>.post-item .box-blog-post .box-image{width:100%;margin:0}
/* Niente animazione delle schede (29/09/2026, richiesta di Toti): lo script del mosaico (Packery, 0,4 s) a ogni ricalcolo
   (arrivo delle immagini, ridimensionamento) sposta le schede con transform: translate3d e le fa tornare scivolando, ma la
   posizione vera la decidono le regole qui sopra. Resta l'effetto al passaggio del mouse (ombra e zoom della foto). */
html body .row.row-masonry:has(>.post-item)>.post-item{transform:none!important;transition:none!important}
html body.single-post .entry-image img,html body.single-post .entry-content img{border-radius:12px}

/* iPhone: campi a 16 px, altrimenti Safari ingrandisce la pagina (ultima regola del file). */
@supports (-webkit-touch-callout:none){html body.woocommerce-account .woocommerce form .input-text,html body.woocommerce-account .woocommerce form textarea,html body :is(.wpcf7 form,form.shipping7-form) .wpcf7-form-control:not(.wpcf7-submit){font-size:16px}}
