@import url('../styles.css');

/* Ensure full height layout to push footer to bottom */
html, body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
}

.contact-section {
  flex: 1;
}
.nav-plain-link{
  color: #000;
}
.nav-plain-link:hover,
.nav-plain-link:focus,
.nav-plain-link:focus-visible,
.nav-plain-link:active{
  color: var(--primary);
}

/* Ensure Servizi link never turns yellow on this page */
.nav-plain-link.no-highlight,
.nav-plain-link.no-highlight:focus,
.nav-plain-link.no-highlight:focus-visible,
.nav-plain-link.no-highlight:hover,
.nav-plain-link.no-highlight:active,
.nav-plain-link.no-highlight.active{
  color: #000 !important;
  text-decoration: none !important;
  text-decoration-color: transparent !important;
}


/* Static banner (contact page) */
.hero-banner--static{
  background: var(--muted); /* use shared grey from root stylesheet */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0; /* add safe space to prevent top clipping */
  /* banner height follows the image height */
}

.hero-banner--static .hero-logo--static{
  height: 160px; /* scale down to avoid clipping */
  width: auto;
  max-width: 34%;
  object-fit: contain;
  display: block;
  /* no transition, fixed size */
}

/* Contact section styles */
.contact-section{
  background: var(--bg);
}

.contact-card{
  padding: 0;
  background: transparent;
  border-radius: 0;
  transition: none;
  text-align: left;
}

.contact-card:hover{
  transform: none;
  box-shadow: none;
}

.contact-card h3{
  font-weight: 700;
  color: #000;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.contact-link{
  color: #000;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 400;
  transition: color 220ms ease;
}

.contact-link:hover{
  color: var(--primary);
  text-decoration: underline;
}

.contact-info{
  color: #000;
  font-size: 1rem;
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

.map-container{
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.map-container iframe{
  display: block;
  width: 100%;
  height: 100%; /* fill the square ratio container */
}

/* Nudge left contact block down on large screens for visual center alignment */
@media (min-width: 992px){
  .contact-left{ 
    margin-top: 0.5rem; /* tweak if you want it lower/higher */
  }
}

/* Back to home button */
.navbar .btn-primary{
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  box-shadow: none;
  transition: all 220ms ease;
}

.navbar .btn-primary:hover,
.navbar .btn-primary:focus{
  background: var(--primary);
  color: #111;
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

/* responsive contact cards */
@media (max-width: 768px){
  .contact-card{
    padding: 0;
  }
  .contact-card h3{
    font-size: 1.1rem;
  }
}

/* Social links: simple text with icon */
.social-links{ display:flex; flex-direction: column; gap:.5rem; }
.social-link{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  color: #000;
  text-decoration: none;
  font-weight: 500;
}
.social-link:hover,
.social-link:focus{ color: var(--primary); text-decoration: underline; }
.social-link .social-icon{ 
  width:1.05rem;
  height:1.05rem;
  fill: currentColor;
  display:inline-block;
  flex-shrink: 0;
  overflow: visible;
  vertical-align: middle;
}
/* Ensure icons don't get clipped by line-height on small containers */
.social-link{ line-height:1.4; }

/* Contact page navbar: transparent to match hero/cover */
.contact-navbar{
  background: transparent;
  position: relative;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: none;
  border-bottom: none;
  z-index: 100;
}