/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/

body, html {
	scroll-behavior: smooth;
}
@media screen and (min-width: 782px) {
    .admin-bar .sticky-top {
		top: 32px;
	} 
}
.header-wrap {
    z-index: 11;
}
div#page {
    padding-left: 0;
    padding-right: 0;
}
.page-header, .sidebar .widget, .site-main>* {
    margin-bottom: 0px !important;
}
.yoast-breadcrumbs {
    margin-bottom: 1.5rem;
}
.home header.bg-accent, .page-id-13741 header.bg-accent {
    background: transparent;
}
/*section:first-of-type {
    padding-top: calc(6rem + 140px);
}
.single-prodotto section:first-of-type {
    padding-top: calc(3rem + 140px);
}
@media (max-width: 767px) {
	section:first-of-type {
		padding-top: calc(4rem + 90px);
	}
	.single-prodotto section:first-of-type {
		padding-top: calc(3rem + 90px);
	}
}*/
.wp-block-table thead {
	border-bottom: 2px solid var(--accent) !important;
}
.tablepress tfoot th, .tablepress thead th, .wp-block-table thead th {
 	background-color: #d01a1a00;
    font-weight: 700;
    vertical-align: top;
    color: black;
    text-transform: uppercase;
    font-size: x-small;
    border-bottom: 1px solid var(--accent);
}
.bg-dark .tablepress tfoot th, .bg-dark .tablepress thead th, .bg-dark .wp-block-table thead th {
	color: white;
}
.bg-dark .tablepress>:where(tbody.row-striping)>:nth-child(odd of :where(:not(.child,.dtrg-group)))+:where(.child)>*, .bg-dark .tablepress>:where(tbody.row-striping)>:nth-child(odd of :where(:not(.child,.dtrg-group)))>* {
	background-color: var(--surface-dark);
    color: white;
}
.bg-dark .tablepress>:where(tbody.row-striping)>:nth-child(even of :where(:not(.child,.dtrg-group)))+:where(.child)>*, .bg-dark .tablepress>:where(tbody.row-striping)>:nth-child(even of :where(:not(.child,.dtrg-group)))>* {
    background-color: var(--surface-medium);
    color: white;
}
.bg-dark .tablepress>.row-hover>tr:has(+.child:hover)>*, .bg-dark .tablepress>.row-hover>tr:hover+:where(.child)>*, .bg-dark .tablepress>.row-hover>tr:where(:not(.dtrg-group)):hover>* {
	background-color: var(--surface-medium);
    color: white;
}
.tablepress tbody td {
    vertical-align: bottom;
}
td.column-1, thead .column-1 {
    min-width: 100px;
}
.tablepress tbody tr td:first-child {
    font-weight: bold;
}
.tablepress tbody td, .tablepress tfoot th {
    font-size: smaller;
    border-color: white;
}
.bg-dark .tablepress tbody td, .bg-dark .tablepress tfoot th {
    border-color: var(--surface-medium);
}
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
	background-color: #f9f9f9 !important;
}
.bg-dark .wp-block-table.is-style-stripes tbody tr:nth-child(odd) {
    background-color: var(--surface-medium) !important;
}
.wp-block-table.is-style-stripes td, .wp-block-table.is-style-stripes th {
	padding: .5rem !important;
}
.wp-block-table.is-style-stripes {
	border-bottom: none;
}
.wpml-ls-item .gb-menu-link {
    display: block !important;
    border: 1px solid rgba(255, 255, 255, 1);
    border-radius: 50px;
}
.wpml-language-switcher-block.is-layout-flex.is-responsive.has-child-selected.wp-block-navigation.uppercase {
	width: auto !important;
}
.btn-base {
	background-color: var(--base);
	border-color: var(--base);
	color: var(--contrast);
}
.btn-base:hover, .btn-base:focus) {
	color: var(--base-3);
}
.product-filters__link.is-active {
	filter: brightness(0.72);
}
@media (max-width: 767px) {
	nav.product-filters {
		margin-right: -1rem;
	}
	ul.product-filters__list {
		flex-wrap: nowrap;
    	overflow-x: scroll;
	}
}
.wp-block-terms-query ul {
    margin: 0;
}
.wp-block-terms-query li {
	margin-bottom: 1rem;
}
.wp-block-terms-query li a {
    text-decoration-color: rgba(255, 255, 255, .7);
    text-underline-offset: 4px;
}
.wp-block-search__button.has-icon, input[type="search"] {
	border-radius: 3px;
}
input[type=checkbox] {
  /* Add if not using autoprefixer */
  -webkit-appearance: none;
  /* Remove most all native input styles */
  -moz-appearance: none;
       appearance: none;
  /* For iOS < 15 */
  /* Not removed via appearance */
  font: inherit;
  color: currentColor;
  width: 1.15em;
  height: 1.15em;
  min-height: 26px;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
}

