/* ============================================
   Sotto i Limoni Parking — styles.css
   Palette: Lemon-Mediterranean Minimalism
   ============================================ */

/* --- CSS Variables --- */
:root {
  --color-primary: #F5C518;
  --color-primary-dark: #D4A800;
  --color-primary-light: #FFF3C4;
  --color-green: #2D5016;
  --color-green-light: #4A7C28;
  --color-bg: #FEFCF5;
  --color-bg-alt: #FDF5E6;
  --color-text: #2C2C2C;
  --color-text-light: #5A5A5A;
  --color-text-muted: #888888;
  --color-white: #FFFFFF;
  --color-border: #E8E0D0;
  --color-banner-bg: #2D5016;
  --color-banner-text: #FFFFFF;
  --font-heading: Georgia, 'Times New Roman', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  color: var(--color-green-light);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-green);
  line-height: 1.3;
  font-weight: 700;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 1.85rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }

p {
  margin-bottom: 1rem;
}

/* --- Container --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Sale Banner --- */
.sale-banner {
  background-color: var(--color-banner-bg);
  color: var(--color-banner-text);
  text-align: center;
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.sale-banner span {
  font-weight: 600;
}

.sale-banner form {
  display: inline;
}

.sale-banner button {
  background-color: var(--color-primary);
  color: var(--color-green);
  border: none;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.sale-banner button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}

/* --- Navigation --- */
.navbar {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 0 20px;
  position: sticky;
  top: 46px;
  z-index: 999;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-green);
}

.navbar-logo img {
  width: 36px;
  height: 36px;
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.navbar-menu a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
}

.navbar-menu a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition);
}

.navbar-menu a:hover::after,
.navbar-menu a.active::after {
  width: 100%;
}

.navbar-menu a:hover {
  color: var(--color-green);
}

.navbar-menu a.active {
  color: var(--color-green);
  font-weight: 600;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  margin: 6px 0;
  transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 70vh;
  min-height: 450px;
  max-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--color-white);
  max-width: 750px;
  padding: 0 20px;
}

.hero-content h1 {
  color: var(--color-white);
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

.hero-small {
  height: 40vh;
  min-height: 300px;
  max-height: 450px;
}

.hero-small .hero-content h1 {
  font-size: 2.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
}

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

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-green);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

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

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

.btn-green:hover {
  background-color: var(--color-green-light);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--color-bg-alt);
}

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

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: 12px auto 0;
  border-radius: 2px;
}

.section-title p {
  color: var(--color-text-light);
  max-width: 650px;
  margin: 1rem auto 0;
  font-size: 1.05rem;
}

/* --- Feature Cards --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.feature-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 35px 25px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-bottom: 0.8rem;
}

.feature-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* --- Image Text Block --- */
.image-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.image-text.reverse {
  direction: rtl;
}

.image-text.reverse > * {
  direction: ltr;
}

.image-text img {
  border-radius: var(--radius);
  width: 100%;
  height: 400px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.image-text-content h2 {
  margin-bottom: 1rem;
}

.image-text-content p {
  color: var(--color-text-light);
}

.image-text-content ul {
  margin: 1rem 0;
}

.image-text-content ul li {
  padding: 6px 0 6px 24px;
  position: relative;
  color: var(--color-text-light);
}

.image-text-content ul li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 700;
}

/* --- Blog Cards --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.blog-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.blog-card-body {
  padding: 25px;
}

.blog-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.blog-card-body h3 a {
  color: var(--color-green);
}

.blog-card-body h3 a:hover {
  color: var(--color-green-light);
}

.blog-card-body p {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.blog-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* --- Breadcrumbs --- */
.breadcrumbs {
  padding: 15px 0;
  background: var(--color-bg-alt);
  border-bottom: 1px solid var(--color-border);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 0.85rem;
}

.breadcrumbs li::after {
  content: '›';
  margin-left: 8px;
  color: var(--color-text-muted);
}

.breadcrumbs li:last-child::after {
  display: none;
}

.breadcrumbs a {
  color: var(--color-text-light);
}

.breadcrumbs a:hover {
  color: var(--color-green);
}

.breadcrumbs span {
  color: var(--color-green);
  font-weight: 600;
}

/* --- Article --- */
.article-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 50px 20px;
}

.article-content h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.article-meta {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.article-content h2 {
  margin-top: 2.5rem;
}

.article-content h3 {
  margin-top: 2rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0 1rem 1.5rem;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content li {
  margin-bottom: 0.4rem;
  color: var(--color-text-light);
}

.article-content img {
  border-radius: var(--radius);
  margin: 2rem 0;
  width: 100%;
  height: auto;
  box-shadow: var(--shadow);
}

.article-content blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 15px 20px;
  margin: 1.5rem 0;
  background: var(--color-bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--color-text-light);
}

/* --- Parking Info Cards --- */
.parking-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.parking-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--color-primary);
}

.parking-card h3 {
  margin-bottom: 0.5rem;
}

.parking-card .price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-green);
  margin-bottom: 0.8rem;
}

.parking-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: flex-start;
}

.contact-info-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 40px;
  text-align: center;
}

.contact-info-item h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

.contact-info-item p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.contact-info-item a {
  color: var(--color-green);
  font-weight: 500;
}

/* --- CTA Section --- */
.cta-section {
  background-color: var(--color-green);
  color: var(--color-white);
  text-align: center;
  padding: 60px 20px;
}

.cta-section h2 {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-section p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* --- Related Articles --- */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.related-articles h2 {
  margin-bottom: 1.5rem;
}

/* --- Footer --- */
.footer {
  background-color: var(--color-green);
  color: rgba(255,255,255,0.85);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer h4 {
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-about p {
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.8;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* --- Disclaimer --- */
.disclaimer {
  font-size: 12px;
  color: #888;
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 0;
  background-color: var(--color-green);
}

.disclaimer p {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
  opacity: 0.6;
}

/* --- Info Table --- */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.info-table th {
  background-color: var(--color-green);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
}

.info-table td {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

.info-table tr:last-child td {
  border-bottom: none;
}

.info-table tr:hover td {
  background-color: var(--color-bg-alt);
}

/* --- Responsive --- */
@media (max-width: 992px) {
  .features-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .image-text {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .image-text.reverse {
    direction: ltr;
  }

  .parking-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.6rem; }

  .hero-content h1 {
    font-size: 2.3rem;
  }
}

@media (max-width: 768px) {
  .navbar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 30px 30px;
    gap: 0;
    box-shadow: -5px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition);
    z-index: 1001;
  }

  .navbar-menu.open {
    right: 0;
  }

  .navbar-menu a {
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid var(--color-border);
    font-size: 1.05rem;
  }

  .menu-toggle {
    display: block;
    z-index: 1002;
  }

  .menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .menu-toggle.open span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1000;
  }

  .menu-overlay.show {
    display: block;
  }

  .features-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    height: 55vh;
    min-height: 350px;
  }

  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .hero-small {
    height: 35vh;
    min-height: 250px;
  }

  .hero-small .hero-content h1 {
    font-size: 1.8rem;
  }

  .section {
    padding: 50px 0;
  }

  .sale-banner {
    font-size: 0.85rem;
    padding: 8px 15px;
  }

  .navbar {
    top: 40px;
  }

  h1 { font-size: 1.7rem; }

  .article-content h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 12px 28px;
    font-size: 0.9rem;
  }

  .sale-banner {
    flex-direction: column;
    gap: 8px;
    font-size: 0.8rem;
  }

  .feature-card {
    padding: 25px 20px;
  }
}
