/* ============================================================
   PWB Forensic — contact.css
   NESSUNA regola globale su: nav, ul, img, .flag, .dropdown-*,
   .hamburger, .menu, body padding laterale.
   ============================================================ */

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

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

body {
  font-family: 'Poppins', 'Inter', Arial, sans-serif;
  min-height: 100vh;
  width: 100%;
  background-image: url('/img/Tallinn-Estonia.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  /* padding-top gestito da navbar.html */
}

/* Overlay scuro sul background */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.80);
  z-index: 0;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0 0 1rem 0;
  padding: 0;
}

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


/* ════════════════════════════════
   SECTION
   ════════════════════════════════ */
section {
  position: relative;
  z-index: 1;
  padding: 60px 0 80px;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Header sezione ── */
.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-header h2 {
  color: #fff;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 16px;
}

.section-header p {
  color: #ddd;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* ── Row: info + form ── */
.row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}


/* ════════════════════════════════
   CONTACT INFO (sinistra)
   ════════════════════════════════ */
.contact-info {
  width: 48%;
}

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

.contact-info-icon {
  flex-shrink: 0;
  height: 70px;
  width: 70px;
  background-color: #0072CE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-info-icon i {
  font-size: 1.6rem;
  color: #fff;
}

.contact-info-content h4 {
  color: #0072CE;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-content p {
  color: #eee;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}


/* ════════════════════════════════
   CONTACT FORM (destra)
   ════════════════════════════════ */
.contact-form {
  background-color: #fff;
  padding: 40px;
  width: 48%;
  border-radius: 8px;
}

.contact-form .input-box {
  position: relative;
  width: 100%;
  margin-top: 14px;
}

.contact-form .input-box input,
.contact-form .input-box textarea {
  width: 100%;
  padding: 5px 0;
  font-size: 1rem;
  font-family: inherit;
  margin: 10px 0;
  border: none;
  border-bottom: 2px solid #333;
  outline: none;
  resize: none;
  background: transparent;
}

.contact-form .input-box textarea {
  min-height: 100px;
}

.contact-form .input-box span {
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 1rem;
  pointer-events: none;
  transition: 0.4s;
  color: #555;
}

.contact-form .input-box input:focus ~ span,
.contact-form .input-box input:valid ~ span,
.contact-form .input-box textarea:focus ~ span,
.contact-form .input-box textarea:valid ~ span {
  color: #e91e63;
  font-size: 0.75rem;
  transform: translateY(-22px);
}

.contact-form .input-box input[type="submit"] {
  width: 100%;
  background: #0072CE;
  color: #fff;
  border: 1px solid #0072CE;
  cursor: pointer;
  padding: 12px;
  font-size: 1.1rem;
  font-family: inherit;
  font-weight: 600;
  border-radius: 4px;
  margin-top: 10px;
  transition: background 0.3s, color 0.3s;
}

.contact-form .input-box input[type="submit"]:hover {
  background: #e47911;
  border-color: #e47911;
  color: #fff;
}


/* ════════════════════════════════
   FOOTER NOTE
   ════════════════════════════════ */
.note {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 24px 20px;
  font-size: 0.8rem;
  color: #555;
  border-top: 1px solid #1e1e1e;
  letter-spacing: 0.5px;
  background: #000;
}


/* ════════════════════════════════
   RESPONSIVE — TABLET ≤ 900px
   ════════════════════════════════ */
@media (max-width: 900px) {

  body { padding-top: 60px; }

  .section-header h2 { font-size: 2.2rem; }

  .row {
    flex-direction: column;
    gap: 30px;
  }

  .contact-info,
  .contact-form {
    width: 100%;
  }

  .contact-info { margin-bottom: 0; }
}


/* ════════════════════════════════
   RESPONSIVE — MOBILE ≤ 600px
   ════════════════════════════════ */
@media (max-width: 600px) {

  body { padding-top: 60px; }

  section { padding: 40px 0 60px; }

  .section-header h2 { font-size: 1.8rem; }
  .section-header p  { font-size: 0.9rem; }

  .contact-info-icon {
    width: 54px;
    height: 54px;
  }

  .contact-info-icon i { font-size: 1.3rem; }

  .contact-form {
    padding: 28px 20px;
  }
}
