/* ===================================
   parma - Template Styles
   =================================== */
/* ============================================================
   1. VARIABILI
   ============================================================ */
:root {
  /* Colori globali */
  --primary-color: #ffc107;
  --secondary-color: #565656;
  --bianco: #ffffff;
  --text-color: #666;
  --text-dark: #1a1a1a;
  --light-bg: #f8f9fa;
  --bg-footer-color: #1e1e1e;
  --border-color: #cfcfcf;
  /* Menu / Nav */
  --menu-dark: #181818;
  --menu-medium: #383838;
  --menu-text: #111111;
  --nav-bg: #000000;
  --hover: #db0202;
  --line: #d49a10;
  --nav-hover-bg: rgba(255, 255, 255, 0.12);
  --nav-hover-border: rgba(255, 255, 255, 0.18);
  --flag-border: rgba(255, 255, 255, 0.16);
  --overlay: rgba(0, 0, 0, 0.85);
  --menu-surface: #efefef;
  --menu-line: #abababa1;
  --menu-shadow: 0 20px 60px rgba(0, 0, 0, 0.14);
  /* Transizioni */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --ease: 620ms cubic-bezier(.2, .8, .2, 1);
  --panel-ease: 1280ms cubic-bezier(.19, 1, .22, 1);
  /* Ombre */
  --box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 20px 60px rgba(0, 0, 0, 0.15);
  /* Font */
  --font-titolo: 'Inter', sans-serif;
  --font-paragrafo: 'Inter', sans-serif;
}
/* ============================================================
   2. BASE (override normaskeleton)
   ============================================================ */
body {
  font-family: var(--font-paragrafo);
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.ristop {
    position: relative;
    min-height: 100vh;
    margin: 0;
    /* Carica l'immagine di sfondo */
    background-image: url('../images/bg-ristopizza.webp');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
}
/* Crea la velatura nera trasparente */
body.ristop::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* 0.5 è l'opacità del nero */
    z-index: -1; /* Mantiene la velatura dietro al contenuto ma sopra lo sfondo */
    pointer-events: none;
}
body.menu-open .header {
    position: relative;
    z-index: 1000; /* Porta tutto l'header sopra il main e il footer */
}


body.checkoutpage {

  background-color: #cccccc
}


h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-titolo);
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
}
a {
  transition: var(--transition);
}
main {
  min-height: calc(100vh - 221px);
}
.projects,
.stats {
  width: 100%;
}
/* ============================================================
   3. PULSANTI
   ============================================================ */
.pulsante-primario {
  display: inline-block;
  padding: 7px 30px;
  color: var(--bianco) !important;
  background-color: var(--primary-color);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0px;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  font-family: var(--font-titolo);
  transition: var(--transition);
}
.pulsante-primario:hover {
  color: var(--primary-color) !important;
  background-color: var(--bianco);
}
.pulsante-secondario {
  display: inline-block;
  padding: 7px 30px;
  color: var(--primary-color) !important;
  background-color: var(--bg-footer-color);
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  line-height: 38px;
  letter-spacing: 0.1rem;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 0px;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
  font-family: var(--font-titolo);
  transition: var(--transition);
}
.pulsante-secondario:hover {
  color: var(--primary-color) !important;
  background-color: var(--bianco);
}
/* ============================================================
   4. COMPONENTI GLOBALI
   ============================================================ */
.moduletable h3 {
  text-align: center;
}
.page-header h1 {
  text-align: center;
  text-transform: uppercase;
  margin-top: 30px;
}
.com-content-article__body p {
  text-align: justify;
}
.nav-logo img {
  width: 150px;
  max-width: 150px;
}
/****************** bandiere *********************/
.visually-hidden {
  display: none;
}
div.mod-languages ul {
    display: flex;
}
div.mod-languages li {
    margin: 0 5px!important;
}
div.mod-languages a {
    padding: 0!important;
}
div.mod-languages ul li.lang-active {
    background-color: transparent!important;
}
div.mod-languages img {
    width: 30px;
    height: auto;
}
/* ============================================================
   5. LAYOUT ESTESO (esteso.php)
   ============================================================ */
