/* =========================================================
   Footer moderno – Progetto Ombra (Latina) | Negozio di tende
   File: footer.css (CLEAN)
   ========================================================= */

.ct-footer{
  --ctf-g:#06A34E;
  --ctf-y:#F9EF05;

  --ctf-bg:#0f0f0e;
  --ctf-line: rgba(255,255,255,.10);
  --ctf-mut: rgba(255,255,255,.74);
  --ctf-mut2: rgba(255,255,255,.58);

--ctf-max: 1520px;                 /* più largo */
--ctf-pad: clamp(16px, 2vw, 28px);  /* meno bordo laterale */

  --ctf-ease: cubic-bezier(.2,.9,.2,1);

  color:#fff;
  background:
    radial-gradient(600px 400px at 12% 85%, rgba(6,163,78,.18), transparent 70%),
    radial-gradient(520px 360px at 52% 92%, rgba(249,239,5,.16), transparent 72%),
    radial-gradient(480px 320px at 88% 78%, rgba(6,163,78,.14), transparent 70%),
    var(--ctf-bg);

  border-top: 1px solid rgba(255,255,255,.08);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

.ct-footer *{ box-sizing:border-box; }
.ct-footer a{ color: inherit; text-decoration:none; }

.ct-footer a:focus{
  outline: 3px solid rgba(249,239,5,.35);
  outline-offset: 3px;
  border-radius: 10px;
}

.ct-footer__wrap{
  width: min(var(--ctf-max), calc(100% - (var(--ctf-pad)*2)));
  margin-inline:auto;
  padding: clamp(56px, 6vw, 92px) 0 22px;
}

/* TOP */
.ct-footer__top{
  position: relative;
  padding-top: 60px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--ctf-line);
}

/* accent line (distaccata, non addosso) */
.ct-footer__top::before{
  content:"";
  position:absolute;
  left:0; right:0;
  top: 10px;
  height: 2px;
  background: linear-gradient(90deg, rgba(6,163,78,.95), rgba(249,239,5,.95));
  opacity: .9;
}

/* GRID */
.ct-footer__grid{
  display:grid;
  grid-template-columns: 1.55fr .95fr 1.25fr;
  gap: clamp(20px, 2.4vw, 34px);
  align-items:start;
}


@media (max-width: 1020px){
  .ct-footer__grid{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px){
  .ct-footer__grid{ grid-template-columns: 1fr; }
}

/* LOGO */
.ct-footer__logoLink{
  display:inline-flex;
  align-items:center;
  margin-bottom: 12px;
}

.ct-footer__logo{
  display:block;
  width:auto;
  height:auto;
  max-width: 320px;
  max-height: 82px;
  object-fit: contain;
}

@media (max-width: 460px){
  .ct-footer__logo{ max-width: 260px; max-height: 72px; }
}

/* BRAND */
.ct-footer__brandRow{ display:grid; gap: 6px; }

.ct-footer__brandName{
  font-weight: 1000;
  letter-spacing: -.02em;
  font-size: 18px;
  line-height: 1.1;
}

.ct-footer__brandTag{
  color: var(--ctf-mut2);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.45;
  max-width: 54ch;
}

.ct-footer__brandDesc{
  margin: 12px 0 0;
  color: var(--ctf-mut);
  font-size: 14px;
  line-height: 1.8;
  max-width: 60ch;
}

/* CTA */
.ct-footer__ctaRow{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  margin-top: 14px;
}

.ct-footer__btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: transparent;
  color: #fff;
  font-weight: 950;
  font-size: 14px;
  cursor:pointer;
  transition: transform .12s ease, background .18s var(--ctf-ease), border-color .18s var(--ctf-ease);
}

.ct-footer__btn i{ opacity:.95; }

.ct-footer__btn:hover{
  transform: translateY(-1px);
  border-color: rgba(255,255,255,.22);
  background: rgba(255,255,255,.06);
}

.ct-footer__btn--primary{
  background: var(--ctf-g);
  border-color: rgba(6,163,78,.65);
}

.ct-footer__btn--primary:hover{
  background: #059246;
  border-color: rgba(6,163,78,.85);
}

.ct-footer__meta{
  margin-top: 12px;
  color: rgba(255,255,255,.55);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}

/* TITOLI COLONNE */
.ct-footer__title{
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 1000;
  color: rgba(255,255,255,.74);
  margin-bottom: 12px;
  text-align: left; /* richiesto */
}

/* LISTE: sempre a sinistra */
.ct-footer__list{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap: 10px;
  align-items: start;
}

.ct-footer__list a{
  display:inline-flex;
  align-items:center;
  justify-content: flex-start;
  gap: 10px;
  color: rgba(255,255,255,.80);
  font-weight: 850;
  font-size: 14px;
  line-height: 1.35;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .18s var(--ctf-ease), border-color .18s var(--ctf-ease), transform .18s var(--ctf-ease);
}

