/* --- RESET E BODY --- */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  font-size: large;
  background-color: #0d1117;
  color: #ffffff;
}

/* --- TOOLBAR / NAVIGAZIONE --- */
.toolbar {
  display: flex;
  padding: 10px 20px;
  background-image: url(loghi/sfondo.png);
  background-size: cover;
  flex-direction: column;
  justify-content: center;
}

#sezione1 {
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#logo1 {
    display: flex
;
    width: 20%;
    align-content: center;
    flex-direction: column;
    align-items: center;
}

/* --- CONTENITORE PRINCIPALE --- */
#container1 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Titolo principale */
#titolochisiamo {
  font-size: 2.5rem;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Paragrafi */
.section-text {
  font-size: 1.1rem;
  color: #bbbbbb;
  margin-bottom: 20px;
  text-align: justify;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Evidenziazione testo */
.highlight {
  color: #00b4fe;
  font-weight: 600;
}

/* Bottone CTA */
.cta-button {
  display: inline-block;
  background-color: #00b4fe;
  color: white;
  padding: 14px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 30px;
  transition: all 0.3s ease;
  margin-top: 10px;
  cursor: pointer;
}

.cta-button:hover {
  background-color: #006e99;
  transform: scale(1.05);
}

/* Box consulenza gratuita */
#consultazione-box {
  background-color: #ffffff;
  border-left: 5px solid #d60281;
  padding: 25px;
  margin: 30px auto;
  border-radius: 8px;
  max-width: 800px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#consultazione-box h3 {
  font-size: 1.5rem;
  color: #00b4fe;
  margin-bottom: 15px;
  font-weight: 900;
}

#consultazione-box p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 15px;
}

/* --- SEZIONE CONTATTI --- */
#contactSection  {
    max-width: 1100px;
    margin: 60px auto;
    padding: 20px;
    background-color: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex
;
    gap: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s 
ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Wrapper contatti */
.contact-wrapper {
  display: flex;
  gap: 30px;
  flex-direction: column;
  align-items: center;
}

.form-section {
    flex: 1;
    min-width: 500px;
    background: #161b22;
    padding: 20px;
    border-radius: 10px;
    display: flex
;
    flex-direction: column;
    justify-content: center;
    align-items: center;
        margin-bottom: 20px;
    transition: all 0.3s ease;
}

#centralesezione {
    display: flex
;
}

/* Form campi */
.allineamentoicontext {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  position: relative;
  width: 100%;
}

.allineamentoicontext span {
  position: absolute;
  left: 12px;
  color: #888;
  font-size: 18px;
  z-index: 2;
}

.allineamentoicontext input,
.allineamentoicontext textarea {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #30363d;
  border-radius: 8px;
  background-color: #0d1117;
  color: #ffffff;
  font-size: 1em;
}

.allineamentoicontext input:focus,
.allineamentoicontext textarea:focus {
  outline: none;
  border-color: #a0d8f1;
  background-color: #0d1117;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
  transform: translateY(-2px);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* Select servizio */
#formSelectService {
  width: 100%;
  height: 60px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 22px;
  appearance: none;
  background-color: #ffffff00;
  color: white;
  font-weight: 900;
  border: 2px solid #ddd;
  text-align: center;
}

#formSelectService:focus {
  outline: none;
  border-color: #0277bd;
  box-shadow: 0 0 0 4px rgba(2, 119, 189, 0.2);
}

#formSelectService:hover {
  transform: scale(1.02);
}

/* Pulsante Avanti */
#formButton {
  position: relative;
  background-color: #0277bd;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  border-radius: 10px;
  width: 100%;
  height: 60px;
  border: none;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#formButton::before {
  content: attr(data-before);
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  transition: transform 0.4s ease;
  transform: translateY(0);
  z-index: 1;
}

#formButton::after {
    content: "Conferma";
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #40c9ff 0%, #e81cff 100%);
  color: white;
  font-weight: 900;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  z-index: 0;
}

#formButton:hover::before {
  transform: translateY(-100%);
}

#formButton:hover::after {
  transform: translateY(0);
}

#formButton:focus {
  outline: none;
}

#formButton:active {
  transform: scale(0.95);
}

/* --- DOMANDA CENTRALIZZATA --- */
.question-container {
  text-align: center;
  padding: 10px 0;
  width: 100%;
}

.progress-bar {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 15px 0;
}

.progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #30363d;
}

.progress-dot.active {
  background-color: #40c9ff;
}

.question-input-wrapper {
  position: relative;
  margin-bottom: 15px;
  width: 100%;
}

.question-input-wrapper label {
  color: white;
  font-size: 1.1em;
  margin-bottom: 10px;
  display: block;
  text-align: left;
}

