/*
  =========================================
  POTSHAWGEN.CLICK - BIOPHILIC & ORGANIC MODERN
  Premium Italian Furniture Store
  Style System - CSS3
  =========================================
*/

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

:root {
  /* Organic Palette */
  --bg-color: #F5EFE6;         /* Warm Sand */
  --primary-color: #868B6B;    /* Olive Green */
  --secondary-color: #D4A373;  /* Clay Terracotta */
  --text-dark: #2A2C24;        /* Dark Charcoal-Greenish tone */
  --text-light: #5A5E53;       /* Soft Forest Gray */
  --white: #FFFFFF;
  --white-trans: rgba(255, 255, 255, 0.85);
  --glass-bg: rgba(245, 239, 230, 0.85);
  --accent-light: #E8E1D5;
  
  /* Fonts */
  --font-headings: 'Quicksand', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions & Shadows */
  --transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  --shadow-sm: 0 4px 12px rgba(134, 139, 107, 0.08);
  --shadow-md: 0 10px 30px rgba(134, 139, 107, 0.12);
  --shadow-lg: 0 20px 50px rgba(42, 44, 36, 0.15);
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 32px;
  --border-radius-full: 9999px;
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.25;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: var(--border-radius-full);
}

.text-center h2::after {
  left: 50%;
  transform: translateX(-50%);
}

p {
  color: var(--text-light);
  margin-bottom: 1.25rem;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.text-center {
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--border-radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

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

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--secondary-color);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s ease;
  border-radius: var(--border-radius-full);
}

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

.btn-primary:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.btn-outline {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background-color: transparent;
}

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

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background-color: transparent;
  transition: var(--transition);
  padding: 1.5rem 0;
}

header.scrolled {
  background-color: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(134, 139, 107, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo svg {
  fill: var(--primary-color);
  width: 28px;
  height: 28px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 1rem;
  color: var(--text-dark);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-links a.active {
  color: var(--primary-color);
  font-weight: 600;
}

/* Burger Menu */
.burger {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}

.burger div {
  width: 25px;
  height: 2px;
  background-color: var(--primary-color);
  margin: 5px;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(134, 139, 107, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 80%, rgba(212, 163, 115, 0.15) 0%, transparent 50%);
  padding-top: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1.5rem;
}

.hero-image-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 40% 60% 60% 40% / 50% 30% 70% 50%;
  background-color: var(--accent-light);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white-trans);
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 6s ease;
}

.hero-image-wrapper:hover .hero-image {
  transform: scale(1.1);
}

/* Features section */
.features-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3.5rem;
}

.feature-card {
  background: var(--white);
  padding: 3rem 2rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(134, 139, 107, 0.05);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  background-color: rgba(134, 139, 107, 0.1);
  color: var(--primary-color);
  width: 60px;
  height: 60px;
  border-radius: 50% 40% 45% 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

/* Biophilic layouts & plants integration */
.biophilic-reveal {
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.plant-overlay-container {
  position: relative;
}

.main-biophilic-img {
  width: 100%;
  height: 550px;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

.plant-accent-badge {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background-color: var(--white-trans);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.plant-accent-badge svg {
  fill: var(--primary-color);
  width: 36px;
  height: 36px;
}

.plant-accent-badge h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary-color);
}

/* Testimonials */
.testimonials {
  background-color: var(--accent-light);
}

.testimonials-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.testimonial-card {
  background: var(--white);
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card::after {
  content: '“';
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 6rem;
  line-height: 1;
  color: rgba(214, 163, 115, 0.15);
  font-family: var(--font-headings);
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--accent-light);
}

.author-initials {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 1.2rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-light);
}

/* About / Chi Siamo Page specific classes */
.about-craftsmanship {
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-img-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.collage-item {
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.collage-item:hover img {
  transform: scale(1.05);
}

.collage-tall {
  grid-row: span 2;
  height: 420px;
}

.collage-short {
  height: 200px;
}

.principles-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  margin-top: 4rem;
}

.principle-box {
  background: var(--white-trans);
  padding: 2.5rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(134, 139, 107, 0.1);
  box-shadow: var(--shadow-sm);
}

.principle-box h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Products / Collezioni Page specific classes */
.catalog-section {
  padding-top: 8rem;
}

.filter-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--white);
  border: 1px solid rgba(134, 139, 107, 0.2);
  padding: 0.75rem 2rem;
  border-radius: var(--border-radius-full);
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
  background-color: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.products-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(134, 139, 107, 0.05);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.product-image-container {
  position: relative;
  height: 320px;
  overflow: hidden;
  background-color: var(--accent-light);
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .product-img {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 0.35rem 1rem;
  border-radius: var(--border-radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-headings);
}

.product-info {
  padding: 1.75rem;
}

.product-category {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--primary-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}

.product-title {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-dark);
  font-family: var(--font-headings);
}

/* Contact / Contatti Page specific classes */
.contact-section {
  padding-top: 8rem;
}

.contact-grid {
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}

.booking-form-container {
  background-color: var(--white);
  padding: 3.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(134, 139, 107, 0.1);
}

.form-group {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  border: none;
  border-bottom: 2px solid rgba(134, 139, 107, 0.2);
  background: transparent;
  outline: none;
  transition: var(--transition);
}

.form-input:focus {
  border-color: var(--primary-color);
}

.form-label {
  position: absolute;
  left: 0;
  top: 1rem;
  font-family: var(--font-headings);
  font-size: 1rem;
  color: var(--text-light);
  pointer-events: none;
  transition: var(--transition);
}

/* Floating Label Animation */
.form-input:focus ~ .form-label,
.form-input:not(:placeholder-shown) ~ .form-label {
  top: -12px;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
}

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.contact-info-card {
  background: var(--white-trans);
  padding: 2rem;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(134, 139, 107, 0.1);
  display: flex;
  gap: 1.5rem;
}

.contact-info-icon {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.contact-info-content h4 {
  margin-bottom: 0.5rem;
}

/* Custom Organic Styled Map */
.map-container {
  width: 100%;
  height: 350px;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 4px solid var(--white);
  position: relative;
}

.organic-map-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E8E1D5 0%, #F5EFE6 100%);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.map-svg-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

.map-marker-pin {
  position: relative;
  z-index: 2;
  text-align: center;
  animation: floatPin 3s ease-in-out infinite;
}

.map-marker-pin svg {
  fill: var(--secondary-color);
  width: 48px;
  height: 48px;
}

.map-marker-info {
  background-color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--shadow-md);
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--primary-color);
}

