/* Campini S.r.l. — stile sito, ricostruito dal tema Joomla "td_xote" originale */

:root {
  --campini-blue: #00aeef;
  --campini-dark: #222222;
  --campini-darker: #111111;
  --campini-text: #444444;
  --campini-grey-bg: #f4f4f4;
}

body {
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--campini-text);
  background-repeat: no-repeat;
  background-position: top left;
  background-size: cover;
  background-attachment: fixed;
}

/* Sfondo specifico per pagina (come nell'originale, ogni sezione ha la propria immagine) */
body.bg-home { background-image: url("../img/sfondo-home.jpg"); }
body.bg-sede { background-image: url("../img/sfondo-sede.jpg"); }
body.bg-prodotti { background-image: url("../img/sfondo-prodotti.jpg"); }
body.bg-contatti { background-image: url("../img/sfondo-contatti.jpg"); }
body.bg-produzione { background-image: url("../img/sfondo-produzione.jpg"); }

.font-serif {
  font-family: Georgia, "Times New Roman", serif;
}

/* ---------- Navbar ---------- */
.navbar-campini {
  background-color: rgba(17, 17, 17, 0.92);
}

.navbar-campini .navbar-brand img {
  height: 46px;
}

.navbar-campini .nav-link {
  color: #f2f2f2 !important;
  font-family: Georgia, serif;
  letter-spacing: 0.03em;
  padding: 0.5rem 1rem !important;
}

.navbar-campini .nav-link.active,
.navbar-campini .nav-link:hover {
  color: var(--campini-blue) !important;
}

/* ---------- Hero (home) ---------- */
.hero-home {
  background: linear-gradient(rgba(20, 20, 20, 0.55), rgba(20, 20, 20, 0.55));
  padding: 4.5rem 0 3rem;
}

.hero-inner {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 2.5rem;
}

/* Hero for interior pages */
.page-hero {
  background: linear-gradient(rgba(20, 20, 20, 0.6), rgba(20, 20, 20, 0.6));
  padding: 3.5rem 0;
  color: #fff;
}

.page-hero h1 {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

.page-content {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 2.5rem;
}

/* ---------- Showcase blocks (home) ---------- */
.showcase-block h2,
.showcase-block h3 {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--campini-dark);
}

.showcase-block img {
  width: 100%;
  height: auto;
}

.btn-campini {
  background-color: var(--campini-blue);
  color: #fff;
  border: none;
  padding: 0.75rem 1.4rem;
  font-family: Georgia, serif;
  font-weight: 600;
  border-radius: 0;
}

.btn-campini:hover {
  background-color: #0090c9;
  color: #fff;
}

/* ---------- Cert section ---------- */
.cert-section {
  background-color: rgba(255, 255, 255, 0.5);
  padding: 2.5rem;
}

.cert-section h3 {
  font-family: Georgia, serif;
  font-style: italic;
}

.cert-badge img {
  width: 100%;
  max-width: 220px;
  height: auto;
}

/* ---------- Product gallery ---------- */
.gallery-item {
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* ---------- Footer ---------- */
.footer-columns {
  background-color: var(--campini-darker);
  color: #ccc;
  padding: 2.5rem 0 1.5rem;
}

.footer-columns h4 {
  font-family: Georgia, serif;
  font-style: italic;
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.footer-columns .nav-link {
  color: #ccc;
  padding: 0.2rem 0;
}

.footer-columns .nav-link:hover,
.footer-columns .nav-link.active {
  color: var(--campini-blue);
}

.footer-columns img {
  width: 100%;
  height: auto;
  margin-bottom: 0.75rem;
}

.footer-copyright {
  background-color: #000;
  color: #999;
  font-size: 0.85rem;
  padding: 1rem 0;
}

.footer-copyright a {
  color: #ccc;
}

/* ---------- Contact form ---------- */
.contact-form label {
  font-weight: 600;
}

.contact-address {
  font-family: Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ---------- Animazione di ingresso allo scroll ---------- */
.reveal {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-left {
  transform: translateX(-60px);
}

.reveal-right {
  transform: translateX(60px);
}

.reveal-up {
  transform: translateY(35px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateX(0) translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
