/*!
Theme Name: ameconceptstore
Theme URI: https://www.ameconceptstore.com/
Author: Francesco Cardarelli
Author URI: https://francescocardarelli.com
Description: Sito ufficiale di ameconceptstore
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: amc
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/


/* ! Reset */
body, html{ background-color: var(--dust-color); font-size: 16px; box-sizing: border-box;margin: 0;padding: 0;}
*,*:before,*:after{ box-sizing: border-box; }
h1,h2,h3,h4,h5,h6, p, ol, ul{margin: 0;padding: 0;}

img {
  border: none;
  max-width: 100%;
  height: auto;
}
@font-face {
    font-display: swap;
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    src: url(./fonts/lato-latin-regular.woff2) format("woff2");
  }
@font-face {
    font-display: swap;
    font-family: "Circe";
    font-style: normal;
    src: url(./fonts/circe-bold.woff2) format("woff2");
  }
  @font-face {
      font-display: swap;
      font-family: "circe-light";
      font-style: normal;
      src: url(./fonts/circe-light.woff2) format("woff2");
    }
:root{
	--black-color: #07090D;
	--dust-color: #F2F2F2;
  --gunsmoke-color: #848c8b;
  --shadow: #222226;
}
.content-grid {
  --container-max-width: 100%;
  --min-inline-margin: 2rem;
  display: grid;
  grid-template-columns:
    [full-width-start breakout-left-start] minmax(1rem, 1fr)
    [content-start breakout-right-start] min(
      100% - var(--min-inline-margin),
      var(--container-max-width)
    )
    [content-end breakout-left-end] minmax(1rem, 1fr)
    [full-width-end breakout-right-end];
}

.content-grid > *,
.full-width > * {
  grid-column: content;
}

.content-grid > .full-width {
  grid-column: full-width;
  display: grid;
  grid-template-columns: inherit;
}

.breakout-right {
  grid-column: breakout-right!important;
}

.breakout-left {
  grid-column: breakout-left!important;
}
.content-grid > .alignfull {
  grid-column: full-width;
}
body{
  color: var(--black-color);
  font-size: 0.975rem;
  line-height: 1.5;
}
body,input,textarea,select,button {
  font-family: "Lato", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Circe", "Avenir", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  text-wrap: balance;
}
/* Desktop: maggiori differenze tra h1 e h2 */
h1 { font-size: clamp(3rem, 6vw, 4.2rem);}
h2 { font-size: clamp(2.25rem, 5vw, 2.3rem); }
h3 { font-size: clamp(2rem, 4vw, 2rem); }
h4 { font-size: clamp(1.75rem, 3vw, 1.8rem);  }
h5 { font-size: clamp(1.5rem, 2.5vw, 1.7rem);  }
h6 { font-size: clamp(1.25rem, 2vw, 1.5rem);  }