input[type=checkbox]::before {
  content: "";
  width: 0.65em;
  height: 0.65em;
  -webkit-clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
          clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform: scale(0);
  transform-origin: bottom left;
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em var(--accent);
  /* Windows High Contrast Mode */
  background-color: CanvasText;
}

input[type=checkbox]:checked::before {
  transform: scale(1);
}

input[type=checkbox]:focus {
  outline: max(2px, 0.15em) solid currentColor;
  outline-offset: max(2px, 0.15em);
}

input[type=checkbox]:disabled {
  --form-control-color: var(--form-control-disabled);
  color: var(--form-control-disabled);
  cursor: not-allowed;
}
.gb-overlay--standard, .gb-overlay[open] {
    overflow-y: auto;
}

/* Cards */
@media (hover: hover) and (pointer: fine) {

    .card {
        position: relative;
        overflow: hidden;
        transition:
            transform .45s cubic-bezier(.22, 1, .36, 1),
            border-color .45s ease,
            box-shadow .45s ease;
    }

    /* Immagine prodotto + immagine categoria */
    .card > a:first-child img,
    .card > img {
        transition: transform .7s cubic-bezier(.22, 1, .36, 1);
    }

    /* Riflesso metallico */
    .card::after {
        content: "";
        position: absolute;
        top: -50%;
        left: -70%;
        width: 35%;
        height: 200%;
        pointer-events: none;

        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, .03) 25%,
            rgba(255, 255, 255, .18) 50%,
            rgba(255, 255, 255, .03) 75%,
            transparent 100%
        );

        transform: skewX(-18deg);
        transition: left .8s cubic-bezier(.22, 1, .36, 1);
    }

    .card:hover {
        transform: translateY(-8px);
        border-color: rgba(255, 255, 255, .25);
        box-shadow: 0 14px 30px rgba(0, 0, 0, .18);
    }

    .card:hover > a:first-child img,
    .card:hover > img {
        transform: scale(1.04);
    }

    .card:hover::after {
        left: 140%;
    }
}

@media (hover: hover) and (pointer: fine) {

    .card:hover .object-contain {
        transform: scale(1.035);
    }
}

@media (hover: hover) and (pointer: fine) {

    .card .btn {
        transition:
            transform .35s cubic-bezier(.22, 1, .36, 1),
            filter .35s ease;
    }

    .card:hover .btn {
        transform: translateY(-2px);
        filter: brightness(1.06);
    }
}

@keyframes float {
            0% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-20px);
            }

            100% {
                transform: translateY(0);
            }
        }

.bg-dark :where(.gb-carousel-pagination) .gb-carousel-dot, 
.bg-contrast :where(.gb-carousel-pagination) .gb-carousel-dot {
	background-color: rgba(255, 255, 255, .3);
}
.bg-dark :where(.gb-carousel-pagination) .gb-carousel-dot.is-active, .bg-contrast :where(.gb-carousel-pagination) .gb-carousel-dot.is-active {
    background-color: rgba(255, 255, 255, .8);
}

/* =========================================================
   GRAFFETTE - WPML LANGUAGE SWITCHER
   ========================================================= */


/* ---------------------------------------------------------
   Base
   --------------------------------------------------------- */

.gf-language-switcher {
	position: relative;
	color: inherit;
	font: inherit;
}

.gf-language-switcher__flag {
	display: block;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 auto;
}

.gf-language-switcher__code {
	line-height: 1;
	text-transform: uppercase;
}


/* =========================================================
   DROPDOWN - DESKTOP
   ========================================================= */

.gf-language-switcher--dropdown {
	display: block;
}


/* Trigger */

