:root {
  --navy: #0a2540;
  --deep-blue: #0f3d5e;
  --sea-blue: #1e81b0;
  --accent: #38bdf8;
  --bg-light: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #475569;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.6;
}

/* NAVBAR */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  background: var(--navy);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: white;
}

.logo img {
  height: 46px;
}

nav a {
  color: white;
  margin-left: 1.5rem;
  text-decoration: none;
  font-weight: 500;
}
a[href$=".pdf"] {
  position: relative;
}

a[href$=".pdf"]::after {
  content: " ↗";
  font-size: 0.8em;
  transition: transform 0.2s ease;
}
nav a {
  position: relative;
}
a {
  transition: color 0.2s ease, transform 0.2s ease;
}

a:hover {
  transform: translateY(-1px);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background-color: #8bbce8;
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}
a[href$=".pdf"]:hover::after {
  transform: translateX(2px);
}
/* HERO */
header {
  padding: 5rem 2rem;
  text-align: center;
  background: linear-gradient(180deg, var(--deep-blue), var(--navy));
  color: white;
}

header h1 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

header p {
  max-width: 800px;
  margin: 0 auto 2rem;
  font-size: 1.2rem;
}

.cta {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background-color: #0a4c8a;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 6px;
  transition: background-color 0.2s ease,transform 0.2s ease,box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.cta:hover {
    transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}


/* SECTIONS */
section {
  padding: 4rem 1.5rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

section h2 {
  color: var(--navy);
  margin-bottom: 1rem;
}

section p {
  
  color: var(--text-muted);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 2.2rem 1.8rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
 
}


.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.card img {
  height: 150px;
  object-fit: cover;
  transition: transform 0.3s ease;
}



.card:hover img {
  transform: scale(1.03);
}

/* NAUTICA */
.nautica {
  background: linear-gradient(90deg, var(--navy), var(--sea-blue));
  color: dark blue;
}

.nautica h2 {
  color: white;
}

.site-footer {
  background-color: #0b1f33;
  color: #d6e1ec;
  padding: 4rem 2rem 1.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.footer-logo {
  height: 45px;
 
}

.footer-col h4 {
  color: #ffffff;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.footer-col p,
.footer-col li {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: #8bbce8;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.b2b-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff;
}

.footer-bottom {
  text-align: center;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.8rem;
  color: #9fb3c8;
}
.hero {
  position: relative;
  height: 40vh;
  background-image: url("img/home-hero.jpg");
  background-size: cover;
  background-position: center;

  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
 background: rgba(0, 35, 60, 0.7);
}

.hero-content {
  position: relative;
  padding: 0 2rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  color: white;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}
.chi {
  position: relative;
  height: 30vh;
  background-image: url("img/chi.jpg");
  background-size: cover;
  background-position: center;

  align-items: center;
}

.chi-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 70, 0.6);
}

.chi-content {
  position: relative;

  padding: 0 2rem;
  color: white;
}

.chi h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.chi p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}






.cont {
  position: relative;
  height: 30vh;
  background-image: url("img/cont.jpg");
  background-size: cover;
  background-position: center;

  align-items: center;
}

.cont-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 70, 0.6);
}

.cont-content {
  position: relative;

  padding: 0 2rem;
  color: white;
}

.cont h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}



.cata {
  position: relative;
  height: 30vh;
  background-image: url("img/cata.jpg");
  background-size: cover;
  background-position: center;

  align-items: center;
}

.cata-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 40, 70, 0.6);
}

.cata-content {
  position: relative;

  padding: 0 2rem;
  color: white;
}

.cata h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cata p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.brands-carousel {
  padding: 2.5rem 0;
  background-color: #f5f8fb;
  overflow: hidden;
}

.brands-title {
  text-align: center;
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5c728a;
  margin-bottom: 1.5rem;
}

.carousel {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: scroll 30s linear infinite;
  align-items: center;
}

.carousel-track img {
  height: 55px;
  opacity: 0.8;
  filter: grayscale(60%);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.carousel-track img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.05);
}

/* pausa su hover */
.carousel:hover .carousel-track {
  animation-play-state: paused;
}

.cataloghi {
  text-align: center;
}

.cataloghi-intro {

  margin: 0 auto 3rem;
  font-size: 1rem;
  color: #5c728a;
}

.cataloghi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.catalogo-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalogo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.catalogo-card h3 {
  margin-bottom: 1rem;
}

.catalogo-card p {
  font-size: 0.95rem;
  margin-bottom: 1.8rem;
  color: #4f657c;
}



@keyframes scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .fade-in {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 768px) {
  .carousel-track {
    animation-duration: 45s;
  }
}


.contact-direct {
  margin-bottom: 4rem;
  text-align: center;
}

.contact-link {
  color: #0a4c8a;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
}

.contact-link:hover {
  text-decoration: underline;
}


