/*
Theme Name: Elastein
Theme URI: http://www.elasten.it
Author: CMS Studio team
Author URI: http://www.cmsstudio.it/
Description: Realizzazione Template Elastein
Version: 2.0

*/
/* ==============================
   Variabili base
   ============================== */
:root {
  --el-text: #262626;
  --el-muted: #929296;
  --el-dark: #262626;
  --el-white: #ffffff;
  --el-border: #e5e5e5;

  --el-topbar-bg: #262626;
  --el-topbar-link: #cccccc;

  --el-nav-bg: #ffffff;
  --el-nav-link: #222222;
  --el-nav-link-hover: #0d6efd;

  --el-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);

  /* Fonts */
  --el-font-title:
    "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --el-font-body:
    "Oswald", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
html {
  scroll-behavior: smooth;
}
/* ==============================
   Base
   ============================== */
body {
  font-weight: 400;
  color: var(--el-text);
  font-family: var(--el-font-body);
}

strong {
  font-weight: 700;
}

/* Sezioni (attenzione: può sovrascrivere padding Bootstrap) */
section {
  padding: 90px 0;
}

/* Utility semplici */
.blog-row {
  margin-top: 50px;
}
.margin_bottom30 {
  margin-bottom: 30px;
}
.margin_left10 {
  margin-left: 10px;
}
.blog-content {
  padding: 10px;
}

.bg-white {
  background-color: #eee;
} /* se vuoi mantenerla “custom” */
.white {
  color: var(--el-white);
}
.gray {
  background-color: #dfdfe3;
}

.spazioAlto {
  padding-top: 15px;
}

.wpml-ls-legacy-list-horizontal {
  padding: 0;
}

/* ==============================
   Tipografia / Headings
   ============================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0;
  margin-bottom: 25px;
  font-family: var(--el-font-title);
}

h1.entry-title {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 60px;
  letter-spacing: 0;
  line-height: 60px;
}

.border {
  background: #999999;
  display: block;
  height: 10px;
  margin: 30px 0;
  width: 100px;
}

.contentHome {
  font-size: 20px;
  line-height: 30px;
  letter-spacing: 0;
}

.wellTelefono {
  font-family: var(--el-font-body);
  font-size: 70px;
  line-height: 40px;
  font-weight: 700;
  letter-spacing: 0;
  color: #88b04b;
}

.heading {
  margin-bottom: 25px;
}

.heading > h2 {
  position: relative;
  width: auto;
  height: auto;
  font-size: 80px;
  font-weight: 900;
  text-transform: uppercase;
  padding-top: 0;
  margin-top: 0;
  font-family: var(--el-font-title);
}

.heading > h2:after {
  position: relative;
  content: "";
  display: block;
  width: 105px;
  height: 4px;
  margin: 15px 0 20px;
  /* background-color: #161616; */
}

@media (max-width: 768px) {
  .heading > h2 {
    font-size: 40px;
  }
}

/* ==============================
   Header / Top bar
   ============================== */
.fasciaBiancaTop {
  color: var(--el-muted);
  padding: 6px 0;
  background-color: var(--el-white);
}

.fasciaBiancaTop p {
  font-size: 1em;
  margin: 0;
}

.fasciaBiancaTop p a {
  color: var(--el-muted);
  font-size: 18px;
  text-decoration: none;
}

.fasciaNeraTop {
  background-color: var(--el-topbar-bg);
  color: var(--el-muted);
  padding: 6px 0;
}

.fasciaNeraTop p {
  font-size: 12px;
  margin: 0;
  text-transform: uppercase;
  line-height: 30px !important;
}

.fasciaNeraTop p a {
  color: var(--el-topbar-link) !important;
  text-decoration: none;
}

/* ==============================
   NAV
   ============================== */
/* ===== HEADER BASE ===== */

.navbar {
  background-color: #e6e9f0;
  border-color: transparent;
}

#navmenufix {
  position: relative;
  width: 100%;
  z-index: 100;
  transition:
    background-color 0.35s ease,
    box-shadow 0.35s ease,
    backdrop-filter 0.35s ease,
    transform 0.35s ease;
}

/* quando scroll >45px */
#navmenufix.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 10px rgba(0, 0, 0, 0.12);

  animation: headerSlide 0.35s ease;
}

@keyframes headerSlide {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* ===== BRAND ===== */
#navmenufix .navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
}

/* ===== LOGO (1 sola regola) ===== */
#navmenufix .navbar-brand img,
#navmenufix .logo-header img {
  max-height: 70px; /* desktop */
  width: auto;
  height: auto;
  padding: 5px 15px;
  transition: transform 0.25s ease;
  transform-origin: left center;
}

/* shrink quando diventa fixed */
#navmenufix.nav-fixed .navbar-brand img,
#navmenufix.nav-fixed .logo-header img {
  transform: scale(0.75);
}

