/* =========================================================
   Farmacia Cavi - Home v2 (sfondo bianco, alto contrasto)
   Prefisso: fv2-  (non interferisce con homepage.css)
   Breakpoint: 1024 / 720 / 480
   ========================================================= */

.fv2 {
	--b: #1A6BAA;
	--bd: #0B3D6E;
	--bl: #2A86C4;
	--t: #1E8C7A;
	--td: #155F54;
	--line: #E3EAF1;
	--txt: #333;
	font-family: 'Open Sans', sans-serif;
	color: var(--txt);
	background: #fff;
	line-height: 1.6;
	overflow-x: clip;
}
.fv2 *, .fv2 *::before, .fv2 *::after { box-sizing: border-box; }
.fv2 h1, .fv2 h2, .fv2 h3 { font-family: 'Lato', sans-serif; color: var(--bd); margin: 0; line-height: 1.15; }
.fv2 p { margin: 0; }
.fv2 img { max-width: 100%; display: block; }
.fv2 a { text-decoration: none; }

.fv2-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.fv2-sec { padding: 0 0 96px; background: #fff; }

/* ---------- elementi comuni ---------- */
.fv2-eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--td); }
.fv2-title { font-size: clamp(30px, 4.2vw, 40px); font-weight: 900; letter-spacing: -.01em; }
.fv2-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-bottom: 48px; }
.fv2-head p { font-size: 18px; max-width: 640px; }

