/* Root variables for easy theme management */
:root {
  --primary: #372a24; /* deep earthy tone reminiscent of wood and wine barrels */
  --secondary: #9d7a5a; /* warm accent colour */
  --background: #f8f5f1; /* light neutral background */
  --text: #333333;
  --card-bg: #ffffff;
  --card-shadow: rgba(0, 0, 0, 0.1);
}

/* Reset margins and set default font */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
}

/* Sticky header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 4px var(--card-shadow);
  z-index: 1000;
}

.site-header nav {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  flex-wrap: wrap;
}

.site-header nav a {
  margin: 0 1rem;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s ease;
}

.site-header nav a:hover {
  color: var(--secondary);
}

/* Hero section */
#hero {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

#hero video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#hero .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

#hero .content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #ffffff;
}

#hero .content h1 {
  font-size: clamp(2rem, 6vw, 4rem);
  margin: 0;
  letter-spacing: 1px;
  font-weight: 700;
}

#hero .content p {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  margin: 1rem 0;
  font-weight: 400;
}

#hero .scroll-down {
  display: inline-block;
  margin-top: 2rem;
  color: #ffffff;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* General section styling */
section {
  padding: 6rem 1rem;
  width: 100%;
}

.section-head {
  text-align: center;
  margin-bottom: 3rem;
}

.section-head h2 {
  font-size: 2rem;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}

.section-head h2 span {
  color: var(--secondary);
}

.section-head p {
  max-width: 600px;
  margin: 0.5rem auto 0;
  color: var(--text);
}

/* Grid for vigneti e cantina */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.grid-item {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--card-shadow);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.grid-item:hover {
  transform: translateY(-5px);
}

.grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.grid-item .card-content {
  padding: 1rem 1.2rem 2rem;
}

.grid-item .card-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--primary);
}

.grid-item .card-content p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text);
}

/* Wine cards */
.wine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.wine-card {
  background: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.wine-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.wine-content {
  padding: 1.2rem 1.2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wine-content h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  color: var(--primary);
  font-weight: 600;
}

.wine-content .subtitle {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--secondary);
  font-weight: 500;
}

.wine-content p {
  font-size: 0.95rem;
  margin: 0;
  color: var(--text);
  line-height: 1.4;
  flex-grow: 1;
}

/* Sostenibilità list */
.sostenibilita-list {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 0 auto;
}

.sostenibilita-list li {
  margin: 0.5rem 0;
  padding-left: 1.2rem;
  position: relative;
  font-size: 0.95rem;
}

.sostenibilita-list li::before {
  content: '\2022';
  color: var(--secondary);
  font-weight: bold;
  position: absolute;
  left: 0;
  top: 0;
}

/* Accoglienza */
.centered {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1rem;
}

/* Acquisti */
.acquisti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.acquisti-item h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--primary);
}

.acquisti-item p {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
}

.acquisti-item a {
  color: var(--secondary);
  text-decoration: none;
}

.acquisti-item a:hover {
  text-decoration: underline;
}

/* Contact */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.map-responsive {
  position: relative;
  overflow: hidden;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  margin-top: 2rem;
}

.map-responsive iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
footer {
  background: var(--primary);
  color: #ffffff;
  padding: 2rem 1rem;
  text-align: center;
}

footer a {
  color: var(--secondary);
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

footer .footer-content {
  max-width: 800px;
  margin: 0 auto;
}