/* =====================================================
   Ino Piazza – widgets.css
   Stili widget Elementor personalizzati
   ===================================================== */


/* ── IP Bottone Circolare ────────────────────────────── */
.ip-cbtn-wrap { display: inline-flex; }

.ip-cbtn {
    display: inline-block;
    color: #ffffff;
    padding: 32px;
    position: relative;
    letter-spacing: 1px;
    text-decoration: none;
    cursor: pointer;
}

.ip-cbtn__circle,
.ip-cbtn__text,
.ip-cbtn__white-circle { position: absolute; }

.ip-cbtn__circle {
    top: 0; left: 0;
    height: 100%; width: 100%;
    border-radius: 100%;
    box-shadow: 0 0 1px 1px #fff;
    transition: transform 0.3s linear;
}

.ip-cbtn__white-circle {
    top: 50%; left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 56px; height: 56px;
    border-radius: 100%;
    background: #92897D;
    display: flex; align-items: center; justify-content: center;
    transition: transform 0.3s ease-in-out;
}
.ip-cbtn__white-circle svg { width: 24px; height: 24px; display: block; }
.ip-cbtn__white-circle svg path { fill: #ffffff; }

.ip-cbtn__text {
    top: 50%; transform: translateY(-50%);
    white-space: nowrap; z-index: 2;
    padding: 24px 8px;
    transition: transform 0.3s linear;
    font-family: var(--ip-font-body);
    font-size: 0.88rem; letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ip-cbtn:hover .ip-cbtn__circle { transform: scale(0); }
.ip-cbtn:hover .ip-cbtn__white-circle { transform: translate(-50%, -50%) scale(1); }
.ip-cbtn:hover .ip-cbtn__text { transform: translate(40px, -50%); }

/* Variante scura */
.ip-cbtn--dark { color: var(--ip-primary); }
.ip-cbtn--dark .ip-cbtn__circle { box-shadow: 0 0 1px 1px var(--ip-primary); }
.ip-cbtn--dark .ip-cbtn__white-circle { background: var(--ip-primary); }


/* ── IP Categorie Progetti ────────────────────────────── */
.ip-cat-card {
    display: block; text-decoration: none;
    position: relative; background: #1e1e1c;
    border-radius: 4px; overflow: hidden;
    transition: transform 0.4s ease;
}
.ip-cat-card:hover { transform: translateY(-8px); }

.ip-cat-card__img { position: relative; width: 100%; height: 350px; overflow: hidden; }
.ip-cat-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.ip-cat-card:hover .ip-cat-card__img img { transform: scale(1.06); }

.ip-cat-card__overlay {
    position: absolute; inset: 0;
    background: rgba(26,26,24,0.4);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.4s ease;
}
.ip-cat-card:hover .ip-cat-card__overlay { opacity: 1; }

.ip-cat-card__icon {
    width: 50px; height: 50px;
    background: var(--ip-accent); color: var(--ip-white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    transform: translateY(20px); transition: transform 0.4s ease;
}
.ip-cat-card:hover .ip-cat-card__icon { transform: translateY(0); }

.ip-cat-card__content { padding: 1.5rem; text-align: center; }
.ip-cat-card__title {
    font-size: 1.4rem; color: var(--ip-white);
    margin-bottom: 0.5rem; text-transform: uppercase;
    letter-spacing: 0.05em; transition: color 0.3s ease;
}
.ip-cat-card:hover .ip-cat-card__title { color: var(--ip-accent); }
.ip-cat-card__desc {
    font-size: 0.9rem; color: var(--ip-light); margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2;
    -webkit-box-orient: vertical; overflow: hidden;
}


/* ═══════════════════════════════════════════════════════════
   V2 – Dark Elegance
═══════════════════════════════════════════════════════════ */
.v2-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.v2-grid img { height: 100% !important; }

.v2-card {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 3/4; text-decoration: none; background: #1e1e1c;
}
.v2-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: grayscale(30%) brightness(0.75);
    transition: transform 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease;
}
.v2-title {
    position: absolute; top: 0; left: 0; right: 0;
    padding: 28px 28px 60px; z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    font-family: var(--ip-font-title); font-size: clamp(22px, 2.5vw, 32px);
    font-weight: 300; letter-spacing: 0.05em; color: #fff;
    pointer-events: none; transition: opacity 0.4s ease; text-transform: uppercase;
}
.v2-overlay {
    position: absolute; inset: 0; z-index: 3;
    display: flex; flex-direction: column; justify-content: flex-end; padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    opacity: 0; transition: opacity 0.5s ease;
}
.v2-desc {
    font-family: var(--ip-font-body); font-size: 13px; font-weight: 300;
    line-height: 1.7; color: rgba(255,255,255,0.75); margin-bottom: 24px;
    transform: translateY(12px); transition: transform 0.5s ease 0.05s;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.v2-arrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--ip-font-body); font-size: 11px; letter-spacing: 3px;
    text-transform: uppercase; color: #fff;
    transform: translateY(12px); transition: transform 0.5s ease 0.1s;
}
.v2-arrow i {
    width: 32px; height: 32px;
    border: 1px solid rgba(255,255,255,0.4); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 12px;
    transition: background 0.3s, border-color 0.3s;
}
.v2-arrow .fa-arrow-right { transition: all 0.3s ease-in-out; }
.v2-arrow:hover .fa-arrow-right { transform: translateX(10px); }

.v2-card:hover img { transform: scale(1.06); filter: grayscale(0%) brightness(0.6); }
.v2-card:hover .v2-overlay { opacity: 1; }
.v2-card:hover .v2-title { opacity: 0.3; }
.v2-card:hover .v2-desc,
.v2-card:hover .v2-arrow { transform: translateY(10px); }
.v2-card:hover .v2-arrow i { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.7); }