.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.4rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: #4f657c;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border-radius: 8px;
  border: 1px solid #ccd6e0;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0a4c8a;
}


.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

.contact-info h2 {
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 1.4rem;
  font-size: 0.95rem;

}

@media (max-width: 768px) {
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
 
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.8rem;
}

.contact-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

/* colori icone */
.contact-icon.whatsapp {
  background: #25d366;
}

.contact-icon.mail {
  background: #0a4c8a;
}

.contact-icon.map {
  background: #5c728a;
}

.contact-form,
.contact-info {
  padding: 5rem;
  background: #f5f8fb;
  border-radius: 14px;
}

.contact-grid {
  align-items: stretch;
}




.home-categories {
  text-align: center;
  padding: 3rem 1.5rem;
}

.home-categories h2 {
  font-size: 1.9rem;
  color: #0a4c8a;
  margin-bottom: 2rem;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}


.category-card {
  background: #fff;
  border-radius: 14px;
  padding: 1.5rem;
  box-shadow: 0 8px 26px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 38px rgba(0,0,0,0.12);
}

.category-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.category-card h3 {
  font-size: 1.2rem;
  color: #0a4c8a;
  margin-bottom: 0.6rem;
}

.category-card p {
  font-size: 0.9rem;
  color: #566779;
}


/* === COLORI PER CATEGORIA === */

/* Nautica */
.category-card.nautica h3 {
  color: #0a4c8a;
}
.category-card.nautica {
  border-top: 4px solid #0a4c8a;
}

/* Industria */
.category-card.industria h3 {
  color: #555555;
}
.category-card.industria {
  border-top: 4px solid #555555;
}

/* Carrozzeria */
.category-card.carrozzeria h3 {
  color: #b11226;
}
.category-card.carrozzeria {
  border-top: 4px solid #b11226;
}

/* Ferramenta */
.category-card.ferramenta h3 {
  color: #e28b00;
}
.category-card.ferramenta {
  border-top: 4px solid #e28b00;
}

/* Edilizia */
.category-card.edilizia h3 {
  color: #3a7d44;
}
.category-card.edilizia {
  border-top: 4px solid #3a7d44;
}


.category-card:hover {
  transform: translateY(-6px);
}

.category-card.nautica:hover {
  box-shadow: 0 16px 38px rgba(10, 76, 138, 0.25);
}

.category-card.industria:hover {
  box-shadow: 0 16px 38px rgba(85, 85, 85, 0.25);
}

.category-card.carrozzeria:hover {
  box-shadow: 0 16px 38px rgba(177, 18, 38, 0.25);
}

.category-card.ferramenta:hover {
  box-shadow: 0 16px 38px rgba(226, 139, 0, 0.25);
}

.category-card.edilizia:hover {
  box-shadow: 0 16px 38px rgba(58, 125, 68, 0.25);
}
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

.category-card {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.category-card.show {
  opacity: 1;
  transform: translateY(0);
}


.about-section {
  padding: 4rem 1.5rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  align-items: center;
}

.about-grid h2 {
  color: #0a4c8a;
  margin-bottom: 1.2rem;
}

.about-grid p {
  color: #566779;
  margin-bottom: 1rem;
}

.about-grid img {
  width: 100%;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.light-bg {
  background: #f5f8fb;
}

.about-narrow {
  max-width: 850px;
  margin: 0 auto;
}

.about-grid.reverse {
  grid-template-columns: 1fr 1.2fr;
}
.fade-section {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-section.show {
  opacity: 1;
  transform: translateY(0);
}
.about-grid img {
  filter: contrast(1.05) saturate(0.95);
}
/* HERO CATALOGHI */
.catalogo-hero {
  background-image: url("img/head-cataloghi.jpg");
  background-size: cover;
  background-position: center;
  padding: 6rem 2rem;
  position: relative;
  text-align: center;
}

.catalogo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 24, 44, 0.65);
}

.catalogo-hero-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.catalogo-hero h1 {
  font-size: 2.6rem;
  margin-bottom: 1rem;
  color: #ffffff;
}

.catalogo-hero p {
  font-size: 1.1rem;
  color: #dbeafe;
}

/* SEZIONE CATALOGHI */
.cataloghi-section {
  padding: 4rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cataloghi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.catalogo-card {
  background: #ffffff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.catalogo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.catalogo-card h3 {
  color: #0a4c8a;
  margin-bottom: 0.8rem;
}

.catalogo-card p {
  color: #566779;
  margin-bottom: 1.4rem;
}

.catalogo-card .cta {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  background: #0a4c8a;
  color: #ffffff;
  font-size: 0.95rem;
}

/* NOTA B2B */
.catalogo-note {
  margin-top: 3rem;
  text-align: center;
  color: #475569;
  font-size: 0.95rem;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .cataloghi-grid {
    grid-template-columns: 1fr;
  }

  .catalogo-hero h1 {
    font-size: 2rem;
  }
}