/* Mobile: dimensioni proporzionate, ma h2 più piccolo di h1 */
@media (max-width: 767px) {
  h1 { font-size: 2rem;  }
  h2 { font-size: 1.8rem;  }
  h3 { font-size: 1.7rem;  }
  h4 { font-size: 1.5rem;  }
  h5 { font-size: 1.25rem;  }
  h6 { font-size: 1.125rem;  }
}
p {
  font-size: 16.5px;
  font-weight: 400;
  text-wrap: pretty;
}
main {
  margin-block: 4rem;
}
body.home main {
  margin-block-start: 98px; /* margine superiore maggiore */
}
::-webkit-input-placeholder {
  color: var(--black-color);
}
/* HEADER */
/* Admin bar fix */
.admin-bar .marquee {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar .marquee {
    top: 46px;
  }
}
.admin-bar header {
  top: calc(30px + 32px); /* Marquee + WP admin */
}
@media screen and (max-width: 782px) {
  .admin-bar header {
    top: calc(30px + 46px);
  }
}
.topbar {
  position: relative;
}
.marquee {
  position: fixed !important;
  top: 0;
  width: 100%;
  height: 30px;
  background-color: var(--black-color, #000);
  overflow: hidden;
  z-index: 99;
  display: flex;
  align-items: center;
}
.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 90s linear infinite;
}
.marquee-content span {
  padding: 0 10px;
  font-size: 0.8rem;
  color: #fff;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
header{
  position: fixed;
  max-height: 70px;
  top: 30px;
  left: 0;
  z-index: 115;
  background-color: #fff;
  width: 100%;
}
.header__content{
  display: flex;
  justify-content: space-between;
  width: 100%;
  position: relative;
}
.header__content-wrapper {
  display: flex;
  gap: 0rem;
}
.header__logo{
  align-self: center;
  justify-self: center;
  line-height: 0;
}
.logo img {
  width: 110px;
  height: 25px;
}
.nav-right{
  position: relative;
  display: inline-flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  min-width: 140px;
  height: 68px;
}
@media (min-width: 1200px) {
  header{
    padding-block: 0rem;
  }
  .logo img {
    width: 140px;
    height: 45px;
  }
  .header__content-wrapper {
    gap: 3.5rem;
  }
}
/* MENU */
.menu {
  list-style: none;
  display: flex;
  flex-direction: row;
  padding-bottom: 0
}
.menu li {
  font-size: .75rem;
  color: var(--black-color);
  text-transform: uppercase;
  letter-spacing: 1px;
  list-style-type: none;
  position: relative
}
.menu .menu-item-has-children {
  margin-right: 20px
}
.menu .submenu-arrow {
  cursor: pointer;
  position: absolute;
  top: 55%;
  right: -15px;
  transform: translateY(-50%)
}
.menu a {
  display: inline-block;
  text-decoration: none;
  color: var(--black-color);
  -webkit-transition: .3s;
  transition: .3s;
  padding: 25px 10px
}
.menu a:hover,.current-menu-item>a {
  color: var(--shadow)
}
.first-submenu,.second-submenu,.megamenu {
  list-style-type: none;
  margin: 0;
  padding: 0;
  transition: .3s all cubic-bezier(.445,.05,.55,.95);
  transition-delay: .2s;
  z-index: 99998;
  background-color: #fff
}
#megamenu-list .menu-item>a {
  text-transform: uppercase;
}
@media (min-width: 1200px) {
  .navbar{display: none;}
  .first-submenu,.second-submenu,.megamenu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    transition: .3s all cubic-bezier(.445,.05,.55,.95);
    transition-delay: .2s;
    z-index: 99998;
    background-color: #fff;
    padding-block-start:1.875rem;
    padding-inline-end:1.25rem;
    padding-block-end:1.875rem;
    padding-inline-start:1.25rem;
  }
  .first-submenu > li.menu-item-has-children > a {
    font-size: 0.975rem;
    line-height: 1.3125rem;
    font-weight: 600;
  }
  .first-submenu,.second-submenu {
    position: absolute;
    top: auto;
    left: 0;
    width: 250px;
    min-width: 250px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    border-top: 1px solid var(--black-color);
    padding: 20px 0;
    box-shadow: rgba(149,157,165,.2) 0px 8px 24px;
    transform: translate(0,20px);
    opacity: 0;
    pointer-events: none
  }
  .second-submenu {
    position: absolute;
    top: -20px;
    left: 240px;
    padding: 20px;
    background-color: #fff;
    border-left: 1px solid #f3f3f3
  }
  .first-submenu .menu-item-has-children {
    margin-right: 0
  }
  .first-submenu .submenu-arrow {
    top: 50%;
    right: 15px;
    transform: translateY(-50%) rotate(-90deg)
  }
  .first-submenu .menu-item>a,.second-submenu .menu-item>a,.mega-menu .menu-item>a {
    color: var(--secondary);
    transition: .3s all cubic-bezier(.445,.05,.55,.95);
    position: relative;
    width: 100%;
    padding: 0 20px
  }
  .first-submenu .menu-item>a:hover,.second-submenu .menu-item>a:hover,.megamenu .menu-item>a:hover {
    color: var(--primary)
  }
  #megamenu-list .first-submenu,#megamenu-list .second-submenu {
    gap: 0
  }
  .admin-bar .sticky-menu #megamenu-list .megamenu {
    top: 75px !important
  }
  .sticky-menu #megamenu-list .megamenu {
    top: 75px !important
  }
  #megamenu-list .megamenu {
    position: fixed;
    left: 0;
    background-color: #fff;
    border-top: 1px solid var(--black-color);
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr))!important;
    opacity: 0;
    pointer-events: none;
    box-shadow: rgba(0,0,0,.1) 0px 20px 25px -5px,rgba(0,0,0,.04) 0px 10px 10px -5px;
    padding-block-start:1.875rem;
    padding-inline-end:1.25rem;
    padding-block-end:1.875rem;
    padding-inline-start:1.25rem;
  }
  #megamenu-list .menu-item>a {
    position: relative;
    width: 100%;
    padding: 0 0 2vh;
  }
  #megamenu-list .menu-item>a:after,#megamenu-list .menu-item>a:before {
    position: absolute;
    content: "";
    bottom: 1.5vh;
    left: 0;
    height: 1px;
    width: 80%;
    transition: opacity .6s cubic-bezier(.445,.05,.55,.95)
  }
  #megamenu-list:hover .megamenu,
  #megamenu-list:focus-within .megamenu {
    opacity: 1;
    pointer-events: all
  }
  .menu-item-has-children:hover .first-submenu,.first-submenu .menu-item-has-children:hover .second-submenu {
    opacity: 1;
    pointer-events: all;
    transform: translate(0,0)
  }
  /* disabilita l'hover sul refresh pagina */
  body.hover-disabilitato .menu-item-has-children:hover .first-submenu,
  body.hover-disabilitato .first-submenu .menu-item-has-children:hover .second-submenu,
  body.hover-disabilitato #megamenu-list:hover .megamenu {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translate(0, 20px) !important;
}
}

