@import url('https://fonts.googleapis.com/css2?family=Exo:wght@400;500;700&display=swap');
/* Reset and base styles */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Exo', sans-serif;
  background: #f8f6f2;
  color: #3a3a2c;
}

header {
  background: #e6e2d3;
  box-shadow: 0 2px 8px rgba(60,40,10,0.04);
  padding: 0.5rem 0;
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.2rem;
  padding: 0 1rem;
  margin-top: 2.2rem;
}
.header-brand {
  display: flex;
  align-items: flex-end;
  gap: 1.2rem;
}
.logo {
  height: 64px;
  width: auto;
  margin-right: 0.2rem;
  display: block;
  margin-top: -8px;
}
header h1 {
  font-size: 3.4rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4b5e2e;
  margin: 0 1rem 0 0;
  margin-bottom: -11px;
}
.lang-switcher {
  position: absolute;
  right: 1.5rem;
  bottom: 0.3rem;
  margin-left: 0;
  display: flex;
  align-items: flex-end;
  margin-bottom: 0;
}
.lang-switcher button {
  background: none;
  border: none;
  margin: 0 0.2rem;
  cursor: pointer;
  padding: 0.1rem 0.4rem;
  border-radius: 1.2rem;
  transition: box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3em;
}
.lang-switcher button:focus {
  outline: 2px solid #7bb661;
}
.lang-switcher img {
  width: 14px;
  height: 14px;
  display: block;
}
.lang-label {
  font-size: 0.95em;
  color: #4b5e2e;
  margin-left: 0.3em;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.lang-switcher button.active {
  background: #e6e2d3;
  box-shadow: 0 0 0 2px #7bb66133;
  border: 1.5px solid #7bb661;
  color: #4b5e2e;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s, border 0.2s;
}
#hero {
  max-width: 1100px;
  margin: 2rem auto 0;
  text-align: center;
  padding: 2rem 1rem 0 1rem;
  background: none;
  box-shadow: none;
}
.hero-img-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  background: none;
}
.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(60,40,10,0.08);
  filter: sepia(0.18) brightness(1.05) saturate(1) contrast(1.04);
  opacity: 0.92;
  margin-bottom: 0;
}
.tagline {
  position: absolute;
  left: 50%;
  top: 2%;
  transform: translateX(-50%);
  color: #4b5e2e;
  font-size: 3.2rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 12px rgba(255,255,255,0.8), 0 1px 2px rgba(255,255,255,0.6);
  padding: 0 1.5rem;
  width: 90%;
  max-width: 600px;
  z-index: 2;
  background: none;
  border-radius: 0;
}
section {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(60,40,10,0.04);
}
.section-img {
  float: left;
  width: 40%;
  margin-right: 2rem;
  /*flex: 1 1 480px;*/
  min-width: 320px;
  max-width: 52%;
}
.section-img img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 2px 8px rgba(60,40,10,0.06);
  filter: sepia(0.18) brightness(1.05) saturate(1) contrast(1.04);
  opacity: 0.92;
}
.section-content {
  overflow: hidden;
}
#sectionA, #sectionB, #sectionGarden, #investors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
}
#sectionA .section-content, #sectionB .section-content, #sectionGarden .section-content, #investors .section-content {
  flex: 2 1 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
#sectionCommon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.5rem;
  max-width: 1100px;
  margin: 2rem auto;
  padding: 1rem;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 2px 12px rgba(60,40,10,0.04);
}
#sectionCommon .section-content {
  flex: 2 1 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
