/* ========================
   Stile Generale
======================== */
body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  text-align: center;
  background-color: #0d1b2a;
}

/* Header e logo cliccabile */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10%;
  background: rgba(0,0,0,0.6);
  position: sticky;
  top: 0;
  z-index: 100;
}

header a img.logo {
  height: 60px;
  transition: transform 0.3s ease;
}

header a img.logo:hover {
  transform: scale(1.1) rotate(3deg);
}

/* Link di navigazione */
nav a {
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
  transition: transform 0.3s ease, color 0.3s ease;
}

nav a.active,
nav a:hover {
  color: #00b4d8;
  transform: scale(1.2) translateY(-3px);
}

/* ========================
   Slideshow Home e prodotti
======================== */
.slideshow-container,
.slider {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
}

.slide,
.slides {
  width: 100%;
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1s ease, transform 1s ease;
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slides img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.slides img:hover {
  transform: scale(1.02);
}

/* Slider bottoni avanti/indietro */
.slider-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.slider-buttons button {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
}

/* Testi slideshow */
.slide-text {
  position: absolute;
  top:50%;
  left:50%;
  transform: translate(-50%, -50%) translateY(20px);
  text-align: center;
  text-shadow:0 0 20px rgba(0,0,0,0.7);
  opacity:0;
  transition: opacity 1s ease, transform 1s ease;
}

.slide-text.active {
  opacity:1;
  transform: translate(-50%, -50%) translateY(0);
}

.slide-text h1 {
  font-size: 4rem;
  margin-bottom: 10px;
  color: #00b4d8;
}

.slide-text p {
  font-size: 1.5rem;
}

/* Pallini indicatore */
.dots {
  position: absolute;
  bottom: 20px;
  left:50%;
  transform: translateX(-50%);
  display:flex;
  gap:10px;
  z-index:50;
}

.dot {
  width:15px;
  height:15px;
  border-radius:50%;
  background: rgba(255,255,255,0.5);
  cursor:pointer;
  transition: background 0.3s;
}

.dot.active {
  background:#00b4d8;
}

/* ========================
   Quick Links sotto slideshow
======================== */
.quick-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  padding: 50px 10%;
}

.quick-card {
  flex:1 1 250px;
  background: rgba(0,0,0,0.5);
  border-radius:15px;
  padding:20px;
  text-align:center;
  transition: transform 0.3s, background 0.3s;
  cursor:pointer;
}

.quick-card:hover {
  transform: translateY(-10px);
  background: rgba(0,180,216,0.5);
}

.quick-card h2 {
  color:#00b4d8;
  margin-bottom:10px;
}

.quick-card p {
  font-size:1rem;
  line-height:1.4;
}

/* ========================
   Main e titoli
======================== */
main {
  padding: 40px 10%;
}

h1,h2,h3,h4,h5,h6,p {
  text-align:center;
}

/* ========================
   Sezione Intro e Team
======================== */
.intro {
  max-width: 800px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.team {
  max-width: 1000px;
  margin: 0 auto 50px auto;
  text-align: center;
}

.team-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.member {
  max-width: 300px;
  text-align: center;
}

.team-member {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  margin-bottom: 15px;
}

.bio h3 {
  margin-bottom: 10px;
  color: #00b4d8;
}

.bio p {
  font-size: 0.95rem;
  color: #ccc;
}

/* ========================
   Attrezzatura
======================== */
.hero-attrezzatura {
  position: relative;
  height: 90vh;
  background: url('../img/hero-attrezzatura.jpg') no-repeat center center/cover;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-attrezzatura .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.hero-attrezzatura .hero-text {
  position: relative;
  z-index: 1;
}

.hero-attrezzatura h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: fadeInDown 1s ease;
}

.hero-attrezzatura p {
  font-size: 1.3rem;
  animation: fadeInUp 1.5s ease;
}

.attrezzatura-content {
  padding: 60px 10%;
  background-color: #111;
  color: #f5f5f5;
}

.attrezzatura-content h2 {
  text-align: center;
  margin-bottom: 50px;
  font-size: 2rem;
  letter-spacing: 1px;
}

.attrezzatura-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.attrezzatura-card {
  background: #1a1a1a;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0,0,0,0.4);
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s ease;
}

.attrezzatura-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.attrezzatura-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.attrezzatura-card .card-text {
  padding: 20px;
}

.attrezzatura-card h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: #00bfff;
}

.attrezzatura-card p {
  font-size: 1rem;
  color: #ccc;
  line-height: 1.5;
}

.attrezzatura-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 191, 255, 0.4);
  transition: all 0.3s ease;
}

/* ========================
   Footer
======================== */
footer {
  text-align: center;
  background: rgba(0,0,0,0.6);
  padding: 20px;
  color:white;
  margin-top: 50px;
}

/* ========================
   Animazioni generali
======================== */
@keyframes fadeInDown {
  from {opacity: 0; transform: translateY(-30px);}
  to {opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
  from {opacity: 0; transform: translateY(30px);}
  to {opacity: 1; transform: translateY(0);}
}

/* ========================
   Slider immagini (prodotti)
======================== */
.slider-container {
  position: relative;
  max-width: 1000px;
  margin: 0 auto 50px;
  overflow: hidden;
  border-radius: 20px;
}

.slider-container .slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider-container .slides img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

.slider-container .slides img:hover {
  transform: scale(1.02);
}

.slider-container .slider-buttons {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  z-index: 10;
}

.slider-container .slider-buttons button {
  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  padding: 10px 15px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
}