.gf-language-switcher--dropdown
.gf-language-switcher__toggle {
	appearance: none;

	display: flex;
	align-items: center;
	gap: 7px;

	padding: 8px 10px;

	border: 0;
	border-radius: 8px;

	background: transparent;
	color: inherit;

	font: inherit;
	line-height: 1;

	cursor: pointer;

	transition:
		background-color 180ms ease,
		opacity 180ms ease;
}


.gf-language-switcher--dropdown
.gf-language-switcher__toggle:hover {
	background-color: rgb(255 255 255 / 0.10);
}


.gf-language-switcher--dropdown
.gf-language-switcher__toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}


.gf-language-switcher--dropdown
.gf-language-switcher__toggle[aria-expanded="true"] {
	background-color: rgb(255 255 255 / 0.10);
}


/* Chevron */

.gf-language-switcher__icon {
	display: flex;
	align-items: center;
	justify-content: center;

	transition: transform 180ms ease;
}


.gf-language-switcher--dropdown
.gf-language-switcher__toggle[aria-expanded="true"]
.gf-language-switcher__icon {
	transform: rotate(180deg);
}


/* Dropdown menu */

.gf-language-switcher--dropdown
.gf-language-switcher__menu {
	position: absolute;
	z-index: 1000;

	top: calc(100% + 6px);
	left: 0;

	display: flex;
	flex-direction: column;
	gap: 2px;

	min-width: 100%;

	margin: 0;
	padding: 0;

	list-style: none;

	opacity: 0;
	visibility: hidden;
	pointer-events: none;

	transform: translateY(-6px);

	transition:
		opacity 180ms ease,
		transform 180ms ease,
		visibility 0s linear 180ms;
}


/* Dropdown aperto */

.gf-language-switcher--dropdown
.gf-language-switcher__toggle[aria-expanded="true"]
+ .gf-language-switcher__menu {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;

	transform: translateY(0);

	transition:
		opacity 180ms ease,
		transform 180ms ease,
		visibility 0s;
}


/* Elementi dropdown */

.gf-language-switcher--dropdown
.gf-language-switcher__item {
	margin: 0;
	padding: 0;
}


.gf-language-switcher--dropdown
.gf-language-switcher__link {
	display: flex;
	align-items: center;
	gap: 7px;

	padding: 7px 10px;

	border-radius: 7px;

	color: inherit;
	text-decoration: none;
	white-space: nowrap;

	transition:
		background-color 180ms ease,
		opacity 180ms ease;
}


.gf-language-switcher--dropdown
.gf-language-switcher__link:hover {
	background-color: rgb(255 255 255 / 0.10);
}


.gf-language-switcher--dropdown
.gf-language-switcher__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;

	background-color: rgb(255 255 255 / 0.10);
}



/* =========================================================
   INLINE - MOBILE SIDEOUT
   ========================================================= */

/*
 * Nascosto di default.
 * Lo mostriamo soltanto sotto il breakpoint mobile.
 */

.gf-language-switcher--inline {
	display: none;
}


/* Lista lingue */

.gf-language-switcher--inline
.gf-language-switcher__languages {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 18px;

	margin: 0;
	padding: 0;

	list-style: none;
}


/* Singolo elemento */

.gf-language-switcher--inline
.gf-language-switcher__item {
	margin: 0;
	padding: 0;
}


/* Link e lingua corrente */

.gf-language-switcher--inline
.gf-language-switcher__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;

	padding: 7px 0;

	border-radius: 6px;

	color: inherit;
	text-decoration: none;

	font: inherit;
	line-height: 1;

	white-space: nowrap;

	transition:
		opacity 180ms ease,
		transform 180ms ease;
}


/* Hover delle altre lingue */

.gf-language-switcher--inline
a.gf-language-switcher__link:hover {
	opacity: 0.65;
}


/* Focus tastiera */

.gf-language-switcher--inline
a.gf-language-switcher__link:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}


/* Lingua corrente */

.gf-language-switcher--inline
.gf-language-switcher__link--current {
	font-weight: 600;
	cursor: default;
}


/*
 * Piccolo feedback visivo sulla lingua corrente.
 * Non usiamo opacity: deve restare perfettamente leggibile.
 */

.gf-language-switcher--inline
.gf-language-switcher__link--current::after {
	content: none;
}
.gf-language-switcher--inline
a.gf-language-switcher__link {
	opacity: 0.72;
}

.gf-language-switcher--inline
a.gf-language-switcher__link:hover,
.gf-language-switcher--inline
a.gf-language-switcher__link:focus-visible {
	opacity: 1;
}

