/*
 Theme Name:   Italmedia
 Theme URI:    http://www.affissioni-italmedia.it/
 Description:  Italmedia Theme
 Author:       Gogodigital S.r.l.s.
 Author URI:   https://www.gogodigital.it
 Template:     understrap
 Version:      1.1.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  understrap-child
 Tags: one-column, custom-menu, featured-images, theme-options, translation-ready
 GitHub Theme URI: understrap/understrap-child
*/

#main-nav.bg-dark {
    background-color: #A28B57!important;
    color: #fff;
}

/* =============== CONTENITORE =============== */
#oro-calculator.calc-box {
  background:#fff;
  border:1px solid #e6e0d6;
  border-radius:10px;
  padding:16px;
  max-width:600px;
  box-shadow:0 4px 18px rgba(0,0,0,.06);
  position:relative;
  z-index:2;
}
#oro-calculator * { box-sizing:border-box }

/* =============== TITOLI + BARRA PREZZO =============== */
.calc-title {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: .03em;
    color: #b59b5e;
    margin: 6px 0;
    padding: 0;
    text-align: left;
}
.calc-subtitle {
  background:#fbf7ee;
  border:1px solid #efe6d4;
  padding:10px 12px;
  border-radius:10px;
  margin-bottom:10px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#6d6455;
  font-size:.95rem;
}
.calc-subtitle .badge {
  border:1px solid #ddd;
  background:#fff;
  font-weight:600;
}

/* =============== BOTTONI CARATURE =============== */
.calc-buttons {
  display:grid;
  gap:8px;
  margin-bottom:12px;
}
.calc-buttons.gold { grid-template-columns: repeat(5, 1fr); }
.calc-buttons.silver { grid-template-columns: repeat(3, 1fr); }

@media (max-width:576px){
  .calc-buttons.gold { grid-template-columns: repeat(3, 1fr); }
  .calc-buttons.silver { grid-template-columns: repeat(3, 1fr); }
}

.calc-btn {
  appearance:none;
  background:#fff;
  border:1px solid #e6e0d6;
  border-radius:12px;
  padding:9px 6px;
  text-align:center;
  cursor:pointer;
  transition:all .15s ease;
  position:relative;
  overflow:hidden;
  line-height: 1;
}
.calc-btn .price {
  font-weight:700;
  font-size:.95rem;
  line-height:1.2;
}
.calc-btn .label {
  font-size:.8rem;
  color:#6b6b6b;
  margin-top:4px;
}
.calc-btn:hover { transform:translateY(-1px); }
.calc-btn:focus {
  outline:2px solid rgba(202,168,87,.6);
  outline-offset:2px;
}
.calc-btn:active { transform:translateY(0); }
.calc-btn.active {
  border-color:#caa857;
  box-shadow:0 0 0 2px rgba(202,168,87,.2);
  background:#f6efdf;
}

.navbar a.navbar-brand, .navbar a.navbar-brand:focus {
	    color: #fff!important;
}

/* =============== RIGA INPUT: GRAMMI + TOTALE + CTA =============== */
.calc-input {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 8px;
    align-items: stretch;
    text-align: left;
    font-size: 20px;
    text-transform: uppercase;
}
.calc-input input {
  width:100%;
  height:46px;
  border:1px solid #e0d7c8;
  border-radius:8px;
  padding:0 10px;
  text-align:right;
  font-size:1rem;
  background:#fff;
  -moz-appearance:textfield;
}
.calc-input input::-webkit-outer-spin-button,
.calc-input input::-webkit-inner-spin-button {
  -webkit-appearance:none;
  margin:0;
}
.calc-result {
  height:46px;
  background:#e9d8a6; /* barra gialla */
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:800;
  font-size:1.05rem;
  color:#222;
  padding: 20px;
}

/* =============== CTA BLOCCA PREZZO =============== */
.calc-lock {
  height:46px;
  background:#111;
  color:#fff;
  border:0;
  border-radius:8px;
  padding:0 18px;
  font-weight:800;
  letter-spacing:.02em;
  cursor:pointer;
  font-size:20px;
  transition:background .15s ease, transform .05s ease;
  box-shadow:0 2px 0 rgba(0,0,0,.2);
    min-width: 300px;
}
.calc-lock:hover { background:#000; }
.calc-lock:active {
  transform:translateY(1px);
  box-shadow:0 1px 0 rgba(0,0,0,.25);
}

.btn.btn-dado {
    background-color: #b59b5e;
}
.parallax .summary::before {
  display: none;
}
.summary p {
    text-shadow: unset!important;
    line-height: 1.3!important;
    font-size: 24px;
    margin-top: 20px;
}
.parallax .summary {
  max-height: fit-content!important;
}


/* Navbar desktop sfondo bianco full width */
@media (min-width: 992px) {

 .whatsapp_footer {
        z-index: 1000;
    bottom: 0;
    background: #23A455;
    line-height: 18px;
    padding: 15px 30px;
    right: 0;
    padding-right: 20vw;
    border-radius: 20px 0 0 20px;
 }

  #navbarNavDropdown {
    background: #fff;
    width: 100vw;
    margin-left: calc(-50vw + 50%); /* per farlo uscire dai container centrati */
  }

  #navbarNavDropdown .navbar-nav .nav-link,
  #navbarNavDropdown .navbar-nav .dropdown-item {
    color: #000 !important;
	  font-size: 12px;
        letter-spacing: 2.5px;
  }

  #navbarNavDropdown .navbar-nav .nav-link:hover,
  #navbarNavDropdown .navbar-nav .dropdown-item:hover {
    color: #caa857 !important; /* opzionale: hover oro */
  }
}
.parallax .summary h1 {
	padding-top: 50px;
}

.sliderContentBottomWrapper {
  overflow: hidden;
  background: #b59b5e; /* opzionale, per contrasto */
  color: #fff;
  white-space: nowrap;
}

.sliderTrack {
  display: flex;
  gap: 3rem; /* spazio tra gli elementi */
  animation: scroll 20s linear infinite;
}

.boxCredit {
  flex: 0 0 auto;
  font-size: 1rem;
  padding: 0.5rem 1rem;
}

/* Animazione */
@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%); /* metà perché ho duplicato gli elementi */
  }
}


#hero_home h1 {
    text-shadow: none!important;
    font-family: Raleway, sans-serif!important;
}
@media (max-width: 768px) {
    .wp-singular.page-template-default #page-wrapper {
        padding-top: 200px;
    }
	.parallax .summary {
		height: auto!important;
	}
}