.question-input {
  width: 100%;
  padding: 12px 16px;
  background-color: #0d1117;
  color: white;
  border: 1px solid #30363d;
  border-radius: 8px;
  font-size: 16px;
  font-family: system-ui, sans-serif;
  resize: vertical;
  min-height: 48px;
}

.question-input:focus {
  outline: none;
  border-color: #40c9ff;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* --- RIEPILOGO --- */
.summary-item {
  text-align: left;
  margin: 10px 0;
  padding: 10px;
  background: #0d1117;
  border-radius: 8px;
  border-left: 3px solid #40c9ff;
  transition: all 0.3s ease;
  cursor: pointer;
}

.summary-item:hover {
  background: #161b22;
  transform: translateX(5px);
}

.summary-item.selected {
  background-color: #16263d;
  border-left-color: #00b4fe;
  box-shadow: 0 0 0 2px rgba(64, 201, 255, 0.3);
}

.modify-button {
  display: none;
  background-color: #00b4fe;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  margin-top: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
  width: 100%;
  max-width: 300px;
  margin: 15px auto;
  text-align: center;
}

.modify-button:hover {
  background-color: #0091d1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 180, 254, 0.3);
}

/* --- LOADER E MESSAGGIO FINALE --- */
.loader {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid #40c9ff;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.success-container {
  text-align: center;
  padding: 20px;
}

.success-icon {
  color: #4ade80;
  font-size: 48px;
  margin-bottom: 15px;
}

.success-title {
  color: #58a6ff;
  font-size: 1.5em;
  margin: 10px 0;
}

.success-message {
  color: #c9d1d9;
  margin-bottom: 20px;
  line-height: 1.5;
}

.success-button {
  background-color: #0277bd;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  text-transform: uppercase;
  min-height: 48px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
}

.success-button:hover {
  background-color: #0288d1;
}

/* --- ERRORE VALIDAZIONE --- */
.input-error {
  border-color: #ff4444 !important;
  box-shadow: 0 0 0 4px rgba(255, 68, 68, 0.15) !important;
}

.error-message {
  color: #ff4444;
  font-size: 0.9em;
  margin-top: 5px;
  text-align: left;
  height: 20px;
}

/* --- TALLY SPECIFIC STYLES --- */
.tally-section {
  background: #161b22;
  border-radius: 10px;
  padding: 20px;
  margin-top: 20px;
}

.tally-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 15px;
}

.tally-header i {
  color: #40c9ff;
  font-size: 24px;
}

.tally-header h3 {
  color: #58a6ff;
  margin: 0;
  font-size: 1.3em;
}

.tally-instructions {
  color: #c9d1d9;
  margin-bottom: 15px;
  text-align: left;
  line-height: 1.5;
}

.tally-iframe-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  margin-bottom: 15px;
}

.tally-iframe {
  width: 100%;
  height: 450px;
  border: none;
  min-height: 400px;
  border-radius: 8px;
}

.tally-confirmation {
  color: #c9d1d9;
  font-style: italic;
  text-align: left;
  margin-top: 10px;
  font-size: 0.95em;
}

.tally-button {
  background: linear-gradient(135deg, #40c9ff 0%, #e81cff 100%);
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  display: block;
  text-transform: uppercase;
}

.tally-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(64, 201, 255, 0.3);
}

.tally-button:active {
  transform: translateY(0);
}

/* --- PRIVACY SECTION --- */
.privacy-section {
  margin-top: 20px;
  padding: 15px;
  background: #161b22;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  font-size: medium;
}

/* --- WHATSAPP --- */
#whatsappContainer {
  flex: 1;
  display: flex;
  justify-content: center;
  text-align: center;
  padding: 15px;
  background: linear-gradient(135deg, #d0f0c0 0%, #a8e6a1 100%);
  border-radius: 18px;
  border: 2px solid #a2d99c;
  opacity: 0;
  transform: translateX(30px);
  animation: slideInRight 0.8s ease-out 0.3s forwards;
  align-items: center;
  flex-direction: column;
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#whatsappTitle {
  font-size: 1.7em;
  color: #25d366;
  margin-bottom: -20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

#whatsappText {
  color: #2e7d32;
  font-size: 1.1em;
  margin-bottom: 20px;
}

#qrContainer {
  margin: 20px 0;
  padding: 15px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  animation: floatQR 3s ease-in-out infinite;
}

@keyframes floatQR {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

#whatsappQR {
  width: 180px;
  height: 180px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#qrDescription {
  font-size: 0.95em;
  color: #388e3c;
  margin: 10px 0 15px;
  font-style: italic;
}

#whatsappButton {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background-color: #25d366;
  color: white;
  padding: 14px 26px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 1.1em;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.38);
  margin-top: 20px;
  margin-bottom: 20px;
  -webkit-box-reflect: below 5px linear-gradient(transparent, #00000055);
}