ul {
  font-size: 1.18rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  list-style: none;
}
#sectionCommon .section-content h2 {
  margin-left: 0;
}
ul li {
  margin-bottom: 0.5em;
  position: relative;
  padding-left: 0;
}
#gallery {
  background: #f3f7ed;
  box-shadow: none;
}
#gallery h2 {
  text-align: center;
  color: #4b5e2e;
  margin-bottom: 1rem;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin: 0 auto;
  max-width: 900px;
}
.gallery-grid img {
  width: 100%;
  border-radius: 0.7rem;
  box-shadow: 0 2px 8px rgba(60,40,10,0.06);
  object-fit: cover;
  height: 220px;
  filter: sepia(0.18) brightness(1.05) saturate(1) contrast(1.04);
  opacity: 0.92;
}
#contact {
  background: #e6e2d3;
  box-shadow: none;
  text-align: center;
}
#contact-title {
  color: #4b5e2e;
  margin-bottom: 1rem;
}
#contact-list {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 500px;
}
#contact-list li {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}
footer {
  background: #d2d8c7;
  color: #4b5e2e;
  text-align: center;
  padding: 1.2rem 0 0.7rem 0;
  font-size: 1rem;
  border-radius: 0 0 1.2rem 1.2rem;
  margin-top: 2rem;
}
footer a {
  color: #4b5e2e;
  text-decoration: underline;
}
@media (max-width: 900px) {
  .header-content, section {
    flex-direction: column;
    padding: 1rem;
  }
  #sectionA, #sectionB, #sectionGarden, #investors {
    flex-direction: column;
    gap: 1rem;
  }
  .section-img {
    width: 100%;
    margin-right: 0;
    margin-bottom: 1rem;
  }
  .tagline {
    font-size: 1.8rem;
    top: 4%;
    left: 50%;
    transform: translateX(-50%);
    padding: 0 0.5rem;
    width: 90%;
    max-width: 400px;
  }
}
@media (max-width: 600px) {
  .header-content {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
  }
  header h1 {
    font-size: 1.2rem;
    margin: 0.5rem 0 0.5rem 0;
  }
  .logo {
    height: 44px;
  }
  section {
    padding: 0.5rem;
    border-radius: 0.7rem;
  }
  .gallery-grid img {
    height: 120px;
  }
  .lang-switcher button {
    padding: 0.1rem 0.2rem;
    font-size: 0.95em;
  }
  .lang-label {
    font-size: 0.9em;
  }
  .lang-switcher img {
    width: 16px;
    height: 16px;
  }
  .tagline {
    font-size: 1.3rem;
    padding: 0 0.5rem;
    top: 3%;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 300px;
  }
  .section-content {
    overflow: visible !important;
  }
}
/* Gallery slider styles */
.gallery-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.gallery-arrow {
  background: #e6e2d3;
  border: none;
  font-size: 2rem;
  color: #4b5e2e;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(60,40,10,0.08);
  transition: background 0.2s;
  z-index: 2;
}
.gallery-arrow:active, .gallery-arrow:focus {
  background: #d2d8c7;
  outline: 2px solid #7bb661;
}
.gallery-track {
  display: flex;
  gap: 1rem;
  overflow: hidden;
  width: 760px;
  min-height: 180px;
}
.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 220px;
}
.gallery-caption {
  background: rgba(75, 94, 46, 0.9);
  color: #fff;
  padding: 0.5rem 0.8rem;
  border-radius: 0.5rem 0.5rem 0 0;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  line-height: 1.3;
  min-height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-track img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 0 0 0.7rem 0.7rem;
  box-shadow: 0 2px 8px rgba(60,40,10,0.06);
  cursor: pointer;
  transition: transform 0.2s;
  filter: sepia(0.18) brightness(1.05) saturate(1) contrast(1.04);
  opacity: 0.92;
  background: #ffffff;
  padding: 0.5rem;
  box-sizing: border-box;
}
.gallery-track img:hover {
  transform: scale(1.04);
}
/* Modal styles */
.gallery-modal {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(40,40,30,0.92);
  z-index: 1000;
  flex-direction: column;
}
.gallery-modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 90vh;
}
.gallery-modal-images {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.gallery-modal-img {
  max-width: 90vw;
  max-height: 70vh;
  border-radius: 1rem;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
  transition: opacity 0.3s, transform 0.3s;
  opacity: 1;
  z-index: 1050;
  background: #ffffff;
  padding: 1rem;
  cursor: zoom-in;
  transform-origin: center center;
}
.gallery-modal-img.fade {
  opacity: 0.2;
}
.gallery-modal-img.zoomed {
  cursor: grab;
  transform: scale(2);
  user-select: none;
}
.gallery-modal-img.zoomed:active {
  cursor: grabbing;
}
.gallery-modal-side {
  max-width: 120px;
  max-height: 80px;
  opacity: 0.5;
  border-radius: 0.5rem;
  margin: 0 0.5rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1040;
}
.gallery-modal-side:hover {
  opacity: 0.9;
  transform: scale(1.05);
}
.gallery-modal-caption {
  color: #fff;
  text-align: center;
  margin-top: 1.2rem;
  font-size: 1.1rem;
  max-width: 80vw;
  z-index: 1060;
}
.gallery-modal-caption-top {
  color: #fff;
  text-align: center;
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
  max-width: 80vw;
  z-index: 1060;
  font-weight: 500;
}
.gallery-modal-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 1100;
}
.gallery-modal-arrow {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  padding: 1rem;
  z-index: 1100;
  transition: color 0.2s;
  top: 50%;
  transform: translateY(-50%);
}
.gallery-modal-arrow.left {
  left: 2rem;
}
.gallery-modal-arrow.right {
  right: 2rem;
}
.gallery-modal-arrow:focus {
  outline: 2px solid #7bb661;
}
@media (max-width: 900px) {
  .gallery-track {
    width: 95vw;
    min-width: 0;
  }
  .gallery-slider {
    max-width: 100vw;
  }
  .gallery-modal-side {
    max-width: 60px;
    max-height: 40px;
  }
  .gallery-modal-caption {
    font-size: 1rem;
  }
  .gallery-modal-caption-top {
    font-size: 1rem;
    margin-bottom: 1rem;
  }
}
@media (max-width: 600px) {
  .gallery-track img {
    width: 90px;
    height: 90px;
  }
  .gallery-track {
    gap: 0.5rem;
    width: 95vw;
  }
  .gallery-modal-images {
    gap: 0;
  }
  .gallery-modal-img {
    max-width: 95vw;
    max-height: 60vh;
    padding: 0.5rem;
  }
  .gallery-modal-side {
    display: none;
  }
  .gallery-modal-caption {
    font-size: 0.95rem;
    margin-top: 1rem;
  }
  .gallery-modal-caption-top {
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
  }
  .gallery-modal-arrow {
    font-size: 2.5rem;
    padding: 0.5rem;
  }
  .gallery-modal-arrow.left {
    left: 1rem;
  }
  .gallery-modal-arrow.right {
    right: 1rem;
  }
  .gallery-modal-close {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
  }
}
img, .hero-img {
  filter: sepia(0.18) brightness(1.05) saturate(1) contrast(1.04);
  opacity: 0.92;
}
#gallery-toggle-links a {
  color: #3a3a2c;
  font-family: 'Exo', sans-serif;
  font-size: 1.08rem;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s;
  margin: 0 0.5em;
}
#gallery-toggle-links a:hover {
  color: #4b5e2e;
  text-decoration: underline;
}
@media (max-width: 1100px) {
  #hero {
    padding: 0 1rem;
  }
}
/* Contact form styles */
.contact-form-container {
  background: #f8f6f2;
  border-radius: 1rem;
  padding: 2rem;
  margin-bottom: 2rem;
  border: 1px solid #e6e2d3;
}