/*main menu mobile */
@media (max-width: 1200px) {
  /* burger */
  .navbar{
    display: block!important;
    cursor: pointer;
    background-color: transparent;
    border: none;
    margin-top: 3px;
    z-index: 998;
  }
  .icon-bar {
    display: block;
    background-color: var(--black-color);
    width: 35px;
    height: 1.5px;
    transition: transform 0.2s ease-in-out;
  }
  .icon-bar:first-child {
    margin-bottom: 10px;
  }
  .navbar.active .icon-bar:first-child {
    transform: rotate(45deg) translate(3px, 3px);
  }
  .navbar.active .icon-bar:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .menu {
    display:block;
    position: fixed;
    top: 0;
    left: 0;
    width: 65%;
    height: 100%;
    z-index: 99997;
    padding: 140px 5% 0;
    transform: translateX(-100%);
    overflow-y: scroll !important;
    background: #fff;
    -webkit-transition: all .5s ease-in-out;
    transition: all .5s ease-in-out
  }
  .menu .menu-item>a {
    padding: 15px 0
  }
  .sub-menu.menu-item-has-children a,.menu .menu-item-has-children:first a {
    color: var(--secondary) !important
  }
  .sub-menu .menu-item-has-children {
    margin-right: 0
  }
  .sub-menu .menu-item-has-children ul{
    margin-block-end: 1rem;
  }
  .menu .submenu-arrow {
    top: 17px;
    transform: translateY(0);
    pointer-events: all
  }
  .first-submenu .submenu-arrow {
    top: 11px;
    right: 0;
    transform: translate(0)
  }
  .submenu-arrow svg {
    pointer-events: none;
  }
  .first-submenu,.second-submenu,.megamenu {
    height: 0;
    padding: 0;
    overflow: hidden;
    transition: .4s all cubic-bezier(.445,.05,.55,.95)
  }
  .first-submenu .menu-item>a,.second-submenu .menu-item>a,.megamenu .menu-item>a {
    padding: 9px 0;
    color: var(--black-color);
    font-size: .7rem;
    opacity: 0
  }
  .first-submenu > li.menu-item-has-children > a {
    font-size: 0.775rem;
    line-height: 1.3125rem;
    font-weight: 600;
  }
  .sub-menu .menu-item a:hover {
    color: var(--primary) !important
  }
  .wide {
    transform: translateX(0);
  }
  .apri-sottomenu {
    height: auto;
    padding: 0px 5px;
    overflow: visible
  }
  .apri-sottomenu a {
    opacity: 1 !important
  }
  .stato-link {
    color: var(--gunsmoke-color) !important
  }
}