@media (max-width: 768px) { .v2-grid { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════════════════════
   V3 – Accordion Spaziale
═══════════════════════════════════════════════════════════ */
.v3-grid { display: flex; width: 100%; height: 70vh; min-height: 500px; gap: 4px; }
.v3-card { flex: 1; position: relative; overflow: hidden; transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1); cursor: pointer; text-decoration: none; }
.v3-card img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%) brightness(0.4); transition: filter 0.6s ease, transform 0.8s ease; }
.v3-title-vertical { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); color: var(--ip-white); font-family: var(--ip-font-title); font-size: 1.5rem; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.2em; transition: opacity 0.3s ease; }
.v3-content { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26,26,24,0.9) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 40px; opacity: 0; transform: translateY(30px); transition: all 0.5s ease; color: var(--ip-white); }
.v3-title-hover { font-family: var(--ip-font-title); font-size: 2.5rem; text-transform: uppercase; margin-bottom: 1rem; color: var(--ip-white); }
.v3-btn { width: 50px; height: 50px; background: var(--ip-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.2rem; transition: transform 0.3s ease; }

.v3-card:hover { flex: 3; }
.v3-card:hover img { filter: grayscale(0%) brightness(0.8); transform: scale(1.05); }
.v3-card:hover .v3-title-vertical { opacity: 0; }
.v3-card:hover .v3-content { opacity: 1; transform: translateY(0); }
.v3-card:hover .v3-btn { transform: translateX(10px); }

@media (max-width: 992px) {
    .v3-grid { flex-direction: column; height: 90vh; }
    .v3-title-vertical { transform: translate(-50%, -50%) rotate(0deg); }
}


/* ═══════════════════════════════════════════════════════════
   V4 – Glassmorphism
═══════════════════════════════════════════════════════════ */
.v4-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; padding: 20px 0; }
.v4-card { position: relative; display: block; height: 480px; border-radius: 12px; overflow: hidden; text-decoration: none; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
.v4-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.v4-badge { position: absolute; top: 20px; left: 20px; background: var(--ip-accent); color: var(--ip-white); padding: 6px 16px; border-radius: 30px; font-family: var(--ip-font-body); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; z-index: 2; }
.v4-glass { position: absolute; bottom: 20px; left: 20px; right: 20px; background: rgba(255,255,255,0.15); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,0.2); border-radius: 8px; padding: 24px; color: var(--ip-white); transform: translateY(20px); opacity: 0; transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.v4-title { font-family: var(--ip-font-title); font-size: 1.6rem; color: #fff; margin-bottom: 8px; text-transform: uppercase; }
.v4-desc { font-family: var(--ip-font-body); font-size: 0.9rem; margin: 0; color: rgba(255,255,255,0.8); }
.v4-icon { position: absolute; top: 24px; right: 24px; color: #fff; opacity: 0; transform: translate(-10px, 10px); transition: all 0.5s ease; font-size: 1.2rem; }

.v4-card:hover img { transform: scale(1.08); }
.v4-card:hover .v4-glass { transform: translateY(0); opacity: 1; }
.v4-card:hover .v4-icon { opacity: 1; transform: translate(0, 0); }


/* ═══════════════════════════════════════════════════════════
   V5 – Accordion Orizzontale
═══════════════════════════════════════════════════════════ */
.v5-accordion { display: flex; gap: 3px; height: 580px; }

.v5-accordion__item {
    position: relative; overflow: hidden; text-decoration: none;
    background: #1e1e1c; flex: 1;
    transition: flex 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); cursor: pointer;
}
.v5-accordion:hover .v5-accordion__item { flex: 1; }
.v5-accordion__item:hover { flex: 3.5; }

.v5-accordion__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease, filter 0.5s ease; filter: brightness(0.55); }
.v5-accordion__item:hover img { transform: scale(1.04); filter: brightness(0.4); }

.v5-accordion__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.1) 60%, transparent 100%); z-index: 1; }