#whatsappButton:hover {
  background-color: #128c7e;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 16px rgba(18, 140, 126, 0.4);
}

#whatsappButton:active {
  transform: translateY(-2px);
}

#whatsappIcon {
  font-size: 1.4em;
  transition: transform 0.3s ease;
}

#whatsappButton:hover #whatsappIcon {
  transform: rotate(12deg) scale(1.15);
}

/* --- FOOTER --- */
#footer {
  background-color: #000000;
  font-size: medium;
  width: 100%;
  margin-top: 40px;
  padding-top: 30px;
    background-image: url(loghi/sfondo.png);
    background-size: cover;
}

#griglia2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  justify-items: center;
  text-align: center;
  align-items: center;
  align-content: center;
  padding: 0 20px 20px;
}

#logo2 {
  width: 30%;
  margin-bottom: 15px;
}

#ul2 {
  text-align: justify;
  padding-left: 0;
  list-style: none;
  margin: 0;
}

#ul2 li {
  margin-bottom: 12px;
  font-size: 15px;
  padding-left: 0;
  position: relative;
}

#ul2 li:last-child {
  margin-bottom: 0;
}

#ul2 a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

#ul2 a:hover {
  color: #00b4fe;
  text-decoration: underline;
}

#ul3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 0;
}

#cards {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.card-container {
  position: relative;
  width: 150px;
  min-height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5em 10px;
  border-radius: 0.5em;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #161b22;
}

#Whatsapp { background-color: #25d366; }
#instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
#facebook { background-color: #006eff; }
#Gmail { background-color: #f21818; }

.icon-container {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
}

.icon-container svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.icon-container p {
  font-size: 0.9em;
  font-weight: 400;
  color: white;
  margin: 0;
  text-align: center;
  width: 100%;
}

.card-container:hover {
  transform: scale(1.1);
  z-index: 2;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Metodi di pagamento */
#metodidipagamanto {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

#svgiconepay,
#svgiconepaybtc {
  height: 28px;
}

/* Copyright */
#spaziohr {
  border: none;
  border-top: solid 1px rgba(255, 255, 255, 0.1);
  margin: 20px 0;
}

#copyright-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 15px 0;
  margin: 0 20px;
}

#copyright-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 8px;
  color: #aaa;
  font-size: 14px;
}

#copyright-main p {
  margin: 0;
  width: 100%;
  text-align: center;
}

#copyright-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 5px 0;
  margin-top: 30px;
  margin-bottom: 20px;
}

#copyright-links a {
  color: #ffffff;
  text-decoration: none;
  margin: 0 5px;
  font-size: 13px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

#copyright-links a:hover {
  color: #00b4fe;
  text-decoration: underline;
}

/* --- FONT FACE --- */
@font-face {
  font-family: 'Heavitas';
  src: url('Heavitas.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cocogoose';
  src: url('Cocogoose-Pro-Bold-trial.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

/* --- MENU MOBILE --- */
#menuButton {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  background-color: #00b4fe;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

@media (min-width: 769px) {
  #menuButton {
    display: none;
  }
}

@media (max-width: 768px) {
  #navbar-container {
    display: none;
  }
  .toolbar {
    padding-right: 80px;
  }
}

#sideMenu {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #0d1117;
  z-index: 999;
  transition: right 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  display: flex;
  flex-direction: column;
  border-radius: 12px 0 0 12px;
  overflow: hidden;
}

#sideMenu.open {
  right: 0;
}

#menuHeader {
  padding: 20px;
  text-align: right;
  border-bottom: 1px solid #333;
}

#closeMenu {
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

#closeMenu:hover {
  color: #00b4fe;
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}

#navbar-container-mobile {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

/* --- CAMPO DINAMICO INSTAGRAM/WA --- */
#contactInfoContainer {
  margin-top: 15px;
  padding: 12px;
  background-color: #0d1117;
  border-radius: 8px;
  border-left: 4px solid #40c9ff;
  display: none;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
}

#contactInfoContainer h4 {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #c13584;
  font-size: 1rem;
  font-weight: 600;
}

#contactInfoContainer p {
  margin-bottom: 8px;
  color: #bbbbbb;
  font-size: 0.9rem;
  line-height: 1.4;
  margin-top: 0;
}

#contactInfoContainer input {
  width: 100%;
  padding: 10px 12px;
  background-color: #0d1117;
  color: #ffffff;
  border: 1px solid #30363d;
  border-radius: 8px;
  font-size: 16px;
  font-family: system-ui, sans-serif;
  margin-top: 5px;
  box-sizing: border-box;
}

#contactInfoContainer input:focus {
  outline: none;
  border-color: #40c9ff;
  box-shadow: 0 0 0 4px rgba(64, 201, 255, 0.15);
}