.contact-form-container h3 {
  color: #4b5e2e;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0 0 1.5rem 0;
  text-align: center;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: #4b5e2e;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e6e2d3;
  border-radius: 0.5rem;
  font-family: 'Exo', sans-serif;
  font-size: 1rem;
  background: #fff;
  color: #3a3a2c;
  transition: border-color 0.3s, box-shadow 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #7bb661;
  box-shadow: 0 0 0 3px rgba(123, 182, 97, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #7bb661 0%, #6ba050 100%);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 0.5rem;
  font-family: 'Exo', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.contact-submit-btn:hover {
  background: linear-gradient(135deg, #6ba050 0%, #5a8f42 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(123, 182, 97, 0.3);
}

.contact-submit-btn:active {
  transform: translateY(0);
}

.contact-submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.loading-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: 500;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.contact-separator {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.contact-separator::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e6e2d3;
  z-index: 1;
}

.contact-separator span {
  background: #fff;
  color: #7a7a6c;
  padding: 0 1rem;
  font-style: italic;
  position: relative;
  z-index: 2;
}

/* Responsive design for form */
@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  
  .contact-form-container {
    padding: 1.5rem;
  }
  
  .contact-form-container h3 {
    font-size: 1.5rem;
  }
}

/* Phone number obfuscation styles */
.phone-obfuscated {
  position: relative;
  display: inline-block;
  padding: 2px 6px;
  border-radius: 3px;
  background: linear-gradient(135deg, #f0f4e8 0%, #e8f2dc 100%);
  border: 1px solid #d4d4aa;
  transition: all 0.3s ease;
  font-weight: 500;
}

.phone-obfuscated:hover {
  background: linear-gradient(135deg, #e8f2dc 0%, #dce8d0 100%);
  border-color: #4b5e2e;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(75, 94, 46, 0.2);
}

.phone-obfuscated:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(75, 94, 46, 0.3);
}

.phone-obfuscated::before {
  content: "🔒";
  font-size: 0.8em;
  margin-right: 4px;
  opacity: 0.7;
}

.phone-revealed::before {
  content: "📞";
  color: #4b5e2e;
}

.phone-revealed {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  font-weight: normal !important;
}

.phone-revealed:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Anti-bot protection: hide phone numbers from screen readers initially */
.phone-obfuscated[aria-hidden="true"] {
  speak: none;
}

/* Additional protection: CSS-only phone number scrambling */
.phone-obfuscated::after {
  content: attr(data-scrambled);
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  pointer-events: none;
}

/* Partners section styles */
#partners {
  background: #f3f7ed;
  box-shadow: none;
  text-align: center;
  margin: 2rem auto;
}

#partners h2 {
  color: #4b5e2e;
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
  padding: 1rem;
}

.partner-item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(60,40,10,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.partner-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(60,40,10,0.12);
}

.partner-item a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  transition: opacity 0.2s;
}

.partner-item a:hover {
  opacity: 0.8;
}

.partner-item a:focus {
  outline: 2px solid #7bb661;
  outline-offset: 2px;
  border-radius: 0.5rem;
}

.partner-logo {
  max-width: 100%;
  max-height: 100px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform 0.2s;
}

/* Logo VASATI più grande */
.partner-logo[alt="VASATI.space eco immobiliare"] {
  max-height: 120px;
}

.partner-item:hover .partner-logo {
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .partner-item {
    padding: 1rem;
  }
  
  .partner-logo {
    max-height: 60px;
  }
  
  #partners h2 {
    font-size: 1.8rem;
  }
} 