/* mobile */
@media (max-width: 768px) {
  #navmenufix .navbar-brand img,
  #navmenufix .logo-header img {
    max-height: 45px;
    padding: 5px 10px;
  }

  #navmenufix.nav-fixed .navbar-brand img,
  #navmenufix.nav-fixed .logo-header img {
    transform: scale(0.9); /* su mobile shrink più leggero */
  }
}
/* ===== DROPDOWN HOVER DESKTOP ===== */
@media (min-width: 992px) {
  .navbar .dropdown:hover > .dropdown-menu {
    display: block;
    margin-top: 0;
  }

  .navbar .dropdown-menu {
    margin-top: 0;
    border-radius: 0;
  }

  .navbar .dropdown-toggle::after {
    transition: transform 0.2s ease;
  }

  .navbar .dropdown:hover .dropdown-toggle::after {
    transform: rotate(180deg);
  }
}

/* ==============================
   Sezioni colore
   ============================== */
.sectionGray {
  background-color: #dfdfe3;
}

.sectionVerde {
  background-color: #3d4a3e;
}

/* ==============================
   Footer
   ============================== */
.sectionGrayFooter {
  background-color: #dfdfe3;
}

.boxColorVerdeChiaroFooter {
  background-color: #d0c8c1;
}

.boxColorScuroFooter {
  background-color: var(--el-dark);
}

/* Footer text (Bootstrap 5 friendly + responsive) */
.testoFinale {
  color: var(--el-white, #fff);
  line-height: 1.6;
  letter-spacing: 0.7px; /* spazio tra lettere */
}
.testoFinale a {
  color: var(--el-white, #fff);
}
.testoFinale a:hover,
.testoFinale a:focus {
  opacity: 0.8;
  text-decoration: none; /* accessibile */
}
.buttonFooter {
  padding: 5px;
  border: 2px solid var(--el-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.buttonFooter > i {
  font-size: 18px;
  color: var(--el-white);
}

/* HOVER */
.buttonFooter:hover {
  background: var(--el-white);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.buttonFooter:hover i {
  color: #000;
}
/* ==============================
   Divider
   ============================== */
.hr-half {
  border-bottom: 1px solid #d6d6d6;
  padding-bottom: 25px;
  margin-bottom: 15px;
}

/* =========================
   Brand grid (cards/logo)
========================= */

.brand-card {
  border-radius: 18px;
}

/* wrapper: box fisso e centrato */
.brand-logo-wrap {
  height: 230px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Gutenberg: spesso mette <figure> attorno all'immagine */
.brand-logo-wrap figure.wp-block-image {
  margin: 0 !important;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* IMG: forzo che NON diventi mai più alta del box */
.brand-logo-wrap img,
.brand-logo {
  max-height: 230px !important;
  max-width: 90% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

/* mobile */
@media (max-width: 575.98px) {
  .brand-logo-wrap {
    height: 150px;
  }
  .brand-logo-wrap img,
  .brand-logo {
    max-height: 120px !important;
    max-width: 92% !important;
  }
}

/* =========================================================
   Gutenberg - Ultimi articoli (core/latest-posts) - BS5 look
========================================================= */

.wp-block-latest-posts {
  list-style: none;
  padding-left: 0;
  margin: 2rem 0;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 991.98px) {
  .wp-block-latest-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575.98px) {
  .wp-block-latest-posts {
    grid-template-columns: 1fr;
  }
}

/* card */
.wp-block-latest-posts > li {
  background: #fff;
  border-radius: 1rem; /* simile rounded-4 */
  overflow: hidden;
  box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08); /* shadow-sm */
  border: 1px solid rgba(0, 0, 0, 0.06);

  display: flex;
  flex-direction: column;
}

/* immagine in alto (se attiva l’opzione Featured image nel blocco) */
.wp-block-latest-posts__featured-image {
  margin: 0;
}
.wp-block-latest-posts__featured-image a,
.wp-block-latest-posts__featured-image img {
  display: block;
  width: 100%;
}
.wp-block-latest-posts__featured-image img {
  height: 220px;
  object-fit: cover;
}

/* contenuto */
.wp-block-latest-posts__post-title {
  display: block;
  padding: 1rem 1.25rem 0.25rem;
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.25;
  text-decoration: none;
  color: inherit;
}
.wp-block-latest-posts__post-title:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* meta (data/autore se attivi) */
.wp-block-latest-posts__post-date,
.wp-block-latest-posts__post-author {
  display: block;
  padding: 0 1.25rem;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* excerpt (se attivo) */
.wp-block-latest-posts__post-excerpt {
  padding: 0.75rem 1.25rem 1rem;
  line-height: 1.65;
  opacity: 0.9;
  margin: 0;
}

/* spazio sotto + allinea “call to action” verso fondo (se usi pseudo-bottone) */
.wp-block-latest-posts > li {
  padding-bottom: 1rem;
}

.readmore {
  padding: 0 1.25rem 1.25rem;
}

.readmore .btn {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
