/*
 Theme Name:   Chianti at Home
 Theme URI:    http://www.chiantiathome.it/
 Description:  Tema basato su Undestrap
 Author:       Stefano Becheroni
 Author URI:   http://www.influsso.it
 Template:     understrap
 Version:      1.0.0
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Tags:         responsive-layout, accessibility-ready
 Text Domain:  chiantiathome
*/

/* FONTS */

@import url('https://fonts.googleapis.com/css2?family=Cabin:wght@400;500&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* HTML - LAYOUT */

a {
    color: #0164eb;
}

/* altezza minima delle pagine */
@media (min-height:850px) {
	#page-wrapper {
		min-height: 665px;		
	}
}

@media (min-height:880px) {
	#page-wrapper {
		min-height: 695px;		
	}
}

@media (min-height:1000px) {
	#page-wrapper {
		min-height: 815px;		
	}
}

@media (min-height:1240px) {
	#page-wrapper {
		min-height: 1055px;		
	}
}

/* PAGINE INTERNE */

.navbar-brand {
	font-family: 'PT Sans', sans-serif;
    font-weight: 400;
	font-size: 20px;
}

h1.entry-title, h3, h4 {
    font-family: 'PT Sans', sans-serif;
	color:#0094f3;
}

@media (max-width:480px) {
	h1.entry-title {
		text-align: center;
	}
}

/* pagine con background */

.page-id-118 h1.entry-title,
.page-id-118 h3,
.page-id-128 h1.entry-title,
.page-id-128 h3 {
	color: #fff;
}

/* MENU */

#main-menu li a {
    font-family: "PT Sans", Sans-serif;
    font-weight: 700;
    font-size: 20px;
}

/* MENU DESKTOP *****************/

.navbar.bg-primary {
	background-color: #0094f3 !important;
}

.home .navbar.bg-primary a.navbar-brand {
	display:none;
}

.navbar>.container, .navbar>.container-fluid {
    justify-content: flex-end;
}

#main-menu li a {
	color:#fff;
}

#main-menu li a:hover {
	color:#fff;
	background-color: #0094f3;
}

#main-menu li.current-menu-item a {
	color:#fff;
}

/* MENU MOBILE ******************/

.navbar-dark .navbar-toggler {
  border-color: rgba(255,255,255,0.7);
}

.navbar-dark .navbar-toggler:focus {
  outline: none;
}

.navbar-brand {
    position: absolute;
    left: 0;
	top: 0;
	padding: 15px 15px;
}

/* HOME TESTATA *****************/

#home-testata {
	
}

/* HOME FAQ *********************/

@media (max-width:767px) {
	#box-home-desktop {
		display: none;
	}
	
	#box-home-mobile .elementor-widget-image{
		margin-bottom:0;
	}
}

@media (min-width:768px) {
	#box-home-mobile {
		display:none;
	}
}

/* FOOTER ***********************/

#wrapper-footer-full {
	background-color:#0094f3;
	background-image: url(/wp-content/uploads/2021/06/footerpc.jpg);
	background-size: cover;
	color: #fff;
	font-size:14px;
}

#wrapper-footer-full a {
	color: #fff;
}

#wrapper-footer {
	display:none;
}

#wrapper-footer-full .col-md-4 {
		padding-left:110px;	
}

@media (max-width:480px) {
	#wrapper-footer-full {
		font-size:13px;
	background-image: url(/wp-content/uploads/2021/06/bannercell.jpg);	
	}
	
	#wrapper-footer-full .col-md-4 {
		margin-bottom:15px;	
		padding-left:0;
		text-align:center;
	}	
}

/* LISTA ARTICOLI ***************/

/* pulsante aggiungi */
.rpress-price-holder .rpress-add-to-cart {
    border-radius: 0;
    padding: 0px 10px;
}

@media (max-width:480px) {
	/* allarga il contenitore */
	.rpress-thumbnail-holder {
    width: 100%;
    height: auto;
    float: none;
	}
	
	/* allarga l'immagine */
	.rpress-thumbnail-holder img {
    width: 100%;
    height: auto;
	}
	
	/* allarga il titolo */
	.rpress-thumbnail-holder+.rpress-title-holder {
    padding-left: 0;
    width: 100%;
}
	
	/* allarga il prezzo */
	div.rpress-price-holder {
    width: 100%;
		padding: 0;
}

	/* distanzia vert. i prodotti */
	div.rpress_fooditems_list .rpress_fooditem {
    margin-bottom:30px;
	}

	/* aumenta il carattere della descrizione del prodotto */
	.rpress_fooditem_inner .rpress_fooditem_excerpt p {
		font-size: 16px;
	}
	
	div.rpress-title-holder a.food-title {
		font-size: 16px;
	}
}