/* ------------------------------------------------------------------------- *
/* BREADCRUMBS
/* ------------------------------------------------------------------------- */
.breadcrumbs{
  margin-block-end: 1rem;
  color: var(--gunsmoke-color);
  font-size: .92em;
}
.breadcrumbs a{
  color: var(--gunsmoke-color);
}

/* ------------------------------------------------------------------------- *
/* FOOTER
/* ------------------------------------------------------------------------- */
footer{
  width: 100%;
  margin-block-start: 3rem;
  background-color: var(--dust-color);
  color: var(--black-color);
  border-top: 1px solid var(--gunsmoke-color);
}
.footer-widget{
  padding-block: 3rem;
  gap: 4rem;
  display: grid;
}
.footer-bottom{
  padding-block: 1rem;
  border-top: 1px solid var(--gunsmoke-color);
  background-color: var(--black-color);
  color: var(--dust-color);
}
.footer-bottom p{
  font-size: 0.9rem;
  letter-spacing: 0.09px
}
@media (min-width: 768px) {
  .footer-widget{
    grid-template-columns: repeat(4, 1fr);
  }
}
/* ------------------------------------------------------------------------- *
/* GUTENBERG
/* ------------------------------------------------------------------------- */
.wp-block-list li {
  padding: 15px 0;
  margin-left: 30px;
  list-style-type: circle;
}
.widget-col .wp-block-list li a {
  padding: 15px 0;
}
/* ------------------------------------------------------------------------- *
/* ACCESIBILITA
/* ------------------------------------------------------------------------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: #fff;
  color: #000;
  padding: 1rem 2rem;
  text-decoration: none;
  z-index: 10000;
}
:focus-visible {
  outline: 3px solid var(--gunsmoke-color;);
  outline-offset: 1px;
  border-radius: 0;
}
/* navigazione da tastiera per il menu, sottomenu e megamenu */
.menu li:focus-within ul{visibility: visible; opacity: 1; transform: translateY(0);}
#megamenu-list .megamenu:focus-within {
  opacity: 1;
  pointer-events: auto;
}
#megamenu-list .megamenu li:focus-within > ul {
  visibility: visible;
  opacity: 1;
  display: block; /* se serve */
}

