@import url('https://fonts.googleapis.com/css2?family=Grand+Hotel&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --primary-color: #D85E2F; /* Terracotta */
  --secondary-color: #96B3C4; /* Dusty Blue */
  --tertiary-color: #AA393D; /* Deep Red */
  --accent-color: #303D5D; /* Navy Blue */
  --bg-color: #F7E8E3; /* Soft Blush */
  --text-dark: #303D5D;
  --text-light: #F7E8E3;
  --font-main: 'Outfit', sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-script: 'Grand Hotel', cursive;
  --shadow: 0 8px 30px rgba(0,0,0,0.06);
  --border-radius: 20px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  background-image: linear-gradient(rgba(247, 232, 227, 0.92), rgba(247, 232, 227, 0.92)), url('bozza parati.jpg');
  background-repeat: repeat;
  background-attachment: fixed;
  background-size: 500px; /* Sensible default for a pattern */
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
}

a {
  text-decoration: none;
  color: inherit;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(254, 249, 243, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  transition: all 0.3s ease;
}

.logo img {
  height: 70px;
  width: auto;
  transition: transform 0.3s ease;
  mix-blend-mode: multiply;
}

.logo:hover img {
  transform: scale(1.05);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 25px;
}

.nav-links li a {
  font-weight: 600;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  cursor: pointer;
  padding: 5px 0;
}

.nav-links li a:hover {
  color: var(--primary-color);
}

.hamburger {
  display: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 5px;
  transition: all 0.3s ease;
}

/* Main Container */
main {
  margin-top: 90px;
  min-height: calc(100vh - 90px - 200px);
}

.page-section {
  display: none;
  animation: fadeIn 0.5s ease;
}

.page-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Hero Split Layout */
.hero {
  position: relative;
  width: 100%;
  min-height: 85vh;
  padding: 120px 5% 80px 5%;
  background: transparent; /* Let the wallpaper pattern show through */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  overflow: hidden;
}

.hero-bg-circle {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, #FDE8D9 0%, rgba(253,230,213,0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero-image-wrapper {
  flex: 1.2;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero img.slider-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  z-index: 2;
  text-align: left;
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  color: var(--text-dark);
  margin-bottom: 25px;
  font-weight: 700;
  letter-spacing: -1px;
}

.hero-title .highlight {
  color: var(--primary-color);
  font-family: var(--font-script);
  font-size: 6rem;
  font-weight: 400;
  display: inline-block;
  transform: translateY(10px);
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
}

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- SHOP PAGE (VALENTINA EDIZIONI STYLE) --- */
.shop-intro-container {
  max-width: 900px;
  margin: 60px auto;
  text-align: center;
  padding: 0 20px;
}

.shop-headline {
  font-size: 2.5rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  font-weight: 700;
}

.shop-subheadline {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 30px;
}

.shop-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 25px;
  border-radius: 50px;
}

.shop-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 40px;
  padding: 20px 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  text-align: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-image-wrapper {
  background: white;
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-image-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-image-wrapper img {
  transform: scale(1.05);
}

.product-card h4 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 5px;
  font-weight: 600;
}

.product-card p {
  color: var(--secondary-color);
  font-size: 1rem;
  margin-bottom: 15px;
}

.product-card .scopri {
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s ease;
}

.product-card:hover .scopri {
  border-color: var(--primary-color);
}

/* -------------------------------------- */
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 60px 5%;
  max-width: 1400px;
  margin: 0 auto;
}

.grid-item {
  background: white;
  border-radius: var(--border-radius);
  padding: 40px 20px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  border: 2px solid transparent;
}

.grid-item:hover {
  transform: translateY(-10px);
  border-color: var(--secondary-color);
}

.grid-item .icon {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.grid-item .icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* Fonde lo sfondo bianco dell'icona con il bianco o colore del box */
}

.grid-item h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

/* Section Shared Structure */
.section-header {
  text-align: center;
  padding: 60px 20px;
  background: var(--tertiary-color);
  color: white;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: white;
}

.section-header p {
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}

.blocks-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.block-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
}

.block-card:hover {
  transform: translateY(-5px);
}

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

.block-content {
  padding: 30px;
}

.block-content h3 {
  font-size: 1.6rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.block-content p {
  margin-bottom: 20px;
}

/* Forms */
.form-container {
  background: white;
  padding: 40px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto 60px auto;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 1rem;
}

.form-group input[type="checkbox"] {
  width: auto;
  padding: 0;
  margin: 0;
  transform: scale(1.2);
}

/* Footer */
footer {
  background: var(--text-dark);
  color: var(--text-light);
  padding: 60px 5% 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 40px;
}

.footer-col h4 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col a {
  color: #ccc;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.9rem;
  color: #aaa;
}

/* Hero & Logo Styles */
.main-logo-hero {
  width: 100%;
  max-width: 650px;
  height: auto;
  display: block;
  filter: drop-shadow(0 25px 45px rgba(0,0,0,0.08));
  transform: scale(1.6);
  transform-origin: center;
  animation: floatHighEnd 7s ease-in-out infinite;
}

@keyframes floatHighEnd {
  0% { transform: scale(1.6) translateY(0px) rotate(0deg); }
  50% { transform: scale(1.6) translateY(-8px) rotate(1.5deg); }
  100% { transform: scale(1.6) translateY(0px) rotate(0deg); }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 30px;
  color: var(--text-dark);
  font-weight: 500;
}

.btn-hero {
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
  padding: 15px 40px;
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 10px 10px rgba(0,0,0,0.1);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .hamburger {
    display: flex;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .home-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
  
  .grid-item {
    padding: 20px 10px;
  }
  
  .grid-item .icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}