/* POPUP ADD TO CART */

/* cambia il bg della X che chiude la popup */
.modal__close {
    background: #fff !important;
}

/* CART */

/* sposta a sinistra la scritta 'pulisci' che si sovrappone alla X */
.rpress-clear-cart {
    right: 30px !important;
}

/* cambia lo sfondo dell'area carrello vuota in vis. desktop */
li.cart_item.empty:before {
	background-image: url('/wp-content/themes/chiantiathome/images/cart-bg.png');
}

/* cambia il colore del titolo dell'area cart */
.rpress.item-order {
    border-bottom: 1px solid #0094f3;
	color: #0094f3;
}

/* toglie il bordo ombreggiato all'area cart */
.rpress-section .rpress-sidebar-cart-wrap {
    box-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
}

/* PULSANTI CATEGORIE */
@media (max-width: 768px) {
	ul.rpress-category-lists li.rpress-category-item a {
    	background: #0094f3;
		color: #ffffff;
		font-size:12px;
		border-radius:12px;
		border:none;
    	box-shadow: none;
	}
	
	ul.rpress-category-lists li.rpress-category-item a:hover, ul.rpress-category-lists li.rpress-category-item a:active, .rpress-categories-menu ul li a.active  {
		background: #0094f3;
		color: #ffffff !important;
	}
}

/* ORDINE INVIATO */

/* nasconde la scritta con data e autore */
.entry-header .entry-meta {
	display: none;
}

/* nasconde la barra di navigazione a fondo pagina */
nav.post-navigation {
	display: none;
}

/* COOKIE BANNER */

.pea_cook_wrapper.pea_cook_bottomcenter {
    bottom: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 25px 0;
    width: 100%;
}

.pea_cook_wrapper.pea_cook_bottomcenter p {
	font-size: 16px;
}

button.pea_cook_btn {
    background: #0094f3 !important;
    border: 1px solid #0094f3 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #fff !important;
    font: bold 16px "helvetica neue", helvetica, arial, sans-serif !important;
    line-height: 16px !important;
    padding: 10px 5px !important;
    text-shadow: none !important;
    margin-left: 30px !important;
}

@media (max-width: 480px) {
	button.pea_cook_btn {
		display:block;
		margin: 30px auto 0 auto !important;
	}
}

/* banner contenuto non disponibile */

.eucookie {
    line-height: 1.5;
}

/********************************/
/** RESTOPRESS 2.8 **************/
/********************************/

/* LISTA PRODOTTI */

/* nasconde l'icona coltello-forchetta nel menu categorie */
@media only screen and (max-width: 768px) {
	.rp-mb-cat-txt i {
		padding-right: 5px;
		display: none;
	}
}


/* ridimensiona la colonna sinistra (categorie) per gli schermi grandi */
@media (min-width: 1280px) {
	.container {
		max-width: 1250px;
	}
	
	/* colonna categorie */
	.restropress > .rpress-section > .rp-col-lg-2 {
		width: 25%;
	}

	/* colonna carrello */
	.restropress > .rpress-section > .rp-col-lg-4 {
		width: 25%;
	}
}

/* CHECKOUT */

/* allarga la tabella con il riepilogo dell'ordine */
#rpress_checkout_cart_wrap table {
    width: 100%;
}

/* toglie l'asterico rosso dal campo postal code */
#rpress_checkout_form_wrap .rpress-postcode span.rpress-required-indicator {
	display: none;
}


/* nasconde il blocco cambio data ordine non funzionante */
.rp-checkout-service-option {
    display: none;
}

/* 17/12/2022 */

/* modifica pulsante "aggiungi al carrello" */
.rpress_fooditem.rpress-grid .rpress_purchase_submit_wrapper a.rpress-add-to-cart.button, 
.rpress_fooditem.rpress-list .rpress_purchase_submit_wrapper a.rpress-add-to-cart.button {
    width: auto !important;
    text-decoration: none !important;
}

a.rpress-add-to-cart .rpress-add-to-cart-label {
    margin-right: 7px !important;
}