.gf-language-switcher--inline
.gf-language-switcher__link--current {
	opacity: 1;
	font-weight: 700;
	cursor: default;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

	/*
	 * Eliminiamo completamente il dropdown desktop
	 * anche dall'accessibility tree.
	 */
	.gf-language-switcher--dropdown {
		display: none;
	}


	/*
	 * Mostriamo la versione inline nel sideout.
	 */
	.gf-language-switcher--inline {
		display: block;
	}


	/*
	 * Sul mobile possiamo dare alle bandiere
	 * leggermente più presenza.
	 */
	.gf-language-switcher--inline
	.gf-language-switcher__flag {
		width: 26px;
		height: 26px;
	}


	.gf-language-switcher--inline
	.gf-language-switcher__link {
		gap: 7px;
		font-size: 0.95em;
	}

}



/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

	.gf-language-switcher__toggle,
	.gf-language-switcher__icon,
	.gf-language-switcher__menu,
	.gf-language-switcher__link {
		transition: none;
	}

}

/* =========================================================
   MAIN MENU
   ========================================================= */


/* ---------------------------------------------------------
   Desktop
   --------------------------------------------------------- */

@media (min-width: 769px) {

	.gb-menu--base > .gb-menu-item > .gb-menu-link {
		position: relative;
		opacity: 0.85;

		transition: opacity 180ms ease;
	}

	.gb-menu--base > .gb-menu-item > .gb-menu-link:hover,
	.gb-menu--base > .gb-menu-item > .gb-menu-link[aria-current="page"] {
		opacity: 1;
	}

	.gb-menu--base > .gb-menu-item > .gb-menu-link::after {
		content: "";

		position: absolute;
		left: 50%;
		bottom: 4px;

		width: calc(100% - 2em);
		height: 1px;

		background-color: white;

		transform: translateX(-50%) scaleX(0);
		transform-origin: center;

		transition: transform 180ms ease;
	}

	.gb-menu--base > .gb-menu-item > .gb-menu-link:hover::after,
	.gb-menu--base > .gb-menu-item > .gb-menu-link:focus-visible::after {
		transform: translateX(-50%) scaleX(1);
	}

	.gb-menu--base > .gb-menu-item > .gb-menu-link:focus-visible {
		outline: 2px solid currentColor;
		outline-offset: 3px;
		border-radius: 3px;
	}

}


/* ---------------------------------------------------------
   Mobile
   --------------------------------------------------------- */

@media (max-width: 768px) {

	.gb-menu--base > .gb-menu-item > .gb-menu-link {
		opacity: 0.72;

		transition:
			opacity 180ms ease,
			transform 180ms ease;
	}

	.gb-menu--base > .gb-menu-item > .gb-menu-link[aria-current="page"] {
		opacity: 1;
		font-weight: 600;
	}

	.gb-menu--base > .gb-menu-item > .gb-menu-link:hover,
	.gb-menu--base > .gb-menu-item > .gb-menu-link:focus-visible {
		opacity: 1;
		transform: translateX(6px);
	}

	.gb-menu--base > .gb-menu-item > .gb-menu-link:active {
		opacity: 0.6;
		transform: translateX(4px);
	}

	.gb-menu--base > .gb-menu-item > .gb-menu-link:focus-visible {
		outline: 2px solid currentColor;
		outline-offset: 5px;
	}

}


/* ---------------------------------------------------------
   Reduced motion
   --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

	.gb-menu--base > .gb-menu-item > .gb-menu-link,
	.gb-menu--base > .gb-menu-item > .gb-menu-link::after {
		transition: none;
	}

	.gb-menu--base > .gb-menu-item > .gb-menu-link:hover,
	.gb-menu--base > .gb-menu-item > .gb-menu-link:focus-visible,
	.gb-menu--base > .gb-menu-item > .gb-menu-link:active {
		transform: none;
	}

}

/* ---------------------------------------------------------
   Footer buttons
   --------------------------------------------------------- */
.generate-back-to-top,
.whatsapp {
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(10px);

	transition:
		opacity 180ms ease,
		transform 180ms ease,
		visibility 180ms ease;
}

.generate-back-to-top.is-visible,
.whatsapp.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
	.generate-back-to-top,
	.whatsapp {
		transition: none;
		transform: none;
	}
}