.v5-accordion__label-vertical { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%) rotate(-90deg); white-space: nowrap; font-family: 'DM Sans', sans-serif; font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.45); z-index: 3; transition: opacity 0.25s ease; }
.v5-accordion__item:hover .v5-accordion__label-vertical { opacity: 0; pointer-events: none; }

.v5-accordion__content { position: absolute; bottom: 0; left: 0; right: 0; padding: 32px 30px; z-index: 2; display: flex; flex-direction: column; opacity: 0; transform: translateY(14px); transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s; }
.v5-accordion__item:hover .v5-accordion__content { opacity: 1; transform: translateY(0); }

.v5-accordion__eyebrow { font-family: 'DM Sans', sans-serif; font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; display: block; }
.v5-accordion__title { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: clamp(1.2rem, 2vw, 1.9rem); color: #fff; margin: 0 0 18px; text-transform: uppercase; letter-spacing: 0.03em; line-height: 1.1; }
.v5-accordion__cta { font-family: 'DM Sans', sans-serif; font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem; }
.v5-accordion__cta i { transition: transform 0.3s; font-size: 0.65rem; }
.v5-accordion__item:hover .v5-accordion__cta i { transform: translateX(5px); }

@media (max-width: 768px) {
    .v5-accordion { flex-direction: column; height: auto; }
    .v5-accordion__item { flex: none !important; height: 280px; }
    .v5-accordion__content { opacity: 1; transform: none; }
    .v5-accordion__label-vertical { display: none; }
}


/* ═══════════════════════════════════════════════════════════
   V6 – Overlay sfumato + testo sotto
═══════════════════════════════════════════════════════════ */
.v6-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }

.v6-card { display: flex; flex-direction: column; text-decoration: none; overflow: hidden; cursor: pointer; }

.v6-card__img-wrap { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #1e1e1c; }
.v6-card__img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.7s ease, filter 0.5s ease; filter: brightness(0.88); }
.v6-card:hover .v6-card__img-wrap img { transform: scale(1.05); filter: brightness(0.7); }

.v6-card__overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 20%, rgba(0,0,0,0.65) 100%); transition: opacity 0.4s; }
.v6-card:hover .v6-card__overlay { opacity: 1.3; }

.v6-card__body { background: #1a1a18; padding: 20px 24px 24px; display: flex; flex-direction: column; border-top: 1px solid rgba(255,255,255,0.04); transition: background 0.3s; }
.v6-card:hover .v6-card__body { background: #222220; }

.v6-card__eyebrow { font-family: 'DM Sans', sans-serif; font-size: 0.57rem; letter-spacing: 0.28em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; display: block; }
.v6-card__title { font-family: 'Raleway', sans-serif; font-weight: 700; font-size: clamp(1rem, 1.4vw, 1.25rem); color: #fff; margin: 0 0 14px; text-transform: uppercase; letter-spacing: 0.05em; line-height: 1.1; transition: color 0.3s; }
.v6-card:hover .v6-card__title { color: rgba(255,255,255,0.9); }

.v6-card__cta { font-family: 'DM Sans', sans-serif; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 0.5rem; opacity: 0; transform: translateX(-8px); transition: opacity 0.35s ease, transform 0.35s ease; }
.v6-card:hover .v6-card__cta { opacity: 1; transform: translateX(0); }
.v6-card__cta i { font-size: 0.62rem; transition: transform 0.3s; }
.v6-card:hover .v6-card__cta i { transform: translateX(4px); }

@media (max-width: 768px) { .v6-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .v6-grid { grid-template-columns: 1fr; } }


/* ═══════════════════════════════════════════════════════════
   V7 – Clean Overlay
═══════════════════════════════════════════════════════════ */
.v7-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }

.v7-card { position: relative; overflow: hidden; cursor: pointer; height: 650px; text-decoration: none; display: block; }

.v7-card img { width: 100%; height: 100% !important; object-fit: cover; display: block; transition: transform 0.6s ease, filter 0.5s ease; filter: brightness(0.6); }
.v7-card:hover img { transform: scale(1.06); filter: brightness(0.45); }

.v7-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 36px 32px; background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, transparent 60%); }

.v7-label { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; display: block; }
.v7-title { font-family: 'Raleway', sans-serif; font-size: clamp(1.2rem, 1.8vw, 1.5rem); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; color: #fff; line-height: 1.1; margin: 0 0 16px; }

.v7-arrow { display: inline-flex; align-items: center; gap: 10px; font-family: 'DM Sans', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.55); opacity: 0; transform: translateY(8px); transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease; }
.v7-arrow svg { transition: transform 0.3s ease; flex-shrink: 0; }
.v7-card:hover .v7-arrow { opacity: 1; transform: translateY(0); color: var(--accent); }
.v7-card:hover .v7-arrow svg { transform: translateX(4px); }

@media (max-width: 768px) { .v7-grid { grid-template-columns: repeat(2, 1fr); } .v7-card { height: 380px; } }
@media (max-width: 480px) { .v7-grid { grid-template-columns: 1fr; } .v7-card { height: 300px; } }