@keyframes floatPin {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Policies Page Layout */
.policy-section {
  padding-top: 8rem;
  max-width: 800px;
  margin: 0 auto;
}

.policy-content h2 {
  font-size: 1.8rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.policy-content h2::after {
  height: 2px;
  width: 40px;
}

.policy-content p, .policy-content li {
  font-size: 1.05rem;
  margin-bottom: 1.25rem;
  color: var(--text-light);
}

.policy-content ul {
  padding-left: 2rem;
  margin-bottom: 1.5rem;
}

.dynamic-consent-box {
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: var(--border-radius-sm);
  border: 1px dashed var(--primary-color);
  margin: 2rem 0;
  font-family: monospace;
  font-size: 0.95rem;
  color: var(--text-dark);
}

/* GDPR Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  right: 2rem;
  max-width: 600px;
  background-color: var(--white-trans);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(134, 139, 107, 0.2);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transform: translateY(150%);
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content h4 {
  font-size: 1.2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.cookie-banner-content p {
  font-size: 0.9rem;
  margin-bottom: 0;
}

.cookie-banner-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.cookie-banner-actions button {
  padding: 0.65rem 1.5rem;
  font-size: 0.85rem;
}

/* Footer Styling */
footer {
  background-color: #1E2220; /* Deep Charcoal Green */
  color: #D6DED9;
  padding: 5rem 0 2rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  color: var(--white);
  margin-bottom: 1.5rem;
}

.footer-brand .logo svg {
  fill: var(--white);
}

.footer-brand p {
  color: #A1AAA3;
  font-size: 0.95rem;
}

.footer-title {
  color: var(--white);
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: #A1AAA3;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #838C85;
}

/* Scroll Reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile Menu styling */
.nav-active {
  transform: translateX(0) !important;
}

@keyframes navLinkFade {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.burger-active .line1 {
  transform: rotate(-45deg) translate(-5px, 6px);
}
.burger-active .line2 {
  opacity: 0;
}
.burger-active .line3 {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  h1 {
    font-size: 2.5rem;
  }
  .hero-grid {
    gap: 2rem;
  }
  .hero-image-wrapper {
    height: 400px;
  }
  .features-grid, .testimonials-grid, .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  section {
    padding: 4rem 0;
  }
  
  .hero {
    height: auto;
    padding-top: 8rem;
    padding-bottom: 4rem;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-image-wrapper {
    order: 1;
    height: 350px;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  /* Mobile Nav */
  .nav-links {
    position: fixed;
    right: 0;
    height: 100vh;
    top: 0;
    background-color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    transform: translateX(100%);
    transition: transform 0.5s ease-in-out;
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
    z-index: 99;
    gap: 3rem;
  }
  
  .burger {
    display: block;
    z-index: 100;
  }
  
  .features-grid, .testimonials-grid, .products-grid, .about-craftsmanship, .principles-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .biophilic-reveal {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .main-biophilic-img {
    height: 350px;
  }
  
  .plant-accent-badge {
    right: 10px;
    bottom: -15px;
    padding: 1rem;
  }
  
  .booking-form-container {
    padding: 2rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  h2 {
    font-size: 1.8rem;
  }
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  .btn {
    width: 100%;
  }
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    padding: 1.5rem;
  }
  .cookie-banner-actions {
    flex-direction: column;
  }
}
