:root {
  --main-color: #ff416c;
  --second-color: #ff4b2b;
  --accent: #1dd1a1;
  --dark: #222;
  --light: #fff;
  --bg-gradient: linear-gradient(135deg, #ff416c, #ff4b2b);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Rubik', sans-serif;
  background: #f2f2f2;
  color: #333;
  scroll-behavior: smooth;
}

header {
  background: var(--bg-gradient);
  color: white;
  padding: 20px 0;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 100;
}

header h1 {
  font-size: 2rem;
}

nav ul {
  margin-top: 10px;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--accent);
}

.section {
  padding: 60px 20px;
  text-align: center;
  animation: fadeIn 1s ease-in;
}

.colored {
  background: #fff0f0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 30px;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.hero-text {
  max-width: 500px;
}

.hero-text h2 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.hero-text p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  background: var(--main-color);
  color: white;
  padding: 12px 25px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: var(--accent);
}

.hero-img {
  max-width: 400px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

.hero-img:hover {
  transform: scale(1.05);
}

.services {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.service-card {
  background: white;
  padding: 30px;
  width: 280px;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.services2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  padding: 32px 18px;
}

.service-card2 {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 22px 14px;
  font-size: 1.05rem;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
}

.service-card:hover {
  transform: translateY(-10px);
}

.service-card i {
  color: var(--main-color);
  margin-bottom: 15px;
}

form.form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input, select, button {
  padding: 14px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

button {
  background: var(--main-color);
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

button:hover {
  background: var(--second-color);
}

.service-img {
  display: block;
  margin: 0 auto;
  max-width: 95%;
  max-height: 240px;
  height: auto;
  border-radius: 10px;
}
#messaggio {
  margin-top: 15px;
  font-weight: bold;
  color: var(--accent);
}

footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
  font-size: 0.9rem;
}

/* Animazione */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .services {
    flex-direction: column;
  }
}
