@import url('reset.css');

::-moz-selection{ background-color: #1b2f93; color: #fff;}
::selection{ background-color: #1b2f93; color: #fff;}

:root {
--alt-color: #1b2f93;
--bg-color: #ededed;
--text-color: #111111;
}

html {scroll-behavior: smooth;}

body {
  font-family: 'Montserrat', sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: 0;
  font-weight: 400;
  -webkit-text-size-adjust: 100%;
}

a {text-decoration: none; color: var(--text-color); cursor: pointer;}
a:hover {color: var(--alt-color);}

ul li, ol li {font-weight: inherit; text-align: left;}

strong {font-weight: 700;}


/* --------------------------------------------------------------------------
        TIPOGRAFIA — unico punto di verità, non ridefinire sezione per sezione
--------------------------------------------------------------------------- */

h1 {font-size: 65px; line-height: 1.2; font-weight: 500; text-transform: uppercase; color: var(--text-color); margin-bottom: 0;}
h2 {font-size: 30px; line-height: 1.28; font-weight: 500; text-transform: uppercase; color: var(--text-color); margin-bottom: 20px;}
h3 {font-size: 30px; line-height: 1.28; font-weight: 500; color: var(--text-color); margin-bottom: 20px;}
h4 {font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--text-color); margin-bottom: 5px;}
p  {font-size: 15px; line-height: 1.3; margin-bottom: 15px;}


/* --------------------------------------------------------------------------
        COOKIE BAR
--------------------------------------------------------------------------- */

#cookieChoiceInfo {display:none; color: #CCC; bottom: 0; top: inherit !important; font-size: 12px; line-height: 20px; padding: 20px 30px 19px 32px !important; background-color: black !important; text-align: left !important}
#cookieChoiceInfo a#cookieChoiceDismiss {position: absolute;top: 20px;right: 20px; font-size: 15px}
#cookieChoiceInfo a {color: white;}
#cookieChoiceInfo a:hover {color: #CCC;}


/* --------------------------------------------------------------------------
        CSS BASE
--------------------------------------------------------------------------- */

.only-mobile {display: none;}
.not-mobile {display: block;}
body.stop-scroll {overflow: hidden; height:100%;}

.wrapper {position: relative; height: auto; overflow: hidden; width: 90%; max-width: 1300px; margin: 0 auto;}
.wrapper-small {max-width: 610px}
.wrapper-medium {max-width: 800px}
.wrapper-big {max-width: 1200px}

.overflow-visible {overflow: visible !important;}
.flex-vertical-center {display: flex; flex-direction: row; justify-content: space-between; align-items: center;}
.flex {display: flex; flex-direction: row; align-content: center; justify-content: space-between;}

section.default-section {padding: 80px 0;}
section.default-section p:last-child {margin-bottom: 0}
section.no-padding-bottom {padding-bottom: 0}
section.no-padding-top {padding-top: 0}
.first-section {padding-top: 150px !important;}

hr.divider {border: 0; border-top: 1px solid #c4c4c4; height: 0; margin: 45px 0;}


/* --------------------------------------------------------------------------
        HEADER / MENU
--------------------------------------------------------------------------- */

header {position: absolute; width: 100%; top: 0; padding: 39px 0; z-index: 3;}
header .wrapper {display: flex; flex-direction: row; justify-content: space-between; align-items: center; overflow: visible;}

#logo img {display: block; width: 138px; height: auto;}

#menu {position: relative;}
#menu ul {padding-left: 0; margin: 0; display: flex;}
#menu ul li {list-style: none; margin: 0 0 0 24px;}
#menu ul li a {font-size: 14px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; white-space: nowrap;}

header.header-light #menu ul li a {color: #FFF;}
header.header-light #menu ul li a:hover, header.header-light #menu ul li.active a {color: rgba(255,255,255,0.65);}
header.header-dark #menu ul li a {color: var(--text-color);}
header.header-dark #menu ul li a:hover, header.header-dark #menu ul li.active a {color: var(--alt-color);}


/* --------------------------------------------------------------------------
        HAMBURGER / MENU MOBILE
--------------------------------------------------------------------------- */

#show-hide-menu {position: absolute; top: 30px; right: 30px; z-index: 4;}  
.hamburger {display: none; padding: 6px; cursor: pointer; background: transparent; border: 0;}
.hamburger-box {width: 26px; height: 20px; display: inline-block; position: relative;}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {width: 26px; height: 2px; background: var(--text-color); border-radius: 2px; position: absolute; left: 0; transition: transform .3s ease, opacity .3s ease, top .3s ease;}
.hamburger-inner {top: 9px;}
.hamburger-inner::before {content: ""; top: -9px;}
.hamburger-inner::after {content: ""; top: 9px;}
.hamburger.is-active .hamburger-inner {background: transparent;}
.hamburger.is-active .hamburger-inner::before {top: 0; transform: rotate(45deg);}
.hamburger.is-active .hamburger-inner::after {top: 0; transform: rotate(-45deg);}
header.header-light .hamburger-inner, header.header-light .hamburger-inner::before, header.header-light .hamburger-inner::after {background: #FFF;}
header.open .hamburger-inner::before, header.open .hamburger-inner::after {background: var(--text-color);}

#menu-mobile {display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 2; background: var(--bg-color); padding: 130px 30px 40px 30px; overflow-y: auto;}
#menu-mobile ul {padding-left: 0; margin: 0;}
#menu-mobile ul li {list-style: none; margin-bottom: 25px;}
#menu-mobile ul li a {color: var(--text-color); font-size: 22px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500;}


/* --------------------------------------------------------------------------
        BOTTONI — pillola outline (look del riferimento visivo del cliente)
--------------------------------------------------------------------------- */

.bottone {display: inline-flex; align-items: center; gap: 10px; background: transparent; border: 1px solid var(--text-color); color: var(--text-color); border-radius: 50px; padding: 14px 27px; font-size: 14px; line-height: 19px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500; transition: background .25s ease, color .25s ease;}
.bottone:hover {background: var(--text-color); color: var(--bg-color);}

.bottone.bottone-light {border-color: #FFF; color: #FFF;}
.bottone.bottone-light:hover {background: #FFF; color: var(--text-color);}


/* --------------------------------------------------------------------------
        MARQUEE INFINITO (CSS puro)
--------------------------------------------------------------------------- */

.marquee {position: relative; width: 100%; overflow: hidden; padding: 8px 0;}
.marquee-track {display: flex; width: max-content; animation: marquee-scroll 35s linear infinite;}
.marquee-group {display: flex; white-space: nowrap; font-size: 25px; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 500;}
.marquee-full .marquee-track {margin-left: 5%;}
.marquee-offerte {margin-top: 45px;}
.marquee-prodotti {margin-top: 30px;}

@keyframes marquee-scroll {
  from {transform: translateX(0);}
  to   {transform: translateX(-50%);}
}


/* --------------------------------------------------------------------------
        PLACEHOLDER VIDEO E MAPPE (Jacopo inserisce embed e iframe)
--------------------------------------------------------------------------- */

.video-placeholder {position: relative; width: 100%; aspect-ratio: 16 / 9; background: #2b2b2b no-repeat center center; background-size: cover; display: flex; align-items: center; justify-content: center;}
.video-placeholder .play {width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,0.55); display: flex; align-items: center; justify-content: center;}
.video-placeholder .play::before {content: ""; display: block; margin-left: 5px; border-left: 20px solid #FFF; border-top: 12px solid transparent; border-bottom: 12px solid transparent;}
.mappa-placeholder {width: 100%; aspect-ratio: 1.4 / 1;}
.mappa-placeholder iframe {display: block;}

/* --------------------------------------------------------------------------
        SLIDER (Slick) — home e chi siamo
--------------------------------------------------------------------------- */

.slider {position: relative;}
.slider img {width: 100%; display: block;}
.slider-4-3 img {aspect-ratio: 4 / 3; object-fit: cover;}
.slider-gallery img {aspect-ratio: 1004 / 591; object-fit: cover;}

.slick-prev, .slick-next {position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 43px; height: 60px; padding: 0; border: 0; background: rgba(255,255,255,0.45); font-size: 0; line-height: 0; cursor: pointer; transition: background .25s ease;}
.slick-prev:hover, .slick-next:hover {background: rgba(255,255,255,0.75);}
.slick-prev {left: 0;}
.slick-next {right: 0;}
.slick-prev::before, .slick-next::before {content: ""; display: block; width: 12px; height: 12px; margin: 0 auto; border-top: 2px solid #333; border-right: 2px solid #333;}
.slick-prev::before {transform: rotate(-135deg); margin-left: 18px;}
.slick-next::before {transform: rotate(45deg); margin-left: 12px;}


/* --------------------------------------------------------------------------
        HOME
--------------------------------------------------------------------------- */

#hero {position: relative; height: 100vh; min-height: 620px; background: url('../img/home/hero.jpg') no-repeat center center; background-size: cover; display: flex; align-items: center;}
#hero .wrapper {overflow: visible;}
#hero h1 {color: #FFF; max-width: 800px; margin-bottom: 50px;}

.blocco-home {padding: 30px 0;}
.blocco-home h2 {margin-bottom: 28px;}


/* --------------------------------------------------------------------------
        CHI SIAMO
--------------------------------------------------------------------------- */

.gallery-negozio {margin-bottom: 32px;}


/* --------------------------------------------------------------------------
        PRODOTTI
--------------------------------------------------------------------------- */

.card-bianca {background: #FFF; width: 100%;}
.card-bianca img {width: 100%; display: block;}

.gruppo-marchi {margin-bottom: 20px;}
.gruppo-marchi .lettera {font-size: 30px; line-height: 38px; font-weight: 500; margin-bottom: 8px;}
.elenco-marchi {padding-left: 0; margin: 0;}
.elenco-marchi li {list-style: none; font-size: 15px; line-height: 33px;}

.img-verticale {width: 100%; display: block;}


/* --------------------------------------------------------------------------
        OFFERTE
--------------------------------------------------------------------------- */

.card-offerta img {width: 100%; display: block; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 30px;}


/* --------------------------------------------------------------------------
        CONTATTI
--------------------------------------------------------------------------- */

.blocco-negozio .mappa-placeholder {margin: 40px 0 30px 0;}
form {margin-top: 30px;}


/* --------------------------------------------------------------------------
        FOOTER
--------------------------------------------------------------------------- */

footer {background: var(--alt-color); color: #FFF; padding: 90px 0;}
footer p {color: #FFF;}
footer h4 {color: #FFF;}
footer a {color: #FFF;}
footer a:hover {color: rgba(255,255,255,0.65);}
footer ul {padding-left: 0; margin-left: 0}
footer ul li {list-style: none}

footer hr.divider {border-top-color: rgba(255,255,255,0.35); margin: 48px 0 32px 0;}

.footer-social {display: inline-block; margin-top: 26px; color: #FFF;}
.footer-social:hover {color: rgba(255,255,255,0.65);}
.footer-social svg, .footer-social img {width: 30px; height: 30px; display: block;}

footer .blocco-orari {margin-top: 20px;}
.footer-privacy {margin: 45px 0 0 0;}
.footer-privacy a {text-decoration: underline;}


/* --------------------------------------------------------------------------
        FORM
--------------------------------------------------------------------------- */

label {font-size: 15px; line-height: 1.3; font-weight: 500; color: var(--text-color); letter-spacing: 0; display: block; margin-bottom: 6px;}
label .required {font-weight: 400; color: #8b8b8b;}

input, select {border: 1px solid #c4c4c4; background: #f7f7f7; padding: 12px 14px; position: relative; height: auto; overflow: hidden; width: 100%; display: block; margin-bottom: 20px; border-radius: 0;}
textarea {border: 1px solid #c4c4c4; background: #f7f7f7; padding: 12px 14px; position: relative; height: 130px; overflow: auto; display: block; width: 100%; margin-bottom: 20px; border-radius: 0;}
input, select, textarea {font-size: 15px; letter-spacing: 0; color: var(--text-color); line-height: 1.3; font-family: inherit; font-weight: 400;}
input:focus, select:focus, textarea:focus, button:focus {outline: none; border-color: var(--text-color);}

.form-nome {display: flex; gap: 15px;}
.form-nome > div {width: 50%;}

.form-checkbox {position: relative; height: auto; overflow: hidden; margin-bottom: 25px;}
.form-checkbox label {display: inline; font-weight: 400;}
input.checkbox {-webkit-appearance: checkbox !important; padding: 0; cursor: pointer; width: auto; margin: 0 10px 0 0; float: left; position: relative; top: 3px; border: 1px solid #c4c4c4;}

input.submit {margin-top: 0; cursor: pointer; position: relative; height: auto; overflow: hidden; background: #000; font-size: 13px; line-height: 16px; font-weight: 700; letter-spacing: 1px; color: #FFF; width: auto; display: inline-block; text-align: center; text-transform: uppercase; padding: 13px 26px; border: 0; border-radius: 0;}
input.submit:hover {background: var(--alt-color);}


/* --------------------------------------------------------------------------
        FADE IN / FADE OUT
--------------------------------------------------------------------------- */

.js .hideme, .js .hideme-slideup, .js .hidemeslow {opacity: 0;}

.slideUp{animation-name:slideUp;-webkit-animation-name:slideUp;animation-duration:1s;-webkit-animation-duration:1s;animation-timing-function:ease;-webkit-animation-timing-function:ease;visibility:visible}
@keyframes slideUp {
    0%{transform:translateY(100%)}
    100%{transform:translateY(0%)}
}
@-webkit-keyframes slideUp {
    0%{-webkit-transform:translateY(100%)}
    100%{-webkit-transform:translateY(0%)}
}


/* --------------------------------------------------------------------------
        GRIGLIA
--------------------------------------------------------------------------- */

.col-r-1 {width: 8.33%;}
.col-r-2 {width: 16.66%;}
.col-r-3 {width: 25%;}
.col-r-4 {width: 33.33%;}
.col-r-5x { width: 20%; }
.col-r-5 {width: 41.66%;}
.col-r-6 {width: 50%;}
.col-r-7 {width: 58.33%;}
.col-r-8 {width: 66.66%;}
.col-r-9 {width: 75%;}
.col-r-10 {width: 83.33%;}
.col-r-11 {width: 91.66%;}
.col-r-12 {width: 100%;}
.col-w-padding-left {padding-left: 50px !important}
.col-w-padding-right {padding-right: 50px !important}

[class*="col-r-"] {float:left; padding: 15px; position: relative; height: auto; overflow: hidden;}
[class*="col-r-"] p img {width: 100% !important; height: auto !important;}
.row {clear: both;} /* righe consecutive: senza questo i float della riga sopra spingono di lato quella sotto */
.row::after {content: ""; clear: both; display: block;}
.row.row-no-margin {margin: -15px;}
.row.row-margin-top {margin-top: 30px;}
[class*="col-r-"].col-right {float: right;}


/* --------------------------------------------------------------------------
        RESPONSIVE
--------------------------------------------------------------------------- */

@media screen and (max-width: 900px) {

  .only-mobile {display: block;}
  .not-mobile {display: none;}

  /* tipografia: un solo blocco, non un override per sezione */
  h1 {font-size: 40px; line-height: 1.1;}
  h2 {font-size: 24px;}
  h3 {font-size: 22px;}

  .flex-vertical-center {display: block;}

  [class*="col-r-"] {float: none; padding: 0 0 15px 0 !important; width: 100%;}
  [class*="col-r-"]:last-child {padding-bottom: 0 !important;}
  .row.row-no-margin {margin: 0;}
  .row.row-margin-top {margin-top: 25px;}

  section.default-section {padding: 50px 0;}
  section.no-padding-bottom {padding-bottom: 0}
  section.no-padding-top {padding-top: 0}
  .first-section {padding-top: 120px !important;}

  .col-w-padding-left {padding-left: 0 !important}
  .col-w-padding-right {padding-right: 0 !important}

  header {padding: 22px 0;}
  #logo {z-index: 3;}
  #logo img {width: 110px;}
  .hamburger {display: inline-block; z-index: 4;}

  hr.divider {margin: 30px 0;}

  #hero {height: 80vh; min-height: 480px;}
  #hero h1 {max-width: 100%; margin-bottom: 35px;}

  .blocco-home {padding: 15px 0;}
  .blocco-home h2 {margin-bottom: 20px;}

  .marquee-group {font-size: 18px;}
  .marquee-full .marquee-track {margin-left: 5%;}

  [class*="col-r-"].col-right {float: none;}

  /* eccezione motivata: gli elenchi marchi resterebbero lunghissimi a colonna singola */
  .row-marchi .col-r-3 {width: 50%; float: left;}
  .row-marchi .col-r-3:nth-child(odd) {clear: left; padding-right: 15px !important;}

  .gallery-negozio {margin-bottom: 20px;}
  .card-offerta img {margin-bottom: 20px;}

  .form-nome {display: block;}
  .form-nome > div {width: 100%;}

  footer {padding: 50px 0;}
  footer hr.divider {margin: 32px 0 24px 0;}
  .footer-privacy {margin-top: 30px;}
}

@media screen and (max-width: 600px) {
  .row-marchi .col-r-3 {width: 100%; float: none;}
}
