/* ==========================================================================
   PAGINA CONTATTAMI
   ========================================================================== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px); }
  to {
    opacity: 1;
    transform: translateX(0); } }

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px); }
  to {
    opacity: 1;
    transform: translateX(0); } }

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px); }
  to {
    opacity: 1;
    transform: translateY(0); } }

/* ------------------------------
   HERO su templates/hero
------------------------------ */
.contattami-section {
  padding: 4rem 2rem;
  background: var(--bg-white);
  overflow: hidden; }

.contattami-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  width: 100%;
  min-width: 0; }
  .contattami-inner > * {
    min-width: 0; }
  @media (max-width: 1024px) {
    .contattami-inner {
      grid-template-columns: 1fr;
      gap: 2rem; } }
.contattami-text {
  display: flex;
  flex-direction: column;
  opacity: 0;
  animation: slideInLeft 0.8s ease forwards;
  animation-delay: 0.2s;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--pink-strong);
  line-height: 1.4; }
  .contattami-text p {
    margin: 0 0 1em;
    font: inherit;
    color: inherit;
    line-height: inherit; }
  .contattami-text a {
    color: inherit;
    text-decoration: underline; }

.contattami-photo {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  margin: 1.5rem auto 0;
  transition: transform 0.3s ease; }
  .contattami-photo:hover {
    transform: scale(1.04); }
  @media (max-width: 1024px) {
    .contattami-photo {
      max-width: 280px; } }
  @media (max-width: 480px) {
    .contattami-photo {
      max-width: 180px; } }
.contattami-form-wrapper {
  width: 100%;
  opacity: 0;
  animation: slideInRight 0.8s ease forwards;
  animation-delay: 0.2s; }

.contattami-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem; }

.hidden {
  display: none; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem; }
  @media (max-width: 480px) {
    .form-row {
      grid-template-columns: 1fr; } }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem; }
  .form-group label {
    font-size: 0.9rem;
    color: var(--pink-strong);
    font-weight: 500; }
  .form-group input,
  .form-group textarea {
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    color: var(--pink-strong) !important;
    background: var(--bg-white);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    outline: none;
    resize: none; }
    .form-group input::placeholder,
    .form-group textarea::placeholder {
      color: rgba(var(--pink-strong-rgb), 0.4); }
    .form-group input:focus,
    .form-group textarea:focus {
      border-color: var(--pink-strong);
      box-shadow: 0 0 0 3px rgba(var(--pink-strong-rgb), 0.1), 0 0 12px rgba(var(--pink-strong-rgb), 0.2);
      transform: translateY(-1px); }
  .form-group .field-error {
    font-size: 0.8rem;
    color: var(--pink-strong);
    display: none; }
  .form-group.has-error input,
  .form-group.has-error textarea {
    border-color: var(--pink-strong); }
  .form-group.has-error .field-error {
    display: block; }

.form-group--checkbox .checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--pink-strong);
  line-height: 1.4; }
  .form-group--checkbox .checkbox-label input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: var(--pink-strong);
    cursor: pointer; }
  .form-group--checkbox .checkbox-label a {
    color: var(--pink-strong);
    text-decoration: underline; }

.form-label-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem; }
  .form-label-row label {
    flex-shrink: 0; }
  .form-label-row .form-hint {
    font-size: 0.8rem;
    color: var(--pink-strong) !important;
    text-align: right; }
  @media (max-width: 480px) {
    .form-label-row {
      flex-direction: column;
      gap: 0.25rem; }
      .form-label-row .form-hint {
        text-align: left; } }
.form-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.25rem; }
  .form-counter .char-counter {
    font-size: 0.8rem;
    color: var(--pink-strong);
    margin-left: auto; }
    .form-counter .char-counter.is-limit {
      font-weight: 600; }

.btn-invia {
  width: 100%;
  padding: 1rem;
  background: var(--bg-white);
  color: var(--pink-strong);
  border: 2px solid var(--pink-strong);
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease; }
  .btn-invia:hover {
    background: var(--pink-strong);
    color: var(--bg-white);
    box-shadow: 0 0 8px 2px rgba(var(--pink-strong-rgb), 0.3), 0 0 20px 6px rgba(var(--pink-strong-rgb), 0.2), 0 0 40px 12px rgba(var(--pink-strong-rgb), 0.1);
    transform: translateY(-2px); }
  .btn-invia:active {
    transform: scale(0.98);
    box-shadow: none; }

.form-success {
  background: var(--primary-pink);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  animation: fadeIn 0.5s ease forwards; }
  .form-success .success-icon {
    font-size: 48px;
    line-height: 1;
    color: var(--primary-fuxia); }
  .form-success p {
    font-size: 20px;
    font-weight: 400;
    line-height: 22px;
    color: var(--primary-fuxia);
    text-align: center;
    margin: 0;
    max-width: 400px; }

@media (max-width: 768px) {
  .contattami-section {
    padding: 2rem 1rem; }
  .contattami-text,
  .contattami-form-wrapper {
    animation: none;
    opacity: 1 !important; }
  .contattami-photo {
    order: -1;
    margin: 0 auto 1.5rem; }
  .contattami-text {
    font-size: 22px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.66px;
    color: var(--primary-fuxia); }
  .btn-invia:hover {
    transform: none;
    box-shadow: none; } }
