body {
  margin: 0;
  background: #F4F2EE;
  font-family: sans-serif;
  color: #222;
}

body {
  font-family: 'Inter', sans-serif;
}

header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 40px 0 20px;
  text-align: center;
  background: transparent;
  font-size: 1.8em;
  font-weight: bold;
  z-index: 1;
}

header a {
  color: #222;
  text-decoration: none;
}

.wrapper {
  display: flex;
  flex-direction: column;
}

.scene {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  position: relative;
}

.scene-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.card {
  width: 520px;
  height: 320px;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
  cursor: grab;
  border-radius: 15px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  transform: rotateY(180deg);
  background-color: white;
}

.card h1, h2, p, a {
  user-select: none;
}

.card img {
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.card a {
  color: inherit;
  text-decoration: none;
  transition: text-decoration 0.2s;
}
  
.card a:hover {
  text-decoration: underline;
} 

.face {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  backface-visibility: hidden;
  border-radius: 15px;
  overflow: hidden;
}

.front {
  display: flex;
}

.left-half {
  flex: 1.2;
  background: white;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.right-half {
  flex: 1;
  background: linear-gradient(to right, #B80000, #c62828);
  padding: 20px 20px 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  color: white;
  text-align: right;
  position: relative;
  overflow: hidden;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
}

.right-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.back {
  background: white;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.back::before,
.back::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  z-index: 0;
}

.back::before {
  top: 0;
  left: 0;
  border-top: 160px solid #c62828;
  border-right: 160px solid transparent;
}

.back::after {
  bottom: 0;
  right: 0;
  border-bottom: 160px solid #c62828;
  border-left: 160px solid transparent;
}

h1, h2, p {
  margin: 0;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .card {
    width: 90vw;
    height: 60vh;
  }

  .front {
    flex-direction: column;
  }

  .left-half,
  .right-half {
    flex: 1;
    width: 100%;
  }

  .left-half {
    width: 60%;
    padding: 20px 40px 20px 20px;
  }

  .right-half {
    border-top: 1px solid #ccc;
    clip-path: none;
    text-align: left;
    justify-content: flex-start;
    padding: 20px;
  }

  .right-content {
    margin-left: 10px;
    gap: 10px;
  }

  .back {
    padding: 20px;
  }
}

.scopri-btn {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: 2px solid #c62828;
  padding: 10px 20px;
  font-size: 1em;
  font-weight: bold;
  color: #c62828;
  cursor: pointer;
  border-radius: 25px;
  transition: background 0.3s, color 0.3s;
}

.scopri-btn:hover {
  background: #c62828;
  color: white;
}

.content-below {
  width: 100%;
  padding: 60px 20px;
  background-color: #fff;
  box-sizing: border-box;
}

.content-container {
  max-width: 800px;
  margin: 0 auto;
  color: #333;
  line-height: 1.6;
}

.content-container h2 {
  margin-bottom: 20px;
}

footer {
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 40px 20px;
  background: #F4F2EE;
  font-size: 0.9em;
  color: #333;
}

footer a {
  text-decoration: none;
  color: #333;
  transition: color 0.3s;
}

footer a:hover {
  color: #c62828;
}

.pricing {
  text-align: center;
}

.cta-button {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 24px;
  background-color: #c62828;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
  border-radius: 25px;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #a31f1f;
}

.logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

.company-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.company-header h1 {
  margin-top: 0;
}

.logo-front {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.top-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.address {
  font-size: 12px;
}

.description {
  font-size: 12px;
  color: #666;
}
