:root {
  --black: #1a1a1a;
  --white: #ffffff;
  --accent: #c11c3a;
  --gray: #f4f4f4;
  --font-main: 'Helvetica', 'Arial', sans-serif;
  --font-headings: 'Helvetica', 'Arial', sans-serif;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-main);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.page-content {
  flex: 1;
}

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

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 2rem;
  /* aumentato padding orizzontale */
  box-sizing: border-box;
}


.header {
  background: #f9e3b1;
  color: var(--black);
}

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

.logo {
  text-align: left;
  font-family: var(--font-headings);
  font-size: 1.6rem;
  font-weight: 600;
}

.btn-contact {
  background: var(--accent);
  color: var(--white);
  padding: 0.4rem 1rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
}

.btn-contact:hover {
  text-decoration: none;
  color: var(--white);
}

.hero {
  position: relative;
  background: linear-gradient(to top, #f3c683, #f7d794);
  text-align: left;
}

.skyline {
  width: 100%;
  height: 600px;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  top: 15%;
  left: 2%;
  right: 2%;
  width: auto;
  color: var(--black);
  text-align: left;
}

.hero-text h1 {
  font-family: var(--font-headings);
  font-size: 4rem;
  margin: 0;
}

.hero-text p {
  font-size: 1.2rem;
  margin-top: 0.3rem;
}

.mission {
  background: var(--white);
  padding: 4rem 0;
  text-align: left;
}

.mission-title {
  font-family: var(--font-headings);
  font-size: 2.2rem;
  margin-bottom: 2rem;
  color: var(--black);
}

.mission-text {
  max-width: 900px;
  margin: 0 2 1.5rem;
  font-size: 1.1rem;
  line-height: 1.8;
}

.contact {
  background: var(--gray);
  padding: 4rem 0;
}

.contact-info {
  background-image: linear-gradient(rgba(193, 28, 58, 0.7), rgba(193, 28, 58, 0.9)),
    url('https://images.unsplash.com/photo-1612538498456-e861df91d4d0?q=80&w=2574&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-5px);
  transition: all 0.3s ease;
}

.contact-info h2 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.contact-info h3 {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.contact-info address {
  font-style: normal;
  line-height: 1.6;
  margin-top: 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-family: var(--font-main);
  max-width: 90%;
}

.contact-form button {
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
}

.footer {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
}

.footer a {
  color: var(--white);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-text {
    position: absolute;
    top: 5%;
    left: 2%;
    right: 5%;
    padding: 1rem;
    text-align: left;
  }


  .hero-text h1 {
    font-size: 2rem;
  }

  .container {
    padding: 1.5rem;
    /* padding uniforme su tutti i lati */
  }
}

/* Input e textarea */
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  /* ↓ Ridotto il padding */
  border: 1px solid #ccc;
  border-radius: 6px;
  /* ↓ leggermente meno arrotondato */
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  /* ↓ leggermente più piccolo */
  margin-bottom: 0.4rem;
  /* ↓ Margine ridotto */
  box-sizing: border-box;
  background-color: #fff;
  color: #333;
}

/* Textarea */
.wpcf7 textarea {
  resize: vertical;
  min-height: 100px;
  /* ↓ Ridotto da 120px */
}

/* Pulsante */
.wpcf7 input[type="submit"] {
  background-color: #c11c3a;
  color: #fff;
  font-weight: bold;
  padding: 0.6rem 1.8rem;
  /* ↓ Compattato */
  border: none;
  border-radius: 40px;
  cursor: pointer;
  font-size: 0.95rem;
  /* ↓ Leggermente più piccolo */
  transition: background-color 0.3s ease;
  margin-top: 0.4rem;
  /* ↓ Meno spazio sopra */
}

/* Hover */
.wpcf7 input[type="submit"]:hover {
  background-color: #a81832;
}