#contactInfoContainer .error-message {
  color: #ff4444;
  font-size: 0.85rem;
  margin-top: 4px;
  margin-bottom: 0;
  height: 20px;
}

/* === MEDIA QUERIES PER MOBILE RESPONSIVE === */

@media (max-width: 768px) {
  #titolochisiamo { font-size: 2rem; }
  .section-text { font-size: 1rem; }
  #logo1 { width: 60%; max-width: 200px; }
  #contactSection { margin: 40px auto; padding: 15px; gap: 20px; display: block;}
  .form-section { min-width: 100%; padding: 15px; }
  #formSelectService, #formButton { height: 50px; font-size: 18px; padding: 10px 14px; }
  #whatsappContainer { padding: 15px; }
  #whatsappQR { width: 140px; height: 140px; }
  #whatsappTitle { font-size: 1.4em; margin-bottom: -10px; }
  #whatsappButton { font-size: 1em; padding: 12px 20px; }
  #consultazione-box { padding: 20px 15px; }
}

@media (max-width: 480px) {
  body { font-size: medium; }
  #logo1 { width: 70%; max-width: 180px; }
  #contactSection { margin: 30px auto; padding: 10px; gap: 15px; }
  .form-section { padding: 10px; }
  #formSelectService, .question-input { font-size: 16px; padding: 10px 12px; }
  #formButton { height: 45px; font-size: 15px; }
  #whatsappQR { width: 120px; height: 120px; }
  #whatsappTitle { font-size: 1.3em; }
  #whatsappButton { font-size: 0.95em; padding: 10px 16px; }
  .section-text { font-size: 0.95rem; }
  #titolochisiamo { font-size: 1.8rem; }
}

@media (max-width: 399px) {
  #logo1 { width: 75%; max-width: 160px; }
  #contactSection { margin: 20px auto; padding: 8px; width: 90%;}
  .form-section { padding: 8px; }
  #formSelectService, .question-input { font-size: 15px; padding: 8px 10px; }
  #formButton { height: 40px; font-size: 14px; }
  #whatsappQR { width: 100px; height: 100px; }
  #whatsappButton { font-size: 0.9em; padding: 8px 14px; }
}

/* === INFO CONTATTI === */
#infoContactsSection {
  max-width: 900px;
  margin: 80px auto 60px;
  padding: 0 20px;
  text-align: center;
}

#infoContactTitle {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

#infoContactSubtitle {
  font-size: 18px;
  color: #ffffff;
  margin-bottom: 50px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

#infoContactGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin: 0 auto;
}

.infoContactItem {
  background-color: #161b22;
  border-radius: 15px;
  padding: 40px 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #c9d1d9;
}

.infoContactItem:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px #db0083;
}

.infoContactItem .icon {
  font-size: 40px;
  margin-bottom: 20px;
  color: #ffffff;
}

.infoContactItem h3 {
  color: #ffffff;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 20px;
}

.infoContactItem p {
  font-size: 17px;
  color: #c9d1d9;
  margin: 0;
  line-height: 1.6;
}

.infoSocialLink {
  color: #c9d1d9;
  text-decoration: none;
  transition: color 0.3s ease;
  font-weight: 500;
  word-break: break-all;
}

.infoSocialLink:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* --- FOOTER RESPONSIVE --- */
@media (max-width: 768px) {
  #footer { padding-top: 20px; margin-top: 30px; }
  #griglia2 { grid-template-columns: 1fr; gap: 2rem; padding: 0 15px 20px; }
  #logo2 { width: 40%; margin: 0 auto 12px; display: block; }
  #metodidipagamanto { justify-content: center; gap: 12px; }
  #svgiconepay, #svgiconepaybtc { height: 24px; }
  #copyright-container { gap: 0.5rem; padding: 10px; }
  #copyright-main { gap: 4px; font-size: 12px; }
  #copyright-links { gap: 8px; padding: 3px 0; }
  #copyright-links a { font-size: 12px; margin: 0 3px; }
  #spaziohr { margin: 15px 0; }
  .card-container { width: 140px; min-height: 44px; padding: 0.5em 8px; }
  .icon-container p { font-size: 0.85em; }
  .card-container:hover { transform: scale(1.15); }
}

@media (max-width: 575.98px) {
  .card-container { width: 130px; min-height: 40px; }
  .icon-container p { font-size: 0.8em; }
  #copyright-links { flex-direction: column; gap: 5px; }
  #copyright-links a { width: 100%; text-align: center; }
}

@media (max-width: 479.98px) {
  #copyright-links { gap: 6px; margin-top: 30px; margin-bottom: 20px; }
  #copyright-links a { font-size: 11px; }
  #metodidipagamanto { gap: 10px; }
  #svgiconepay, #svgiconepaybtc { height: 22px; }
}