/* ------------------------------------------------------------------------- *
/* CONTACT FORM
/* ------------------------------------------------------------------------- */
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  margin-bottom: 1rem;
}
.wpcf7 input[type=text],
.wpcf7 input[type=email],
.wpcf7 input[type=url],
.wpcf7 input[type=password],
.wpcf7 input[type=search],
.wpcf7 input[type=number],
.wpcf7 input[type=tel],
.wpcf7 input[type=range],
.wpcf7 input[type=date],
.wpcf7 input[type=month],
.wpcf7 input[type=week],
.wpcf7 input[type=time],
.wpcf7 input[type=datetime],
.wpcf7 input[type=datetime-local],
.wpcf7 input[type=color],
.wpcf7 textarea {
  color: var(--black-color);
  background: var(--dust-color);
  background-image: -webkit-linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
  border: 1px solid var(--black-color);
  display: block;
  border-radius: 0;
  padding: 1em;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.wpcf7 a {
  color: var(--black-color);
}
.wpcf7 a:hover {
  text-decoration: underline;
}
.wpcf7-form label {
	color: var(--black-color)!important;
}
.wpcf7 input[type="submit"]:hover {
  color: var(--dust-color)!important;
  background-color: var(--black-color);
  cursor: pointer;
}
.wpcf7-not-valid-tip {
    color: #ffb900;
  }
.wpcf7-submit {
  display: inline-block;
  padding: 16px 30px !important;
  font-size: .75rem;
  text-decoration: none;
  color: var(--black-color);
  text-transform: uppercase;
  border: 1px solid var(--black-color) !important;
  border-radius: 0 !important;
  -webkit-transition: .3s;
  transition: .3s;
}
/* ------------------------------------------------------------------------- *
/* SEARCH FORM
/* ------------------------------------------------------------------------- */
.header__content .label-search svg {
    width: 18px !important;
    height: auto !important;
}
button.label-search {
    background: none;
    border: none;
    width: 45px;
    height: 45px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.overlay-search {
    display: none;
    position: absolute;
    top: 0;
    height: 100vh;
    background: var(--black-color);
    width: 100%;
    z-index: 99;
    opacity: .5;
}
.overlay-search.active-search {
    display: block;
}
.header__content .search-form {
    opacity: 0;
    position: absolute;
    top: 0px;
    z-index: 999;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    transform: translateY(-100%);
    background-color: #fff;
    transition: 0.5s ease-in-out;
}
.header__content .search-form.active-search {
    opacity: 1;
    transform: translateY(0);
}
.header__content .search-form input {
    height: 48px;
    width: 100%;
    border: 0;
    width: 100%;
    text-align: left;
    font-size: 1.2rem;
    color: var(--black-color);
    margin-left: 5px;
    outline: 1px solid;
    padding: 1rem 0.5rem;
}
.header__content .search-form .search-icon svg {
    width: 20px;
    margin-right: 5px;
    margin-left: 15px;
}
.header__content #find-product.active-search .close-search {
    transform: translateY(0px);
    opacity: 1;
    z-index: 99999;
    transition: 0.5s;
}
.header__content .close-search {
    position: absolute;
    width: 45px;
    height: 45px;
    transform: translateY(-50px);
    display: inline-block;
    opacity: 0;
    right: 18px;
    border: none;
    transition: 0.3s;
    background-color: #fff;
    cursor: pointer;
}
.header__content a#find-product svg {
    width: 20px;
    height: 20px;
}
.header__content .search-form.active-search + .close-search {
    transform: translateY(0);
    opacity: 1;
}
/*risultati ricerca */
.search-result {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 999;
  display: none;
  opacity: 0;
  border-bottom: 1px solid;
  transition: all 0.3s ease;

  /* AGGIUNTE QUI SOTTO */
  max-height: calc(100vh - 120px); /* lascia spazio per header ecc. */
  overflow-y: auto;
}
.search-product-loop {
  margin-block: 2rem 0;
}
.search-product-results {
  margin-block: 1rem;
  font-weight: 600;
}
.search-result.active-search {
  opacity: 1;
  display: block;
}
/* Contenitore Swiper valido solo sotto i 1180px */
.search-product-loop .search-swiper-container {
  position: relative;
  width: 100%;
  padding-block: 0.5rem 2.5rem;
  margin-block-end: 1rem;
}
/* Contenitore Swiper interno */
.swiper-wrapper {
  /* Flex gestito da Swiper */
}
/* Slide individuale (mobile e tablet) */
.search-product-loop .swiper-slide {
  max-width: 70%;
  flex: 0 0 70%;
  scroll-snap-align: start;
}
/* Immagini */
.search-product-loop .amc-custom-img-loop img {
  width: 100%;
  height: auto;
  display: block;
}
/* Pagina e scrollbar visibili solo su Swiper */
.search-product-loop .swiper-scrollbar {
  display: block;
}
.swiper-scrollbar .swiper-scrollbar-horizontal {
  margin-block: 3rem;
}
@media (max-width: 1023px) {
  .search-product-loop .swiper-slide {
    max-width: 70%;
    flex: 0 0 70%;
    margin-right: 16px;
  }
  .search-product-loop .swiper-slide:last-child {
    margin-right: 0;
  }
}
@media (min-width: 1024px) {
  .search-swiper-container {
    padding-inline: 0;
  }
  .search-product-loop .swiper-wrapper {
    display: flex !important;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
  }
  .search-product-loop .swiper-slide {
    max-width: 22% !important;
    flex: 0 0 22% !important;
  }
  .search-product-loop .swiper-scrollbar {
    display: none !important;
  }
}