.ct-footer__list a::after{
  content:"›";
  color: rgba(255,255,255,.35);
  font-weight: 1000;
  transform: translateY(-1px);
}

.ct-footer__list a:hover{
  color:#fff;
  border-bottom-color: rgba(249,239,5,.22);
  transform: translateX(1px);
}

/* CONTATTI */
.ct-footer__contactGrid{
  display:grid;
  gap: 10px;
}

.ct-footer__contactItem{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  justify-content:flex-start;
  padding: 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  transition: transform .12s ease, border-color .18s var(--ctf-ease), background .18s var(--ctf-ease);
  text-align: left;
}

.ct-footer__contactItem:hover{
  transform: translateY(-1px);
  border-color: rgba(249,239,5,.18);
  background: rgba(255,255,255,.06);
}

.ct-footer__contactIcon{
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  flex: 0 0 auto;
}

.ct-footer__contactIcon i{
  color: rgba(255,255,255,.92);
  font-size: 14px;
}

.ct-footer__contactBody{ display:grid; gap: 4px; }

.ct-footer__contactLabel{
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ct-footer__contactValue{
  color: rgba(255,255,255,.88);
  font-weight: 900;
  font-size: 14px;
  line-height: 1.45;
}

/* BOTTOM: left | center | right (desktop) */
.ct-footer__bottom{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
}

.ct-footer__bottomLeft{
  justify-self: start;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  align-items:center;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 850;
}

.ct-footer__bottomCenter{
  justify-self: center;
  display:inline-flex;
  align-items:center;
  gap: 10px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  font-weight: 850;
  text-align:center;
}

.ct-footer__bottomPowered{
  justify-self: end;
}

.ct-footer__dot{ color: rgba(255,255,255,.32); }

/* Link legal: stesso stile coerente */
.ct-footer__bottomCenter a{
  color: rgba(255,255,255,.72);
  border-bottom: 1px solid rgba(255,255,255,.18);
  padding-bottom: 2px;
}

.ct-footer__bottomCenter a:hover{
  color:#fff;
  border-bottom-color: rgba(249,239,5,.30);
}

.ct-footer__powered{
  color: rgba(255,255,255,.58);
  font-weight: 800;
  font-size: 13px;      /* più piccolo */
  line-height: 1.2;
  white-space: nowrap;
}


.ct-footer__powered a{
  color: rgba(255,255,255,.78);
  font-weight: 900;
  border-bottom: 1px solid rgba(249,239,5,.28);
  padding-bottom: 1px;
  transition: color .18s ease, border-color .18s ease;
}

.ct-footer__powered a:hover{
  color: #fff;
  border-bottom-color: rgba(249,239,5,.55);
}

/* MOBILE: tutto leggibile e non “addossato” */
@media (max-width: 680px){
  .ct-footer__wrap{ padding-bottom: 28px; }

  /* top columns già 1fr, qui aumentiamo respiro */
  .ct-footer__top{ padding-bottom: 22px; }

  /* CTA bottoni full width quando serve */
  .ct-footer__ctaRow{ gap: 10px; }
  .ct-footer__btn{ width: 100%; justify-content: center; }

  /* bottom in colonna: center davvero, spazi puliti */
  .ct-footer__bottom{
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 10px;
    padding-top: 16px;
  }

  .ct-footer__bottomLeft,
  .ct-footer__bottomPowered{
    justify-self: center;
  }

  .ct-footer__bottomCenter{
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* SR only */
.ct-footer__sr{
  position:absolute !important;
  width:1px; height:1px;
  padding:0; margin:-1px;
  overflow:hidden; clip:rect(0,0,0,0);
  white-space:nowrap; border:0;
}


/* =========================================
   Hover link: underline animata verde (logo)
   ========================================= */

/* Link liste (Categorie / Servizi) */
.ct-footer__list a{
  position: relative;
}

.ct-footer__list a::before{
  content:"";
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:2px;
  background: var(--ctf-g);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.9,.2,1);
  opacity: .9;
}

.ct-footer__list a:hover::before{
  transform: scaleX(1);
}

/* Link bottom (Privacy / Cookie / Termini) */
.ct-footer__bottomCenter a{
  position: relative;
}

.ct-footer__bottomCenter a::before{
  content:"";
  position:absolute;
  left:0;
  bottom:-2px;
  width:100%;
  height:2px;
  background: var(--ctf-g);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.9,.2,1);
  opacity: .85;
}

.ct-footer__bottomCenter a:hover::before{
  transform: scaleX(1);
}

/* Powered by Fymera */
.ct-footer__powered a{
  position: relative;
}

.ct-footer__powered a::before{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width:100%;
  height:2px;
  background: var(--ctf-g);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.9,.2,1);
  opacity: .75;
}

.ct-footer__powered a:hover::before{
  transform: scaleX(1);
}

/* =========================================
   Rimuovi underline vecchio (border-bottom)
   ========================================= */

.ct-footer__list a,
.ct-footer__bottomCenter a,
.ct-footer__powered a{
  border-bottom: 0 !important;
}