.layout-esteso .hero-article-header {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  height: 36vh;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.layout-esteso .hero-overlay {
  background: rgba(0, 0, 0, 0.5);
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0px;
  box-sizing: border-box;
}
.layout-esteso .hero-content {
  text-align: center;
  width: 100%;
  padding-top: 80px;
}
.layout-esteso .hero-title {
  margin-bottom: 15px;
  line-height: 1.1;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 6rem;
}
.layout-esteso .hero-title .first-word {
  color: var(--primary-color);
}
.layout-esteso .hero-title .other-words {
  color: var(--bianco);
}
.layout-esteso .hero-breadcrumb {
  color: var(--bianco);
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: 15px;
}
.layout-esteso .hero-breadcrumb ol.mod-breadcrumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.layout-esteso .hero-breadcrumb .mod-breadcrumbs__item {
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}
.layout-esteso .hero-breadcrumb .mod-breadcrumbs__item a,
.layout-esteso .hero-breadcrumb .mod-breadcrumbs__item span {
  color: var(--bianco);
}
.layout-esteso .hero-breadcrumb .mod-breadcrumbs__item a:hover {
  color: var(--primary-color) !important;
}
.layout-esteso .hero-breadcrumb .mod-breadcrumbs__item.active span,
.layout-esteso .hero-breadcrumb .mod-breadcrumbs__item:last-of-type span {
  color: var(--primary-color) !important;
}
.layout-esteso .hero-breadcrumb .mod-breadcrumbs__item:not(:last-child):after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.5rem;
  background-color: rgba(255, 255, 255, 0.3);
  margin: 0 20px;
  transform: rotate(20deg);
}
.layout-esteso .hero-breadcrumb .mod-breadcrumbs__here,
.layout-esteso .hero-breadcrumb .breadcrumb-item+.breadcrumb-item::before {
  display: none !important;
}
.layout-esteso .container {
  margin-top: 50px;
  margin-bottom: 50px;
}
/* ============================================================
   6. FOOTER
   ============================================================ */
.footer {
  background-color: var(--bg-footer-color);
  background-image: url('../images/footer-bg.svg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}
.footer h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 500;
  margin: 25px 0px 15px 0px;
  text-align: left;
}
.footer a,
.footer li {
  font-size: 1.3rem;
  color: var(--bianco);
  line-height: 1.1;
  font-weight: 500;
}
ul.lista-footer {
  list-style: none;
}
.footer .row {
  display: flex;
  flex-wrap: wrap;
}
.footer .three.columns:has(.img-centrato-avvolgente) {
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer .logofooter {
  width: 100%;
  height: auto;
}
.footer-bottom p {
  text-align: center;
  color: var(--hover);
  font-size: 0.8rem;
  padding: 20px 0;
  margin-bottom: 0px;
}
/* ============================================================
   7. MEDIA QUERIES
   ============================================================ */
/* — 1024px: Layout esteso + Footer 2x2 — */
@media (max-width: 1024px) {
  .layout-esteso .hero-article-header {
    height: 30vh;
    min-height: 250px;
    overflow: visible;
  }
  .layout-esteso .hero-overlay {
    align-items: flex-end;
    padding-bottom: 5px;
  }
  .layout-esteso .hero-content {
    padding-top: 0 !important;
    transform: translateY(30px);
  }
  .layout-esteso .hero-title {
    font-size: 2rem !important;
    margin-bottom: 0px;
    letter-spacing: -1px;
  }
  .layout-esteso .hero-breadcrumb .mod-breadcrumbs__item {
    font-size: 1.1rem !important;
  }
  .footer .three.columns {
    width: 48%;
    margin: 1%;
    float: left;
    box-sizing: border-box;
  }
  .footer .three.columns:nth-child(2n + 1) {
    margin-left: 0;
    clear: left;
  }
  .footer .row {
    display: block;
  }
  .footer .row::after {
    content: '';
    display: table;
    clear: both;
  }
}
/* — 768px: Layout esteso — */
@media (max-width: 768px) {
  .layout-esteso .hero-title {
    font-size: 2.2rem;
  }
  .layout-esteso .hero-article-header {
    height: 30vh;
  }
}
/* — 549px: Footer — */
@media (max-width: 549px) {
  .footer .three.columns {
    width: 100%;
    margin: 0;
  }
  .footer {
    background-image: url('../images/footer-bg-device.svg');
  }
}
/* — 480px: Layout esteso + Split — */
@media (max-width: 480px) {
  .layout-esteso .hero-content {
    transform: translateY(40px);
  }
  .milano-split-box {
    flex: 1 0 100%;
    aspect-ratio: auto;
    min-height: 400px;
  }
}