.fv2-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 15px; line-height: 1.2; border: 2px solid var(--b); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.fv2-btn svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fv2-btn:hover { transform: translateY(-1px); }
.fv2-btn--pri { background: var(--b); color: #fff; }
.fv2-btn--pri:hover { background: var(--bd); border-color: var(--bd); color: #fff; }
.fv2-btn--out { background: #fff; color: var(--bd); border-color: var(--bd); }
.fv2-btn--out:hover { background: var(--bd); color: #fff; }
.fv2-btn--teal { background: var(--td); border-color: var(--td); color: #fff; }
.fv2-btn--teal:hover { background: #0f4a41; border-color: #0f4a41; color: #fff; }
.fv2-btn--white { background: #fff; border-color: #fff; color: var(--bd); }
.fv2-btn--white:hover { background: #EBF5FB; color: var(--bd); }
.fv2-btn--ghost { background: transparent; border-color: #fff; color: #fff; }
.fv2-btn--ghost:hover { background: #fff; color: var(--bd); }

/* icone in riquadro colorato */
.fv2-ic { display: flex; align-items: center; justify-content: center; flex: none; width: 52px; height: 52px; border-radius: 16px; }
.fv2-ic svg { width: 28px; height: 28px; stroke: #fff; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fv2-ic--lg { width: 68px; height: 68px; border-radius: 20px; }
.fv2-ic--lg svg { width: 36px; height: 36px; }
.fv2-c-blue { background: var(--b); }
.fv2-c-navy { background: var(--bd); }
.fv2-c-light { background: var(--bl); }
.fv2-c-teal { background: var(--t); }
.fv2-tx-blue { color: var(--b) !important; }
.fv2-tx-teal { color: var(--td) !important; }
.fv2-tx-navy { color: var(--bd) !important; }

/* ---------- HERO ---------- */
.fv2-hero { padding: 64px 0 40px; background: #fff; }
.fv2-hero__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px; align-items: center; }
.fv2-hero__text { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.fv2-badge { padding: 8px 16px; border: 2px solid var(--td); border-radius: 999px; }
.fv2-hero h1 { font-size: clamp(38px, 5.4vw, 68px); font-weight: 900; letter-spacing: -.02em; }
.fv2-hero h1 span { color: var(--b); }
.fv2-hero__sub { font-size: 19px; max-width: 520px; }
.fv2-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fv2-hero__media { position: relative; border-radius: 32px; overflow: hidden; min-height: 460px; background: linear-gradient(135deg, var(--bd), var(--b) 60%, #3A9BD5); box-shadow: 0 24px 60px rgba(11, 61, 110, .22); }
.fv2-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fv2-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 61, 110, 0) 45%, rgba(11, 61, 110, .55) 100%); }
.fv2-hero__card { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; background: #fff; border-radius: 20px; padding: 18px 22px; display: flex; align-items: center; gap: 16px; box-shadow: 0 12px 30px rgba(0, 0, 0, .22); }
.fv2-hero__card strong { display: block; font-family: 'Lato', sans-serif; font-size: 20px; font-weight: 900; color: var(--bd); line-height: 1.2; }
.fv2-hero__card span { font-size: 14px; }

/* fascia info */
.fv2-info { padding: 8px 0 72px; background: #fff; }
.fv2-info__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fv2-tile { display: flex; align-items: center; gap: 16px; padding: 22px 24px; background: #fff; border: 2px solid var(--line); border-radius: 20px; }
.fv2-tile__k { display: block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--td); }
.fv2-tile__v { display: block; font-size: 15px; font-weight: 600; color: var(--bd); line-height: 1.4; }
.fv2-tile__v a { color: var(--bd); }
.fv2-tile__v a:hover { color: var(--b); }

/* ---------- STORIA ---------- */
.fv2-story { padding: 24px 0 96px; background: #fff; }
.fv2-story__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.fv2-story__media { position: relative; border-radius: 32px; overflow: hidden; height: 600px; background: linear-gradient(160deg, var(--t), var(--b)); box-shadow: 0 24px 60px rgba(11, 61, 110, .2); }
.fv2-story__media img { width: 100%; height: 100%; object-fit: cover; }
.fv2-story__stat { position: absolute; left: 24px; top: 24px; background: #fff; border-radius: 20px; padding: 16px 22px; box-shadow: 0 12px 30px rgba(0, 0, 0, .18); }
.fv2-story__stat strong { display: block; font-family: 'Lato', sans-serif; font-size: 46px; font-weight: 900; line-height: 1; color: var(--b); }
.fv2-story__stat span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--td); }
.fv2-story__text { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.fv2-story__text > p { font-size: 17px; }
.fv2-pills { display: flex; flex-direction: column; gap: 20px; margin: 6px 0; }
.fv2-pill { display: flex; align-items: flex-start; gap: 18px; }
.fv2-pill h3 { font-size: 20px; font-weight: 900; margin-bottom: 2px; }
.fv2-pill p { font-size: 15px; }

/* ---------- SERVIZI ---------- */
.fv2-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fv2-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.fv2-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 14px; --cx: 32px; padding: 0 var(--cx) 32px; background: #fff; border: 2px solid var(--line); border-radius: 24px; box-shadow: 0 10px 30px rgba(11, 61, 110, .08); transition: border-color .2s, box-shadow .2s, transform .2s; }
.fv2-card:hover { border-color: var(--b); box-shadow: 0 16px 40px rgba(11, 61, 110, .18); transform: translateY(-3px); }
.fv2-card__bar { position: absolute; left: 0; top: 0; right: 0; height: 8px; }
.fv2-card h3 { font-size: 24px; font-weight: 900; }
.fv2-card p { flex: 1; font-size: 15px; }
.fv2-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 700; font-size: 15px; }
.fv2-card__go svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.fv2-card:hover .fv2-card__go svg { transform: translateX(4px); }
.fv2-card--sm { --cx: 24px; padding-bottom: 24px; gap: 10px; }
.fv2-card--sm h3 { font-size: 21px; }
.fv2-card--sm p { font-size: 14px; }
.fv2-card--sm .fv2-card__go { font-size: 14px; }


/* immagine / icona in testa alla card */
.fv2-card__media { position: relative; display: block; margin: 0 calc(-1 * var(--cx)) 36px; }
.fv2-card__pic { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; }
.fv2-card--sm .fv2-card__pic { aspect-ratio: 16 / 10; }
.fv2-card__pic img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .4s; }
.fv2-card:hover .fv2-card__pic img { transform: scale(1.04); }
.fv2-card__pic > svg { width: 84px; height: 84px; stroke: #fff; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.fv2-card__badge { position: absolute; left: var(--cx); bottom: -28px; width: 56px; height: 56px; border-radius: 18px; border: 4px solid #fff; }
.fv2-card__badge svg { width: 26px; height: 26px; }

/* ---------- REPARTI ---------- */
.fv2-grid3--rep { gap: 18px; }
.fv2-rep { display: flex; align-items: center; gap: 18px; padding: 22px 24px; background: #fff; border: 2px solid var(--line); border-radius: 20px; box-shadow: 0 6px 18px rgba(11, 61, 110, .06); transition: border-color .2s, transform .2s; }
.fv2-rep--link:hover { border-color: var(--b); transform: translateY(-2px); }
.fv2-rep h3 { font-size: 19px; font-weight: 900; }

/* ---------- BLOG ---------- */
.fv2-blog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.fv2-post { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: 0 6px 18px rgba(11, 61, 110, .06); }
.fv2-post__thumb { display: block; aspect-ratio: 3 / 2; background: linear-gradient(135deg, #EBF5FB, #D0F0EC); }
.fv2-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fv2-post__body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 26px; flex: 1; }
.fv2-post__meta { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--td); display: flex; gap: 10px; flex-wrap: wrap; }
.fv2-post__meta a { color: var(--td); }
.fv2-post h3 { font-size: 20px; font-weight: 900; }
.fv2-post h3 a { color: var(--bd); }
.fv2-post h3 a:hover { color: var(--b); }
.fv2-post p { font-size: 14px; flex: 1; }
.fv2-post__more { font-weight: 700; font-size: 14px; color: var(--b); }
.fv2-more { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- BANNER FINALI ---------- */
.fv2-cta { background: var(--bd); padding: 72px 0; }
.fv2-cta__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.fv2-box { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 40px; border-radius: 28px; color: #fff; }
.fv2-box--teal { background: var(--td); }
.fv2-box--blue { background: var(--b); }
.fv2-box h2 { color: #fff; font-size: clamp(26px, 3vw, 32px); font-weight: 900; }
.fv2-box p { color: #fff; font-size: 16px; }
.fv2-box__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
	.fv2-hero { padding-top: 40px; }
	.fv2-hero__grid, .fv2-story__grid { grid-template-columns: 1fr; gap: 40px; }
	.fv2-hero__media { min-height: 380px; }
	.fv2-story__media { height: 460px; }
	.fv2-info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fv2-grid3, .fv2-blog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fv2-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fv2-cta__grid { grid-template-columns: 1fr; }
	.fv2-sec, .fv2-story { padding-bottom: 72px; }
}

@media (max-width: 720px) {
	.fv2-wrap { padding: 0 18px; }
	.fv2-hero__text { gap: 20px; }
	.fv2-hero__sub { font-size: 17px; }
	.fv2-hero__actions { width: 100%; }
	.fv2-hero__actions .fv2-btn { flex: 1 1 calc(50% - 6px); }
	.fv2-hero__media { min-height: 300px; border-radius: 24px; }
	.fv2-hero__card { left: 14px; right: 14px; bottom: 14px; padding: 14px 16px; }
	.fv2-info { padding-bottom: 48px; }
	.fv2-info__grid { grid-template-columns: 1fr; }
	.fv2-story__media { height: 380px; border-radius: 24px; }
	.fv2-head { margin-bottom: 32px; }
	.fv2-grid3, .fv2-grid4, .fv2-blog { grid-template-columns: 1fr; gap: 18px; }
	.fv2-grid4 { margin-top: 18px; }
	.fv2-card { --cx: 24px; padding-bottom: 24px; }
	.fv2-box { padding: 28px 24px; border-radius: 22px; }
	.fv2-cta { padding: 48px 0; }
	.fv2-sec, .fv2-story { padding-bottom: 56px; }
}

@media (max-width: 480px) {
	.fv2-hero__actions .fv2-btn { flex: 1 1 100%; }
	.fv2-box__actions .fv2-btn, .fv2-story__text .fv2-btn { width: 100%; }
	.fv2-story__stat strong { font-size: 36px; }
}

@media (prefers-reduced-motion: reduce) {
	.fv2 * { transition: none !important; }
	.fv2-btn:hover, .fv2-card:hover, .fv2-rep--link:hover { transform: none; }
}
